| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /* |
|---|
| 3 | * Template Name: Landing Page for Page Builder ( not recommended ) |
|---|
| 4 | */ |
|---|
| 5 | get_header(); ?> |
|---|
| 6 | |
|---|
| 7 | <div class="<?php lightning_the_class_name( 'siteContent' ); ?>"> |
|---|
| 8 | <?php do_action( 'lightning_siteContent_prepend' ); ?> |
|---|
| 9 | |
|---|
| 10 | <?php |
|---|
| 11 | if ( have_posts() ) { |
|---|
| 12 | while ( have_posts() ) : |
|---|
| 13 | the_post(); |
|---|
| 14 | ?> |
|---|
| 15 | |
|---|
| 16 | <article id="post-<?php the_ID(); ?>" <?php post_class( apply_filters( 'lightning_article_outer_class', '' ) ); ?>> |
|---|
| 17 | |
|---|
| 18 | <?php do_action( 'lightning_entry_body_before' ); ?> |
|---|
| 19 | <div class="<?php lightning_the_class_name( 'entry-body' ); ?>"> |
|---|
| 20 | <?php the_content(); ?> |
|---|
| 21 | </div> |
|---|
| 22 | <?php do_action( 'lightning_entry_body_after' ); ?> |
|---|
| 23 | |
|---|
| 24 | <?php |
|---|
| 25 | $args = array( |
|---|
| 26 | 'before' => '<nav class="page-link"><dl><dt>Pages :</dt><dd>', |
|---|
| 27 | 'after' => '</dd></dl></nav>', |
|---|
| 28 | 'link_before' => '<span class="page-numbers">', |
|---|
| 29 | 'link_after' => '</span>', |
|---|
| 30 | 'echo' => 1, |
|---|
| 31 | ); |
|---|
| 32 | wp_link_pages( $args ); |
|---|
| 33 | ?> |
|---|
| 34 | </article><!-- [ /#post-<?php the_ID(); ?> ] --> |
|---|
| 35 | |
|---|
| 36 | <?php |
|---|
| 37 | endwhile; |
|---|
| 38 | } |
|---|
| 39 | ?> |
|---|
| 40 | |
|---|
| 41 | <?php do_action( 'lightning_siteContent_apepend' ); ?> |
|---|
| 42 | </div><!-- [ /.siteContent ] --> |
|---|
| 43 | <?php get_footer(); ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.