Make WordPress Themes

source: lightning/7.2.4/front-page.php

Last change on this file was 121168, checked in by themedropbox, 6 years ago

New version of Lightning - 7.2.4

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