当前位置: 首页>>代码示例>>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;未经允许,请勿转载。