Make WordPress Themes

source: lightning/4.4.8/front-page.php

Last change on this file was 94244, checked in by themedropbox, 7 years ago

New version of Lightning - 4.4.8

File size: 2.5 KB
Line 
1<?php get_header(); ?>
2
3<?php get_template_part( 'module_slide' ); ?>
4
5<div class="section siteContent">
6        <div class="container">
7                <div class="row">
8
9                        <?php
10                        if ( lightning_is_frontpage_onecolumn() ) {
11                                $main_col = 'col-md-12';
12                        } else {
13                                $main_col = 'col-md-8';
14                        }
15                        ?>
16
17                        <div class="<?php echo $main_col; ?> mainSection">
18
19                        <?php do_action( 'lightning_home_content_top_widget_area_before' ); ?>
20
21                        <?php if ( is_active_sidebar( 'home-content-top-widget-area' ) ) : ?>
22                                <?php dynamic_sidebar( 'home-content-top-widget-area' ); ?>
23                        <?php endif; ?>
24
25                        <?php do_action( 'lightning_home_content_top_widget_area_after' ); ?>
26
27                        <?php if ( apply_filters( 'is_lightning_home_content_display', true ) ) : ?>
28
29                        <?php if ( have_posts() ) : ?>
30
31                                <?php if ( 'page' == get_option( 'show_on_front' ) ) : ?>
32
33                                        <?php
34                                        while ( have_posts() ) :
35                                                the_post();
36?>
37
38                                                <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
39                                                <div class="entry-body">
40                                                        <?php the_content(); ?>
41                                                </div>
42                                                <?php
43                                                wp_link_pages(
44                                                        array(
45                                                                'before' => '<div class="page-link">' . 'Pages:',
46                                                                'after'  => '</div>',
47                                                        )
48                                                );
49                                                ?>
50                                                 </article><!-- [ /#post-<?php the_ID(); ?> ] -->
51
52                                        <?php endwhile; ?>
53
54                                <?php else : ?>
55
56                                        <div class="postList">
57
58                                                <?php
59                                                while ( have_posts() ) :
60                                                        the_post();
61?>
62
63                                                        <?php get_template_part( 'module_loop_post' ); ?>
64
65                                                <?php endwhile; ?>
66
67                                                <?php
68                                                the_posts_pagination(
69                                                        array(
70                                                                'mid_size'           => 1,
71                                                                'prev_text'          => '&laquo;',
72                                                                'next_text'          => '&raquo;',
73                                                                'type'               => 'list',
74                                                                'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'lightning' ) . ' </span>',
75                                                        )
76                                                );
77                                                ?>
78
79                                        </div><!-- [ /.postList ] -->
80
81                                <?php endif; // if ( 'page' == get_option('show_on_front') ) : ?>
82
83                        <?php else : ?>
84
85                                <div class="well"><p><?php _e( 'No posts.', 'lightning' ); ?></p></div>
86
87                        <?php endif; // have_post() ?>
88
89                        <?php endif; // if ( apply_filters( 'is_lightning_home_top_posts_display', true ) ) : ?>
90
91                        </div><!-- [ /.mainSection ] -->
92
93                        <?php if ( ! lightning_is_frontpage_onecolumn() ) : ?>
94
95                                <div class="col-md-3 col-md-offset-1 subSection sideSection">
96                                        <?php get_sidebar(); ?>
97                                </div><!-- [ /.subSection ] -->
98
99                        <?php endif; ?>
100
101                </div><!-- [ /.row ] -->
102        </div><!-- [ /.container ] -->
103</div><!-- [ /.siteContent ] -->
104<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.