Make WordPress Themes

source: lightning/12.9.0/singular.php

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

New version of Lightning - 12.9.0

File size: 2.1 KB
Line 
1<?php get_header(); ?>
2
3<?php
4if ( lightning_is_page_header_and_breadcrumb() ) {
5
6        // Dealing with old files.
7        // Actually, it's ok to only use get_template_part().
8        /*
9         Page Header
10        /*-------------------------------------------*/
11        $old_file_name[] = 'module_pageTit.php';
12        if ( locate_template( $old_file_name, false, false ) ) {
13                locate_template( $old_file_name, true, false );
14        } else {
15                get_template_part( 'template-parts/page-header' );
16        }
17
18        /*
19         BreadCrumb
20        /*-------------------------------------------*/
21        do_action( 'lightning_breadcrumb_before' );
22        $old_file_name[] = 'module_panList.php';
23        if ( locate_template( $old_file_name, false, false ) ) {
24                locate_template( $old_file_name, true, false );
25        } else {
26                get_template_part( 'template-parts/breadcrumb' );
27        }
28        do_action( 'lightning_breadcrumb_after' );
29
30} // if ( lightning_is_page_header_and_top_breadcrumb() ){
31?>
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.