本文整理汇总了PHP中gdlr_get_sidebar_class函数的典型用法代码示例。如果您正苦于以下问题:PHP gdlr_get_sidebar_class函数的具体用法?PHP gdlr_get_sidebar_class怎么用?PHP gdlr_get_sidebar_class使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了gdlr_get_sidebar_class函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: gdlr_print_page_builder
if (!empty($above_sidebar_content)) {
?>
<div class="above-sidebar-wrapper"><?php
gdlr_print_page_builder($above_sidebar_content);
?>
</div>
<?php
}
?>
<!-- Sidebar With Content Section-->
<?php
if (!empty($gdlr_post_option['sidebar']) && $gdlr_post_option['sidebar'] != 'no-sidebar') {
global $gdlr_sidebar;
$gdlr_sidebar = array('type' => $gdlr_post_option['sidebar'], 'left-sidebar' => $gdlr_post_option['left-sidebar'], 'right-sidebar' => $gdlr_post_option['right-sidebar']);
$gdlr_sidebar = gdlr_get_sidebar_class($gdlr_sidebar);
?>
<div class="with-sidebar-wrapper">
<div class="with-sidebar-container container">
<div class="with-sidebar-left <?php
echo esc_attr($gdlr_sidebar['outer']);
?>
columns">
<div class="with-sidebar-content <?php
echo esc_attr($gdlr_sidebar['center']);
?>
columns">
<?php
if (!empty($with_sidebar_content)) {
gdlr_print_page_builder($with_sidebar_content, false);
}
示例2: get_header
<?php
get_header();
while (have_posts()) {
the_post();
?>
<div class="gdlr-content">
<?php
global $gdlr_sidebar, $theme_option, $gdlr_post_option, $gdlr_is_ajax;
$gdlr_sidebar = gdlr_get_sidebar_class(array('type' => 'no-sidebar', 'left-sidebar' => '', 'right-sidebar' => ''));
?>
<div class="with-sidebar-wrapper">
<div class="with-sidebar-container container gdlr-class-<?php
echo $gdlr_sidebar['type'];
?>
">
<div class="with-sidebar-left <?php
echo $gdlr_sidebar['outer'];
?>
columns">
<div class="with-sidebar-content <?php
echo $gdlr_sidebar['center'];
?>
columns">
<div class="gdlr-item gdlr-item-start-content">
<div id="speaker-<?php
the_ID();
?>
" <?php
post_class();