本文整理汇总了PHP中zerif_categorized_blog函数的典型用法代码示例。如果您正苦于以下问题:PHP zerif_categorized_blog函数的具体用法?PHP zerif_categorized_blog怎么用?PHP zerif_categorized_blog使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zerif_categorized_blog函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: the_title
>
<header class="entry-header">
<h1 class="entry-title"><?php
the_title();
?>
</h1>
<div class="entry-meta">
<?php
zerif_posted_on();
?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<?php
the_content();
wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'zerif-lite'), 'after' => '</div>'));
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php
/* translators: used between list items, there is a space after the comma */
$category_list = get_the_category_list(__(', ', 'zerif-lite'));
/* translators: used between list items, there is a space after the comma */
$tag_list = get_the_tag_list('', __(', ', 'zerif-lite'));
if (!zerif_categorized_blog()) {
// This blog only has 1 category so we just need to worry about tags in the meta text
if ('' != $tag_list) {
$meta_text = __('This entry was tagged %2$s. Bookmark the <a href="%3$s" rel="bookmark">permalink</a>.', 'zerif-lite');
} else {
$meta_text = __('Bookmark the <a href="%3$s" rel="bookmark">permalink</a>.', 'zerif-lite');
}
开发者ID:arakoswara,项目名称:wp_arakoswara,代码行数:31,代码来源:content-single.php
示例2: get_the_category_list
}
?>
</div><!-- .list-post-top -->
<footer class="entry-footer-large">
<?php
if ('post' == get_post_type()) {
/* Hide category and tag text for pages on Search */
?>
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list(__(', ', 'zerif'));
if ($categories_list && zerif_categorized_blog()) {
?>
<span class="cat-links">
<?php
printf(__('Posted in %1$s', 'zerif'), $categories_list);
?>
</span>
<?php
}
?>
开发者ID:spartanEnglish,项目名称:zerif-lite,代码行数:29,代码来源:content-large.php
注:本文中的zerif_categorized_blog函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论