本文整理汇总了PHP中td_page_generator::get_page_breadcrumbs方法的典型用法代码示例。如果您正苦于以下问题:PHP td_page_generator::get_page_breadcrumbs方法的具体用法?PHP td_page_generator::get_page_breadcrumbs怎么用?PHP td_page_generator::get_page_breadcrumbs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类td_page_generator
的用法示例。
在下文中一共展示了td_page_generator::get_page_breadcrumbs方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
" <?php
echo $td_mod_single->get_item_scope();
?>
>
<?php
echo td_page_generator::wrap_start();
?>
<div class="span12">
<?php
//show the breadcrumb
if (get_post_type($post) == 'post') {
echo td_page_generator::get_single_breadcrumbs($td_mod_single->title);
} else {
echo td_page_generator::get_page_breadcrumbs($td_mod_single->title);
}
?>
<header>
<?php
echo $td_mod_single->get_title();
?>
<div class="meta-info">
<?php
echo $td_mod_single->get_category();
?>
<?php
//echo $td_mod_single->get_author();
?>
示例2: array_keys
if (method_exists('WPBMap', 'getShortCodes')) {
$td_page_builder_short_codes = array_keys(WPBMap::getShortCodes());
if (td_util::strpos_array($post->post_content, $td_page_builder_short_codes) === true) {
$td_use_page_builder = true;
}
}
//no page builder detected, we load a default page template with sidebar / no sidebar
?>
<div class="td-main-content-wrap">
<div class="td-container <?php
echo $td_sidebar_position;
?>
">
<div class="td-crumb-container">
<?php
echo td_page_generator::get_page_breadcrumbs(get_the_title());
?>
</div>
<div class="td-pb-row">
<?php
switch ($loop_sidebar_position) {
default:
?>
<div class="td-pb-span8 td-main-content" role="main" itemscope="itemscope" itemprop="mainContentOfPage" itemtype="<?php
echo td_global::$http_or_https;
?>
://schema.org/CreativeWork">
<div class="td-ss-main-content">
<?php
if (have_posts()) {
while (have_posts()) {
示例3: __td
<?php
/**
* this loop is used for timeline template
**/
//adding breadcrumbs
echo td_page_generator::get_page_breadcrumbs($post->post_title);
?>
<div class="td-template-timeline-title"><?php
echo __td('Timeline');
?>
</div>
<?php
//main loop of the page (but for this sidebar position)
$td_timeline_post_date = $td_timeline_post_year = $explode_time_date = '';
$td_timeline_post_count = 0;
$date_format = get_option('date_format');
if (have_posts()) {
while (have_posts()) {
the_post();
$explode_time_date = explode(' ', $post->post_date);
$explode_post_date = explode('-', $explode_time_date[0]);
//write year
if ($td_timeline_post_year != $explode_post_date[0]) {
$td_timeline_post_year = $explode_post_date[0];
//adding wrapper around year links
if ($td_timeline_post_count > 0) {
echo '</div><div class="td-timeline-block-title td-timline-padding-top"><span>' . $td_timeline_post_year . '</span></div><div class="td-timeline-wrapper-links">';
} else {