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