本文整理汇总了PHP中td_global::load_sidebar_from_template方法的典型用法代码示例。如果您正苦于以下问题:PHP td_global::load_sidebar_from_template方法的具体用法?PHP td_global::load_sidebar_from_template怎么用?PHP td_global::load_sidebar_from_template使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类td_global
的用法示例。
在下文中一共展示了td_global::load_sidebar_from_template方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
read the settings for the loop
---------------------------------------------------------------------------------------- */
if (!empty($post->ID)) {
td_global::load_single_post($post);
//read the metadata for the post
$td_homepage_loop_filter = get_post_meta($post->ID, 'td_homepage_loop_filter', true);
//it's send to td_data_source
$td_homepage_loop = get_post_meta($post->ID, 'td_homepage_loop', true);
if (!empty($td_homepage_loop['td_layout'])) {
$loop_module_id = $td_homepage_loop['td_layout'];
}
if (!empty($td_homepage_loop['td_sidebar_position'])) {
$loop_sidebar_position = $td_homepage_loop['td_sidebar_position'];
}
if (!empty($td_homepage_loop['td_sidebar'])) {
td_global::$load_sidebar_from_template = $td_homepage_loop['td_sidebar'];
}
if (!empty($td_homepage_loop['list_custom_title'])) {
$td_list_custom_title = $td_homepage_loop['list_custom_title'];
} else {
$td_list_custom_title = __td('LATEST ARTICLES');
}
if (!empty($td_homepage_loop['list_custom_title_show'])) {
$list_custom_title_show = false;
}
//adds the filters for templates: 'Homepage - with article list' and 'Homepage - bg + article list'
//include_once('includes/wp_booster/td_homepage_loop_filter.php');
}
/*
big slide
---------------------------------------------------------------------------------------- */