1st commit
This commit is contained in:
21
formats/single-post/gallery-single.php
Normal file
21
formats/single-post/gallery-single.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<!-- start slider -->
|
||||
<div class="slider-wrapper">
|
||||
|
||||
<div id="kk_post_slider_<?php the_ID(); ?>" class="royalSlider rsDefault kk-slider-ef">
|
||||
<?php
|
||||
$attachments = rwmb_meta( 'kk_imgpost', 'type=image_advanced' );
|
||||
foreach ($attachments as $attachment) {
|
||||
|
||||
if (get_option('toppic_theme_blog_sidebar') !== 'full') {
|
||||
$image_size = 'medium_large';
|
||||
} else {
|
||||
$image_size = 'large';
|
||||
};
|
||||
|
||||
echo wp_get_attachment_image( $attachment['ID'], $image_size, '', array( 'class' => 'rsImg', 'title' => $attachment['title'], 'alt' => $attachment['caption'], 'data-lazy-load' => 0 ) ); ?>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- end slider -->
|
||||
21
formats/single-post/image-single.php
Normal file
21
formats/single-post/image-single.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<!--start image -->
|
||||
<?php if(has_post_thumbnail()): ?>
|
||||
|
||||
<div class="blog-thumb effect-zoom">
|
||||
<?php $image_thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'featured-image-thumb');
|
||||
|
||||
if (get_option('toppic_theme_blog_sidebar') !== 'full') {
|
||||
$image_size = 'medium_large';
|
||||
} else {
|
||||
$image_size = 'large';
|
||||
};
|
||||
?>
|
||||
|
||||
<a class="kk-lightbox" data-group="kk-lightbox[<?php the_ID();?>]" href="<?php echo esc_url($image_thumb[0]); ?>" >
|
||||
<?php the_post_thumbnail( $image_size ); ?>
|
||||
<span class="kk-n"><?php esc_html_e( 'View','toppic' ); ?></span>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<!--end image -->
|
||||
15
formats/single-post/post-meta.php
Normal file
15
formats/single-post/post-meta.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<!--start meta -->
|
||||
<div class="blog-meta">
|
||||
<span><i class="kk kk-icon-pencil"></i><?php the_author(); ?></span>
|
||||
/
|
||||
<span><i class="kk kk-icon-folder-open-empty"></i><?php the_category(', '); ?></span>
|
||||
/
|
||||
<span><i class="kk kk-icon-clock"></i><time><?php the_date(); ?></time></span>
|
||||
/
|
||||
<span><a title="<?php printf(__('View comments to %s', 'toppic'), get_the_title()); ?>" href="<?php comments_link(); ?> "><i class="kk kk-icon-comment-empty"></i><?php comments_number(__('0 Comments', 'toppic'), __('1 Comment', 'toppic'), __('% Comments', 'toppic'))?></a></span>
|
||||
<?php if (function_exists('printLikes')) { ?>
|
||||
/
|
||||
<span> <?php printLikes(get_the_ID()); ?> </span>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<!--end meta -->
|
||||
16
formats/single-post/standard-single.php
Normal file
16
formats/single-post/standard-single.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<!--start image -->
|
||||
<?php if(has_post_thumbnail()): ?>
|
||||
|
||||
<div class="blog-thumb">
|
||||
|
||||
<?php if (get_option('toppic_theme_blog_sidebar') !== 'full') {
|
||||
$image_size = 'medium_large';
|
||||
} else {
|
||||
$image_size = 'large';
|
||||
}; ?>
|
||||
|
||||
<?php echo get_the_post_thumbnail( get_the_id(), $image_size, array( 'data-lazy-load' => 0 ) ); ?>
|
||||
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<!--end image -->
|
||||
9
formats/single-post/video-single.php
Normal file
9
formats/single-post/video-single.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<!--start video -->
|
||||
|
||||
<div class="blog-thumb">
|
||||
<div class="embed-container">
|
||||
<?php echo get_post_meta($post->ID, '_post_video_value', true); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--end video -->
|
||||
Reference in New Issue
Block a user