예제 #1
0
	<div class="entry-body">
		<?php 
hook_ktz_singleheadban();
?>
		<?php 
if (has_post_format('gallery')) {
    echo ktz_gallery_slide();
} elseif (has_post_format('video')) {
    $ktz_social_lock_mt = get_post_custom_values('ktz_activated_locker', $post->ID);
    $ktz_lock_video = $ktz_social_lock_mt[0];
    if ($ktz_lock_video == 'yes' && ot_get_option('ktz_active_videolocker') == 'no' || ot_get_option('ktz_active_videolocker') == 'yes') {
        echo '<div class="ktz-all-videowrapper">';
        echo do_shortcode('[viral_lock_button show_facebook="yes" show_twitter="yes" show_gplus="yes" text_locker="You must like first for see video!!"]' . ktz_video_wrapper() . '[/viral_lock_button]');
        echo '</div>';
    } else {
        echo ktz_video_wrapper();
    }
}
?>
		<h1 class="entry-title clearfix"><?php 
the_title();
?>
</h1>
		<div class="metasingle-aftertitle">
			<div class="ktz-inner-metasingle">
				<?php 
hook_ktz_content_single_meta();
?>
				<?php 
echo ktz_getPostViews($post->ID);
?>
예제 #2
0
post_class('ktz-single');
?>
>
	<?php 
ktz_setPostViews(get_the_ID());
//get view for single post
?>
	<div class="ktz-single-box">
	<div class="entry-body">
		<?php 
if (has_post_format('video')) {
    $ktz_social_lock_mt = get_post_custom_values('ktz_activated_locker', $post->ID);
    $ktz_lock_video = $ktz_social_lock_mt[0];
    if ($ktz_lock_video == 'yes' && ot_get_option('ktz_active_videolocker') == 'no' || ot_get_option('ktz_active_videolocker') == 'yes') {
        echo '<div class="ktz-all-videowrapper">';
        echo do_shortcode('[viral_lock_button show_facebook="yes" show_twitter="yes" show_gplus="yes" text_locker="You must like first for see video!!"]' . ktz_video_wrapper() . '[/viral_lock_button]');
        echo '</div>';
    } else {
        do_action('ktz_video_wrapper');
        // function in _video_ktz.php
    }
}
?>
		
		<h1 class="entry-title clearfix"><?php 
the_title();
?>
</h1>
		
		<div class="metasingle-aftertitle">
			<div class="ktz-inner-metasingle">