forked from meirinaldojunior/alps-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-simplewide.php
30 lines (30 loc) · 1.3 KB
/
template-simplewide.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
<?php
/**
* Template Name: Simple Full-Width Template
*/
?>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('templates/page', 'header-carousel'); ?>
<div class="layout-container full--until-large">
<div class="flex-container cf">
<div class="column__primary bg--white can-be--dark-light no-pad--btm">
<div class="spacing--double flex h--100p">
<div class="pad--primary spacing text">
<h2 class="font--tertiary--l theme--primary-text-color"><?php if (get_post_meta($post->ID, 'display_title', true)): get_post_meta($post->ID, 'display_title', true); else: the_title(); endif; ?></h2>
<?php the_content(); ?>
</div>
<?php if (is_active_sidebar('widget_area_primary')): ?>
<div class="with-divider grid--uniform">
</div>
<?php endif; ?>
<?php include(locate_template('patterns/blocks/block-story.php')); ?>
<?php if (is_active_sidebar('widget_area_primary_bottom')): ?>
<div class="pad--primary spacing text">
<?php dynamic_sidebar('widget_area_primary_bottom'); ?>
</div>
<?php endif; ?>
</div>
</div> <!-- /.shift-left--fluid -->
</div> <!-- /.flex-container -->
</div> <!-- /.layout-container -->
<?php endwhile; ?>