-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.php
41 lines (40 loc) · 1.04 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
/*
Template Name: Default Page
Description: Default Page.
*/
?>
<?php get_header(); ?>
<div id="main">
<div id="content" class="container">
<!-- Page.php -->
<div class="row">
<div class="col-sm-8">
<header><h1><?php the_title(); ?></h1></header>
<?php if (function_exists('dimox_breadcrumbs')) dimox_breadcrumbs(); ?>
</div>
<div class="col-sm-4">
<div class="header-search"><?php get_search_form(); ?></div>
</div>
</div>
<?php if(get_post_meta($post->ID, 'background', true)): ?>
</div>
<div class="background-color-gray">
<div id="content" class="container">
<?php endif; ?>
<div class="row">
<div class="col-sm-12">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article>
<?php the_content(__('(more...)')); ?>
</article>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
</div>
</div>
<?php if(get_post_meta($post->ID, 'background', true)): ?>
</div>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>