-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.php
41 lines (41 loc) · 1.2 KB
/
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
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site may use a
* different template.
*
* @package TechEngage
*/
get_header(); ?>
<main id="content">
<div class="container">
<div class="row">
<div class="<?php if( !is_active_sidebar('sidebar-1')) { echo "col-lg-12 col-md-12"; } else { echo "col-lg-9 col-md-9"; } ?>">
<div class="single-content-container">
<div class="row">
<div class="col-lg-12">
<div class="page-content">
<?php if( have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="link page-break-links">' . __( 'Pages:', 'techengage' ), 'after' => '</div>' ) ); ?>
<?php endif; ?>
</div>
<?php comments_template( '', true ); // show comments ?>
</div>
</div>
</div>
</div>
<!--Sidebar Area-->
<aside class="col-md-3 col-lg-3">
<?php get_sidebar(); ?>
</aside>
<!--Sidebar Area-->
</div>
</div>
</main>
<?php
get_footer();