sakura/layouts/sharelike.php

26 lines
695 B
PHP
Raw Permalink Normal View History

2018-05-26 18:59:29 +08:00
<?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">
2018-12-28 13:41:17 +08:00
<div class="social-share sharehidden"></div>
2018-05-26 18:59:29 +08:00
<i class="iconfont show-share icon-forward"></i>
</div>
<?php } ?>