forked from cyberchimps/responsive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
full-width-page.php
69 lines (60 loc) · 1.86 KB
/
full-width-page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
* Exit if accessed directly.
*
* @package Responsive
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Full Content Template
*
* Template Name: Full Width Page (no sidebar)
*
* @file full-width-page.php
* @package Responsive
* @author CyberChimps
* @copyright 2020 CyberChimps
* @license license.txt
* @version Release: 1.0
* @filesource wp-content/themes/responsive/full-width-page.php
* @link http://codex.wordpress.org/Theme_Development#Pages_.28page.php.29
* @since available since Release 1.0
*/
get_header();
Responsive\responsive_wrapper_top(); // before wrapper content hook. ?>
<div id="wrapper" class="site-content clearfix">
<div class="content-outer container">
<div class="row">
<?php Responsive\responsive_in_wrapper(); // wrapper hook. ?>
<main id="primary" class="content-area col-940" role="main">
<?php
get_template_part( 'loop-header', get_post_type() );
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
Responsive\responsive_entry_before();
get_template_part( 'partials/page/layout', get_post_type() );
Responsive\responsive_entry_after();
Responsive\responsive_comments_before();
comments_template( '', true );
Responsive\responsive_comments_after();
endwhile;
get_template_part( 'loop-nav', get_post_type() );
else :
// Elementor `404` location.
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'single' ) ) {
get_template_part( 'loop-no-posts', get_post_type() );
}
endif;
?>
</main><!-- end of #content-full -->
</div>
</div>
<?php Responsive\responsive_wrapper_bottom(); // after wrapper content hook. ?>
</div> <!-- end of #wrapper -->
<?php
Responsive\responsive_wrapper_end(); // after wrapper hook.
get_footer();
?>