Make WordPress Themes

source: lightning/12.2.1/page-lp.php

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

New version of Lightning - 12.2.1

File size: 1.7 KB
Line 
1<?php
2/*
3 * Template Name: Landing Page ( not recommended )
4 */
5get_header(); ?>
6
7<div class="<?php lightning_the_class_name( 'siteContent' ); ?>">
8<?php do_action( 'lightning_siteContent_prepend' ); ?>
9<div class="container">
10<?php do_action( 'lightning_siteContent_container_prepend' ); ?>
11<div class="row">
12<div class="<?php lightning_the_class_name( 'mainSection' ); ?>" id="main" role="main">
13<?php do_action( 'lightning_mainSection_prepend' ); ?>
14
15        <?php
16        if ( have_posts() ) {
17                while ( have_posts() ) :
18                        the_post();
19                ?>
20
21                        <?php
22                        global $post;
23                        $widget_id = 'lp-widget-' . $post->ID;
24                        if ( is_active_sidebar( $widget_id ) ) :
25                                dynamic_sidebar( $widget_id );
26                        endif;
27
28                        $content = get_the_content();
29                        if ( $content ) :
30                        ?>
31
32                        <article id="post-<?php the_ID(); ?>" <?php post_class( apply_filters( 'lightning_article_outer_class', '' ) ); ?>>
33
34                        <?php do_action( 'lightning_entry_body_before' ); ?>
35                        <div class="<?php lightning_the_class_name( 'entry-body' ); ?>">
36                        <?php the_content(); ?>
37                        </div>
38                        <?php do_action( 'lightning_entry_body_after' ); ?>
39
40        <?php
41        $args = array(
42                'before'      => '<nav class="page-link"><dl><dt>Pages :</dt><dd>',
43                'after'       => '</dd></dl></nav>',
44                'link_before' => '<span class="page-numbers">',
45                'link_after'  => '</span>',
46                'echo'        => 1,
47        );
48                        wp_link_pages( $args );
49                        ?>
50                        </article><!-- [ /#post-<?php the_ID(); ?> ] -->
51
52        <?php endif; ?>
53
54        <?php
55        endwhile;
56        };
57?>
58<?php do_action( 'lightning_mainSection_append' ); ?>
59</div><!-- [ /.mainSection ] -->
60
61</div><!-- [ /.row ] -->
62<?php do_action( 'lightning_siteContent_container_apepend' ); ?>
63</div><!-- [ /.container ] -->
64<?php do_action( 'lightning_siteContent_apepend' ); ?>
65</div><!-- [ /.siteContent ] -->
66<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.