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


PHP yit_sidebar_layout函數代碼示例

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


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

示例1: dynamic_sidebar

if (!empty($sidebars[$sidebar]) && $sidebar_home_position == 'top') {
    ?>
    <div class="home-row container">
        <div class="row"><?php 
    dynamic_sidebar($sidebar);
    ?>
</div>
    </div>
<?php 
}
?>
    <!-- END HOME SIDEBAR TOP -->

    <!-- START PRIMARY -->
    <div id="primary" class="<?php 
yit_sidebar_layout();
?>
">
        <?php 
masterslider(5);
?>
        <div class="container group">
            <div class="row">
                <?php 
do_action('yit_before_content');
?>

                <!-- START CONTENT -->
                <div id="content-home" class="span<?php 
echo yit_get_sidebar_layout() == 'sidebar-no' ? 12 : 9;
?>
開發者ID:VitaliyProdan,項目名稱:wp_shop,代碼行數:31,代碼來源:full-width.php

示例2: get_template_part

 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */

/*
Template Name: Home
*/

if( is_posts_page() || is_home() )
    { get_template_part( 'blog' ); die; }

get_header();
do_action( 'yit_before_primary' ) ?>
<!-- START PRIMARY -->
<main id="primary" class="<?php yit_sidebar_layout(); ?>">
    <div class="container group">
	    <div class="row">
	        <?php do_action( 'yit_before_content' ) ?>
	        <!-- START CONTENT -->
	        <div id="content-home" class="span<?php echo yit_get_sidebar_layout() == 'sidebar-no' ? 12 : 9 ?> content group">
	        <?php	        
	        do_action( 'yit_loop_page' );
	        
	        comments_template();
	        ?>
	        </div>
	        <!-- END CONTENT -->
	        <?php do_action( 'yit_after_content' ) ?>
	        
	        <?php get_sidebar() ?>
開發者ID:simonsays88,項目名稱:costa,代碼行數:31,代碼來源:home.php

示例3: get_header

 * @author Your Inspiration Themes Team <info@yithemes.com>
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */

/*
Template Name: Archive
*/

get_header();
do_action( 'yit_before_primary' ) ?>
<!-- START PRIMARY -->
<div id="primary" class="<?php yit_sidebar_layout() ?>">
    <div class="container group">
	    <div class="row">
	        <?php do_action( 'yit_before_content' ) ?>
	        <!-- START CONTENT -->
	        <div id="content-archives" class="span<?php echo yit_get_sidebar_layout() == 'sidebar-no' ? 12 : 8 ?> content group">
	        <?php do_action( 'yit_archives' ) ?>
	        </div>
	        <!-- END CONTENT -->
	        <?php do_action( 'yit_after_content' ) ?>
	        
	        <?php get_sidebar() ?>
	        
	        <?php do_action( 'yit_after_sidebar' ) ?>
		</div>
    </div>
開發者ID:simonsays88,項目名稱:costa,代碼行數:31,代碼來源:archives.php

示例4: sanitize_title

$name = sanitize_title($name);
$open = abs((int) $open);
if (empty($name)) {
    return false;
}
$args = array('post_type' => $name, 'posts_per_page' => -1, 'order' => 'ASC');
$ft = new WP_Query($args);
$features_label = '';
$features_content = '';
$i = 0;
while ($ft->have_posts()) {
    $ft->the_post();
    $current = $open == $i + 1 ? 'current-feature' : '';
    $the_label = '<li class="features-tab-' . $i . ' ' . $current . '">';
    if (has_post_thumbnail()) {
        $the_label .= get_the_post_thumbnail(get_the_ID(), 'features_tab_icon');
    }
    $the_label .= get_the_title();
    $the_label .= '</li>';
    $the_content = '<div class="features-tab-content features-tab-' . $i . ' ' . $current . '">' . yit_addp(get_the_content()) . '</div>';
    $features_label .= $the_label;
    $features_content .= $the_content;
    $i++;
}
$without_sidebar = yit_sidebar_layout() == 'sidebar-no' ? 'without-sidebar' : '';
$html = '<div id="features-tab-' . $name . '" class="features-tab-container ' . $without_sidebar . ' group">';
$html .= '<ul class="features-tab-labels">' . $features_label . '</ul>';
$html .= '<div class="features-tab-wrapper">' . $features_content . '</div>';
$html .= '</div>';
echo $html;
$yit_is_feature_tab = false;
開發者ID:eugenehiggins,項目名稱:wellnessrx,代碼行數:31,代碼來源:features_tab.php


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