| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /* |
|---|
| 3 | * Template Name: Landing Page |
|---|
| 4 | */ |
|---|
| 5 | get_header(); ?> |
|---|
| 6 | |
|---|
| 7 | <div class="section 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 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
|---|
| 33 | |
|---|
| 34 | <?php do_action( 'ligthning_entry_body_before' ); ?> |
|---|
| 35 | <div class="entry-body"> |
|---|
| 36 | <?php the_content(); ?> |
|---|
| 37 | </div> |
|---|
| 38 | <?php do_action( 'ligthning_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 | </div><!-- [ /#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 | </div><!-- [ /.container ] --> |
|---|
| 63 | </div><!-- [ /.siteContent ] --> |
|---|
| 64 | <?php get_footer(); ?> |
|---|
Note: See
TracBrowser for help on using the repository browser.