> ID); $cf_disablemeta = (isset($custom["klasik_disable_meta"][0]))? $custom["klasik_disable_meta"][0] : ""; if($cf_disablemeta==""){ $hasmetaclass = 'hasmeta'; ?>
ID); if(false === $format){ $format = "standard"; } $showtheimg = true; $showcontent = true; $showtitle = true; if(!is_search() && $showtheimg){ $cf_thumb = (isset($custom["klasik_thumb"][0]))? $custom["klasik_thumb"][0] : ""; $pregvid = preg_match_all('/(\)/is', get_the_content(), $videos); $pregobj = preg_match_all('/(\)/is', get_the_content(), $objects); $pregemb = preg_match_all('/(\)/is', get_the_content(), $embeds); $pregaud = preg_match_all('/(\)/is', get_the_content(), $audios); $pregifr = preg_match_all('/(\)/is', get_the_content(), $iframes); $pregvsh = preg_match_all('/(\[video.*\[\/video\])/is', get_the_content(), $vshorts); $pregash = preg_match_all('/(\[audio.*\[\/audio\])/is', get_the_content(), $ashorts); $video = (isset($videos[1][0]))?$videos[1][0] : ""; $object = (isset($objects[1][0]))?$objects[1][0] : ""; $embed = (isset($embeds[1][0]))?$embeds[1][0] : ""; $iframe = (isset($iframes[1][0]))?$iframes[1][0] : ""; $vshort = isset($vshorts[1][0])? $vshorts[1][0]: ""; $audio = (isset($audios[1][0]))?$audios[1][0] : ""; $ashort = isset($ashorts[1][0])? $ashorts[1][0] : ""; $media = ""; $mediaaud = ""; if(!empty($vshort)){ $media = $vshort; }elseif(!empty($video)){ $media = $video; }elseif(!empty($object)){ $media = $object; }elseif(!empty($embed)){ $media = $embed; }elseif(!empty($iframe)){ $media = $iframe; } if(!empty($ashort)){ $mediaaud = $ashort; }elseif(!empty($audio)){ $mediaaud = $audio; } //get post-thumbnail attachment $attachments = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'orderby' => 'menu_order', 'post_mime_type' => 'image') ); $cf_thumb2 = ""; $lislides = ""; $x = 0; $cols = 3; $colclass = 'four columns'; foreach ( $attachments as $att_id => $attachment ) { $x++; if($x%$cols==0){ $omega = "omega"; }elseif($x%$cols==1){ $omega = "alpha"; }else{ $omega = ""; } $getimage = wp_get_attachment_image_src($att_id, 'thumb-blog', true); $theimage = $getimage[0]; $cf_thumb2 = ''. get_the_title() .''; $lislides .= '
'.$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 .= ''; } if($thethumblb!=''){ $thethumblb = ''; } $displayheader .= $thethumblb; }elseif($format == "audio"){ $showcontent = false; if(!empty($mediaaud)){ $displayheader = '
'.do_shortcode($mediaaud).'
'; } }elseif($format == "image"){ if($cf_thumb!=""){ $cf_thumb = "". get_the_title() .""; }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 '
'; echo $displayheader; echo '
'; echo '
'; echo '
'; echo '
'; } } $custom = get_post_custom($post->ID); if(!$showcontent){ the_excerpt(); }else{ the_content(); wp_link_pages( array( 'before' => '' ) ); } ?>
','','
'); } ?>