本文整理汇总了PHP中sf_breadcrumbs函数的典型用法代码示例。如果您正苦于以下问题:PHP sf_breadcrumbs函数的具体用法?PHP sf_breadcrumbs怎么用?PHP sf_breadcrumbs使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sf_breadcrumbs函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sf_page_heading
//.........这里部分代码省略.........
?>
</h1>
<?php
}
?>
<?php
/* If this is a paged archive */
} elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {
?>
<h1 <?php
echo $article_heading_text;
?>
><?php
_e("Blog Archives", "swiftframework");
?>
</h1>
<?php
} else {
?>
<h1 <?php
echo $article_heading_text;
?>
><?php
single_term_title();
?>
</h1>
<?php
}
?>
<?php
} else {
if (is_404()) {
?>
<h1 class="entry-title" <?php
echo $article_heading_text;
?>
><?php
_e("404", "swiftframework");
?>
</h1>
<?php
} else {
if (is_home() && get_option('page_for_posts')) {
?>
<h1 class="entry-title" <?php
echo $article_heading_text;
?>
><?php
echo apply_filters('the_title', get_page(get_option('page_for_posts'))->post_title);
?>
</h1>
<?php
} else {
?>
<h1 class="entry-title" <?php
echo $article_heading_text;
?>
><?php
echo $page_title;
?>
</h1>
<?php
}
}
}
}
}
}
?>
<?php
if ($page_title_style == "fancy" && $page_subtitle != "") {
?>
<h3><?php
echo $page_subtitle;
?>
</h3>
<?php
}
?>
</div>
<?php
if (!$remove_breadcrumbs && $page_title_style != "fancy") {
echo sf_breadcrumbs(true);
}
?>
</div>
</div>
<?php
}
示例2: single_cat_title
<div class="row">
<div class="page-heading span12 clearfix alt-bg <?php
echo $default_page_heading_bg_alt;
?>
">
<h1><?php
single_cat_title();
?>
</h1>
</div>
</div>
<?php
// BREADCRUMBS
echo sf_breadcrumbs();
?>
<div class="inner-page-wrap <?php
echo $page_wrap_class;
?>
clearfix">
<!-- OPEN page -->
<div class="archive-page clearfix">
<div class="page-content clearfix">
<?php
if (have_posts()) {
?>
示例3: sf_page_heading
//.........这里部分代码省略.........
?>
</h1>
<?php
}
?>
<?php
} else {
?>
<h1 class="entry-title"><?php
echo $page_title;
?>
</h1>
<?php
}
?>
<?php
if ($page_subtitle) {
?>
<h3><?php
echo $page_subtitle;
?>
</h3>
<?php
}
?>
<?php
if (!$remove_breadcrumbs && $breadcrumb_in_heading) {
echo sf_breadcrumbs(true);
}
?>
<?php
if (is_singular('portfolio') && !(sf_theme_opts_name() == "sf_joyn_options" && $pagination_style == "fs-arrow")) {
?>
<div
class="prev-item" <?php
echo $article_heading_text;
?>
><?php
next_post_link('%link', $prev_icon, $enable_category_navigation, '', 'portfolio-category');
?>
</div>
<div
class="next-item" <?php
echo $article_heading_text;
?>
><?php
previous_post_link('%link', $next_icon, $enable_category_navigation, '', 'portfolio-category');
?>
</div>
<?php
}
?>
<?php
if (is_singular('galleries') && !(sf_theme_opts_name() == "sf_joyn_options" && $pagination_style == "fs-arrow")) {
?>
<div
class="prev-item" <?php
echo $article_heading_text;