-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpage.php
More file actions
78 lines (68 loc) · 1.89 KB
/
page.php
File metadata and controls
78 lines (68 loc) · 1.89 KB
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
70
71
72
73
74
75
76
77
78
<?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.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package mtminimag
*/
get_header();
?>
<?php wp_link_pages(); ?>
<div class="mt-title-wrap">
<div class="container">
<div class="row">
<div class="col-lg-12 mt-single-page-wrap">
<h2 class="entry-single-title">
<?php the_title(); ?>
</h2>
<?php
/* Assigning Ad in the Beginning of Post */
if ( getOption('defaults', 'ads_pages') ) {
if ( getOption('defaults', 'ad_code_post_begin') ) {
?>
<div class="ad-page-begin">
<?php echo getOption('defaults', 'ad_code_post_begin'); ?>
</div>
<?php } } ?>
</div><!-- Col End -->
</div><!-- Main Row End -->
</div><!-- Container End -->
</div>
<div class="page">
<?php
while ( have_posts() ) :
the_post();
?>
<div class="mt-featured-image">
<?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail(); ?>
</div><!-- mt-featured-image-->
<div class="mt-page-content">
<div class="mt-page-intro">
<?php the_content(); ?>
</div>
</div><!-- mt-page-content-->
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
?>
<?php
/* Assigning Ad in the End of Post */
if ( getOption('defaults', 'ads_pages') ) {
if ( getOption('defaults', 'ad_code_post_end') ) {
?>
<div class="ad-page-end">
<?php echo getOption('defaults', 'ad_code_post_end'); ?>
</div>
<?php } } ?>
</div><!-- .page -->
<?php
get_footer();