';
echo $displayheader;
echo '';
echo '
';
echo ''.$cf_thumb2.'
';
}
$displayheader = "";
if($format == "video"){
$showcontent = false;
if(!empty($media)){
$displayheader = ''.do_shortcode($media).'
';
}
}elseif($format == "gallery"){
$showcontent = false;
$thethumblb = '';
foreach ( $attachments as $att_id => $attachment ) {
$getimage = wp_get_attachment_image_src($att_id, 'large', true);
$thumbimage = $getimage[0];
$thumbwidth = $getimage[1];
$thumbheight = $getimage[2];
$cf_thumb2 ='';
$thethumblb .= ''.$cf_thumb2.'
';
}
if($thethumblb!=''){
$thethumblb = ''. $thethumblb .'
'.do_shortcode($mediaaud).'
';
}
}elseif($format == "image"){
if($cf_thumb!=""){
$cf_thumb = "";
}elseif(has_post_thumbnail($post->ID)){
$cf_thumb = get_the_post_thumbnail($post->ID, 'thumb-blog', array('class' => 'frame'));
}else{
$cf_thumb = $cf_thumb2;
}
$displayheader .= $cf_thumb;
}
}// end if(!is_search())
?>
';
echo '';
}
}
$custom = get_post_custom($post->ID);
if(!$showcontent){
the_excerpt();
}else{
the_content();
wp_link_pages( array( 'before' => '' . __( 'Pages:', 'newbrides' ), 'after' => '
' ) );
}
?>