當前位置: 首頁>>代碼示例>>PHP>>正文


PHP roots_display_sidebar函數代碼示例

本文整理匯總了PHP中roots_display_sidebar函數的典型用法代碼示例。如果您正苦於以下問題:PHP roots_display_sidebar函數的具體用法?PHP roots_display_sidebar怎麽用?PHP roots_display_sidebar使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了roots_display_sidebar函數的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: roots_sidebar_body_class

/**
 * Add body class if sidebar is active
 */
function roots_sidebar_body_class($classes)
{
    if (roots_display_sidebar()) {
        $classes[] = 'sidebar-primary';
    }
    return $classes;
}
開發者ID:praveenhotha,項目名稱:ig,代碼行數:10,代碼來源:_config.php

示例2: ciGetContainerClass

function ciGetContainerClass()
{
    $fullWidthContainerSpecified = get_option('full_width_container', true);
    // Override with GET parms
    if (isset($_GET['layout']) && $_GET['layout'] == "full") {
        $fullWidthContainerSpecified = true;
    } else {
        if (isset($_GET['layout']) && $_GET['layout'] == "normal") {
            $fullWidthContainerSpecified = false;
        }
    }
    $needsFullWidthContainer = $fullWidthContainerSpecified && !roots_display_sidebar();
    $containerClass = "container";
    if ($needsFullWidthContainer) {
        $containerClass .= "-fluid";
    }
    if ($fullWidthContainerSpecified) {
        $containerClass .= " pseudo-fluid";
    }
    if (get_option('navbar_fixed', false)) {
        $containerClass .= " fixed-navbar";
    }
    if (get_option("full_screen_image_bg")) {
        $containerClass .= " has-bg-img";
    }
    if (ciGetNormalizedMeta('make_fancy_landing', false)) {
        $containerClass .= " fancy-landing";
    }
    $containerClass .= " text-align-" . ciGetNormalizedMeta('alignment', 'left');
    return $containerClass;
}
開發者ID:s3cur3,項目名稱:ci-mdo,代碼行數:31,代碼來源:fullWidthLayout.php

示例3: roots_main_class

function roots_main_class()
{
    if (roots_display_sidebar()) {
        $class = 'span8';
    } else {
        $class = 'span12';
    }
    return $class;
}
開發者ID:richbradshaw,項目名稱:roots,代碼行數:9,代碼來源:config.php

示例4: roots_main_class

/**
 * .main classes
 */
function roots_main_class()
{
    if (roots_display_sidebar()) {
        // Classes on pages with the sidebar
        $class = 'with-sidebar';
    } else {
        $class = '';
    }
    echo apply_filters('roots/main_class', $class);
}
開發者ID:anunatak,項目名稱:anunastart,代碼行數:13,代碼來源:config.php

示例5: roots_main_class

/**
 * .main classes
 */
function roots_main_class()
{
    if (roots_display_sidebar()) {
        // Classes on pages with the sidebar
        $class = 'col-sm-8 col-md-8 col-md-push-4 col-sm-push-4';
    } else {
        // Classes on full width pages
        $class = 'col-xs-12 col-sm-12 col-md-12';
    }
    return $class;
}
開發者ID:smark73,項目名稱:eagle,代碼行數:14,代碼來源:config.php

示例6: roots_main_class

/**
 * .main classes
 */
function roots_main_class() {
  if (roots_display_sidebar()) {
    // Classes on pages with the sidebar
    $class = 'small-12 medium-8';
  } else {
    // Classes on full width pages
    $class = 'small-12';
  }

  return apply_filters('roots/main_class', $class);
}
開發者ID:bmontague,項目名稱:sct,代碼行數:14,代碼來源:config.php

示例7: roots_main_class

/**
 * .main classes
 */
function roots_main_class()
{
    if (roots_display_sidebar()) {
        // Classes on pages with the sidebar
        $class = 'col-sm-12 col-md-10';
    } else {
        // Classes on full width pages
        $class = 'col-sm-12';
    }
    return apply_filters('roots/main_class', $class);
}
開發者ID:erikkowalski,項目名稱:renee-theme,代碼行數:14,代碼來源:config.php

示例8: get_template_part

                <?php 
get_template_part('templates/listen-live');
?>
            </section>
        </div>
        <div class="content row">
          <div class="main <?php 
echo roots_main_class();
?>
" role="main">
                <?php 
include roots_template_path();
?>
          </div><!-- /.main -->
          <?php 
if (roots_display_sidebar()) {
    ?>
            <aside class="sidebar <?php 
    echo roots_sidebar_class();
    ?>
" role="complementary">
                <div class="hidden-xs studio-sponsor">
                    <?php 
    echo adrotate_group(14);
    ?>
                </div>
              <?php 
    include roots_sidebar_path();
    ?>
            </aside><!-- /.sidebar -->
          <?php 
開發者ID:smark73,項目名稱:979theeagle,代碼行數:31,代碼來源:base.php

示例9: get_template_part

    if ($config->isglobal) {
        if (is_page('angel-investor') || is_page('entrepreneurs') || is_page('innovators') || is_page('job-seekers') || is_page('mentorsadvisors') || is_page('service-providers') || is_page('suspended-user')) {
            get_template_part('templates/header-profile-types');
        } else {
            get_template_part('templates/header-global-landing-page');
        }
    } else {
        get_template_part('templates/header-landing-page');
    }
} else {
    get_template_part('templates/header-wrap');
}
?>
	
	<?php 
if (!get_query_var('idea_slug', false) && roots_display_sidebar()) {
    ?>

		 <?php 
    include roots_sidebar_path();
    ?>

	<?php 
}
?>

	<?php 
include roots_template_path();
?>

開發者ID:praveenhotha,項目名稱:ig,代碼行數:29,代碼來源:base.php

示例10: roots_template_path

if (is_page_template('template-fullwidth.php')) {
    ?>
 fullwidth<?php 
}
if (is_page() && has_post_thumbnail() && $show_header) {
    ?>
 has-page-header<?php 
}
?>
" role="main">
        <?php 
include roots_template_path();
?>
      </main><!-- /.main -->
      <?php 
if (roots_display_sidebar() && !is_page_template('template-fullwidth.php')) {
    ?>

        <aside class="sidebar" role="complementary">
          <hr class="visible-xs" />
          <?php 
    include roots_sidebar_path();
    ?>
        </aside><!-- /.sidebar -->
      <?php 
}
?>
    </div><!-- /.content -->
  </div><!-- /.wrap -->

  <?php 
開發者ID:esleau,項目名稱:esleau-theme,代碼行數:31,代碼來源:base.php

示例11: do_action




<?php
  do_action('get_header');
  get_template_part('templates/header');
?>




  <div class="content" role="document">
    <main class="main" role="main">
      <?php include roots_template_path(); ?>
    </main><!-- /.main -->
    <?php if (roots_display_sidebar()) : ?>
      <aside class="sidebar <?php echo roots_sidebar_class(); ?> columns" role="complementary">
        <?php include roots_sidebar_path(); ?>
      </aside><!-- /.sidebar -->
    <?php endif; ?>
  </div><!-- /.content -->


  <?php get_template_part('templates/footer'); ?>





</body>
</html>
開發者ID:bmontague,項目名稱:sct,代碼行數:28,代碼來源:base.php


注:本文中的roots_display_sidebar函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。