-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpage-sections.php
More file actions
53 lines (32 loc) · 800 Bytes
/
page-sections.php
File metadata and controls
53 lines (32 loc) · 800 Bytes
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
<?php
/**
* Template Name: Sections Page
* Description: Page template for sections
*
* @author Alejandor Mostajo
* @license MIT
* @package Amostajo\DevTemplates
* @version 1.0.0
*/
use DevTemplates\Main as Configuration;
?>
<?php get_header() ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if ( get_post_meta( get_the_ID(), 'section_head', true ) ) : ?>
<?php theme()->section( get_the_ID() ) ?>
<?php endif; ?>
<section id="page" class="page-fix">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1><?php the_title() ?></h1>
<div class="wrapper">
<?php the_content() ?>
</div>
</div>
</div>
</div>
</section>
<?php endwhile; ?>
<?php endif; ?>
<?php get_footer() ?>