Make WordPress Themes

source: ashe/2.211/index.php

Last change on this file was 140318, checked in by themedropbox, 5 years ago

New version of Ashe - 1.9.7.99.03

File size: 1.4 KB
Line 
1<?php 
2
3get_header();
4
5if ( is_home() ) {
6
7        // Featured Slider, Carousel
8        if ( ashe_options( 'featured_slider_label' ) === true && ashe_options( 'featured_slider_location' ) !== 'front' ) {
9                if ( ashe_options( 'featured_slider_source' ) === 'posts' ) {
10                        get_template_part( 'templates/header/featured', 'slider' );
11                } else {
12                        get_template_part( 'templates/header/featured', 'slider-custom' );
13                }
14        }
15
16        // Featured Links, Banners
17        if ( ashe_options( 'featured_links_label' ) === true && ashe_options( 'featured_links_location' ) !== 'front' ) {
18                get_template_part( 'templates/header/featured', 'links' ); 
19        }
20
21}
22
23?>
24
25<div class="main-content clear-fix<?php echo esc_attr(ashe_options( 'general_content_width' )) === 'boxed' ? ' boxed-wrapper': ''; ?>" data-layout="<?php echo esc_attr( ashe_options( 'general_home_layout' ) ); ?>" data-sidebar-sticky="<?php echo esc_attr( ashe_options( 'general_sidebar_sticky' ) ); ?>">
26       
27        <?php
28       
29        // Sidebar Left
30        get_template_part( 'templates/sidebars/sidebar', 'left' ); 
31
32        // Blog Feed Wrapper
33        if ( strpos( ashe_options( 'general_home_layout' ), 'list' ) === 0 ) {
34                get_template_part( 'templates/grid/blog', 'list' );
35        } else {
36                get_template_part( 'templates/grid/blog', 'grid' );
37        }
38
39        // Sidebar Right
40        get_template_part( 'templates/sidebars/sidebar', 'right' ); 
41
42        ?>
43
44</div>
45
46<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.