1 Star 0 Fork 0

OWenT/distinctionpp

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
post-utility.php 1.58 KB
一键复制 编辑 原始数据 按行查看 历史
WenTao Ou 提交于 2013-12-16 18:17 +08:00 . created
<?php if ( is_single() ) : ?>
<div class="term-lists">
<?php if ( count( get_the_category() ) ) : ?>
<span class="cat-links">
<?php printf( __( '<span class="%1$s">Categories:</span> %2$s', 'wp_distinctionpp' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
</span>
<?php endif; ?>
<?php
$tags_list = get_the_tag_list( '', ', ' );
if ( $tags_list ):
?>
<span class="tag-links">
<?php printf( __( '<span class="%1$s">Tags:</span> %2$s', 'wp_distinctionpp' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
</span>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="utility">
<?php if(function_exists('has_post_format'))
$post_id = get_the_ID();
$format = get_post_format( $post_id );
$format_link = get_post_format_link($format);
?>
<span class="comments-link">
<?php if ($format == '') { ?>
<span class="icon-default format-icons">post</span>
<?php }else{ ?>
<a class="icon-<?php echo $format; ?> format-icons" href="<?php echo $format_link; ?>"><?php echo $format; ?></a>
<?php } ?>
<span class="meta-sep">|</span>
<?php comments_popup_link( __( 'Leave a comment', 'distinctionpp' ), __( '1 Comment', 'wp_distinctionpp' ), __( '% Comments', 'distinctionpp' ), __( 'Comments Off', 'wp_distinctionpp' ) ); ?>
<?php edit_post_link( __( 'Edit', 'wp_distinctionpp' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
</span>
<?php wp_distinctionpp_posted_on(); ?>
</div><!-- .utility -->
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/owent/distinctionpp.git
git@gitee.com:owent/distinctionpp.git
owent
distinctionpp
distinctionpp
master

搜索帮助