| 1 | <?php |
|---|
| 2 | /* |
|---|
| 3 | * Template Name: No sidebar ( not recommended ) |
|---|
| 4 | */ |
|---|
| 5 | get_header(); ?> |
|---|
| 6 | |
|---|
| 7 | <?php |
|---|
| 8 | // Dealing with old files. |
|---|
| 9 | // Actually, it's ok to only use get_template_part(). |
|---|
| 10 | /*-------------------------------------------*/ |
|---|
| 11 | /* Page Header |
|---|
| 12 | /*-------------------------------------------*/ |
|---|
| 13 | $old_file_name[] = 'module_pageTit.php'; |
|---|
| 14 | if ( locate_template( $old_file_name, false, false ) ) { |
|---|
| 15 | locate_template( $old_file_name, true, false ); |
|---|
| 16 | } else { |
|---|
| 17 | get_template_part( 'template-parts/page-header' ); |
|---|
| 18 | } |
|---|
| 19 | /*-------------------------------------------*/ |
|---|
| 20 | /* BreadCrumb |
|---|
| 21 | /*-------------------------------------------*/ |
|---|
| 22 | do_action( 'lightning_breadcrumb_before' ); |
|---|
| 23 | $old_file_name[] = 'module_panList.php'; |
|---|
| 24 | if ( locate_template( $old_file_name, false, false ) ) { |
|---|
| 25 | locate_template( $old_file_name, true, false ); |
|---|
| 26 | } else { |
|---|
| 27 | get_template_part( 'template-parts/breadcrumb' ); |
|---|
| 28 | } |
|---|
| 29 | do_action( 'lightning_breadcrumb_after' ); |
|---|
| 30 | ?> |
|---|
| 31 | |
|---|
| 32 | <div class="<?php lightning_the_class_name( 'siteContent' ); ?>"> |
|---|
| 33 | <?php do_action( 'lightning_siteContent_prepend' ); ?> |
|---|
| 34 | <div class="container"> |
|---|
| 35 | <?php do_action( 'lightning_siteContent_container_prepend' ); ?> |
|---|
| 36 | <div class="row"> |
|---|
| 37 | <div class="<?php lightning_the_class_name( 'mainSection' ); ?>" id="main" role="main"> |
|---|
| 38 | <?php do_action( 'lightning_mainSection_prepend' ); ?> |
|---|
| 39 | |
|---|
| 40 | <?php |
|---|
| 41 | if ( have_posts() ) { |
|---|
| 42 | while ( have_posts() ) : |
|---|
| 43 | the_post(); |
|---|
| 44 | ?> |
|---|
| 45 | |
|---|
| 46 | <article id="post-<?php the_ID(); ?>" <?php post_class( apply_filters( 'lightning_article_outer_class', '' ) ); ?>> |
|---|
| 47 | |
|---|
| 48 | <?php do_action( 'lightning_entry_body_before' ); ?> |
|---|
| 49 | <div class="<?php lightning_the_class_name( 'entry-body' ); ?>"> |
|---|
| 50 | <?php the_content(); ?> |
|---|
| 51 | </div> |
|---|
| 52 | <?php do_action( 'lightning_entry_body_after' ); ?> |
|---|
| 53 | |
|---|
| 54 | <?php |
|---|
| 55 | $args = array( |
|---|
| 56 | 'before' => '<nav class="page-link"><dl><dt>Pages :</dt><dd>', |
|---|
| 57 | 'after' => '</dd></dl></nav>', |
|---|
| 58 | 'link_before' => '<span class="page-numbers">', |
|---|
| 59 | 'link_after' => '</span>', |
|---|
| 60 | 'echo' => 1, |
|---|
| 61 | ); |
|---|
| 62 | wp_link_pages( $args ); |
|---|
| 63 | ?> |
|---|
| 64 | </article><!-- [ /#post-<?php the_ID(); ?> ] --> |
|---|
| 65 | |
|---|
| 66 | <?php |
|---|
| 67 | endwhile; |
|---|
| 68 | }; |
|---|
| 69 | ?> |
|---|
| 70 | <?php do_action( 'lightning_mainSection_append' ); ?> |
|---|
| 71 | </div><!-- [ /.mainSection ] --> |
|---|
| 72 | |
|---|
| 73 | </div><!-- [ /.row ] --> |
|---|
| 74 | <?php do_action( 'lightning_siteContent_container_apepend' ); ?> |
|---|
| 75 | </div><!-- [ /.container ] --> |
|---|
| 76 | <?php do_action( 'lightning_siteContent_apepend' ); ?> |
|---|
| 77 | </div><!-- [ /.siteContent ] --> |
|---|
| 78 | <?php get_footer(); ?> |
|---|