本文整理汇总了PHP中td_page_generator::get_author_breadcrumbs方法的典型用法代码示例。如果您正苦于以下问题:PHP td_page_generator::get_author_breadcrumbs方法的具体用法?PHP td_page_generator::get_author_breadcrumbs怎么用?PHP td_page_generator::get_author_breadcrumbs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类td_page_generator
的用法示例。
在下文中一共展示了td_page_generator::get_author_breadcrumbs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_query_var
$td_sidebar_position = 'td-sidebar-left';
}
//read the current author object - used by here in title and by /parts/author-header.php
$part_cur_auth_obj = get_query_var('author_name') ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
//set the global current author object, used by widgets (author widget)
td_global::$current_author_obj = $part_cur_auth_obj;
?>
<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_author_breadcrumbs($part_cur_auth_obj);
// generate the breadcrumbs
?>
</div>
<div class="td-pb-row">
<?php
switch ($loop_sidebar_position) {
/* ----------------------------------------------------------------------------
This is the default option
If you set the author template with the right sidebar the theme will use this part
*/
default:
?>
<div class="td-pb-span8 td-main-content">
<div class="td-ss-main-content">
<div class="td-page-header">