Make WordPress Themes

source: ashe/1.9.9.5.5/page.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: 2.1 KB
Line 
1<?php
2
3get_header();
4
5if ( is_front_page() ) {
6
7        // Featured Slider, Carousel
8        if ( ashe_options( 'featured_slider_label' ) === true && ashe_options( 'featured_slider_location' ) !== 'blog' ) {
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' ) !== 'blog' ) {
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-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        ?>
33
34        <!-- Main Container -->
35        <div class="main-container">
36               
37                <article id="page-<?php the_ID(); ?>" <?php post_class(); ?>>
38
39                        <?php
40
41                        if ( have_posts() ) :
42
43                        // Loop Start
44                        while ( have_posts() ) : the_post();
45
46                                if ( has_post_thumbnail() ) {
47                                        echo '<div class="post-media">';
48                                                the_post_thumbnail('ashe-full-thumbnail');
49                                        echo '</div>';
50                                }
51
52                                if ( get_the_title() !== '' ) {
53                                        echo '<header class="post-header">';
54                                                echo '<h1 class="page-title">'. get_the_title() .'</h1>';
55                                        echo '</header>';
56                                }
57
58                                echo '<div class="post-content">';
59                                        the_content('');
60
61                                        // Post Pagination
62                                        $defaults = array(
63                                                'before' => '<p class="single-pagination">'. esc_html__( 'Pages:', 'ashe' ),
64                                                'after' => '</p>'
65                                        );
66
67                                        wp_link_pages( $defaults );
68                                echo '</div>';
69
70                        endwhile; // Loop End
71
72                        endif;
73
74                        ?>
75
76                </article>
77
78                <?php get_template_part( 'templates/single/comments', 'area' ); ?>
79
80        </div><!-- .main-container -->
81
82        <?php
83       
84        // Sidebar Right
85        get_template_part( 'templates/sidebars/sidebar', 'right' ); 
86
87        ?>
88
89</div><!-- .page-content -->
90
91<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.