示例#1
0
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;
?>
示例#2
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: 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() ?>
示例#3
0
 * @author Your Inspiration Themes Team <*****@*****.**>
 *
 * 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>
示例#4
0
$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;