Make WordPress Themes

source: lightning/13.8.0/singular.php

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

New version of Lightning - 13.3.1

File size: 2.1 KB
Line 
1<?php get_header(); ?>
2
3<?php if ( lightning_is_page_header() ){
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
17<?php do_action( 'lightning_breadcrumb_before' ); ?>
18
19<?php if ( lightning_is_breadcrumb() ){
20        /*
21         BreadCrumb
22        /*-------------------------------------------*/
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} ?>
30
31<?php do_action( 'lightning_breadcrumb_after' ); ?>
32
33<div class="<?php lightning_the_class_name( 'siteContent' ); ?>">
34<?php do_action( 'lightning_siteContent_prepend' ); ?>
35<div class="container">
36<?php do_action( 'lightning_siteContent_container_prepend' ); ?>
37<div class="row">
38
39        <div class="<?php lightning_the_class_name( 'mainSection' ); ?>" id="main" role="main">
40                <?php do_action( 'lightning_mainSection_prepend' ); ?>
41                <?php 
42                $template = 'template-parts/post/content-' . esc_attr( $post->post_name ).'.php';
43                $return = locate_template( $template );
44                if ( $return && $post->post_name != get_post_type() ){
45                        locate_template( $template, true );
46                } else {
47                        get_template_part( 'template-parts/post/content', get_post_type() );
48                } ?>
49                <?php do_action( 'lightning_mainSection_append' ); ?>
50        </div><!-- [ /.mainSection ] -->
51
52        <?php if ( lightning_is_subsection_display() ) : ?>
53                <div class="<?php lightning_the_class_name( 'sideSection' ); ?>">
54                <?php get_sidebar( get_post_type() ); ?>
55                </div><!-- [ /.subSection ] -->
56        <?php endif; ?>
57
58<?php do_action( 'lightning_additional_section' ); ?>
59
60</div><!-- [ /.row ] -->
61<?php do_action( 'lightning_siteContent_container_apepend' ); ?>
62</div><!-- [ /.container ] -->
63<?php do_action( 'lightning_siteContent_apepend' ); ?>
64</div><!-- [ /.siteContent ] -->
65
66<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.