Files
toppic-child/formats/single-post/post-meta.php
Bruno 21 c1fb81ddaa Edit post
- post-meta.php: ajout de la condition if (current_user_can( 'edit_post' ))
2019-01-11 07:01:53 +01:00

21 lines
844 B
PHP
Executable File

<!--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 } ?>
<?php if (current_user_can( 'edit_post' )) { ?>
/
<span> <?php edit_post_link(); ?> <span>
<?php } ?>
</div>
<!--end meta -->