sakura/layouts/sharelike.php
2018-12-28 13:41:17 +08:00

26 lines
695 B
PHP

<?php
/**
* sharelike
*/
?>
<?php if ( akina_option('post_like') == 'yes') { ?>
<div class="post-like">
<a href="javascript:;" data-action="ding" data-id="<?php the_ID(); ?>" class="specsZan <?php if(isset($_COOKIE['specs_zan_'.get_the_ID()])) echo 'done';?>">
<i class="iconfont icon-like"></i> <span class="count">
<?php if( get_post_meta(get_the_ID(),'specs_zan',true) ){
echo get_post_meta(get_the_ID(),'specs_zan',true);
} else {
echo '0';
}?></span>
</a>
</div>
<?php } ?>
<?php if ( akina_option('post_share') == 'yes') { ?>
<div class="post-share">
<div class="social-share sharehidden"></div>
<i class="iconfont show-share icon-forward"></i>
</div>
<?php } ?>