1st commit
This commit is contained in:
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 -->
|
||||
Reference in New Issue
Block a user