forked from greggsky/sandy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-full-width.php
52 lines (40 loc) · 1.07 KB
/
page-full-width.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
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* Template Name: Full Width
*
* The template for full width content.
*
* @package WordPress
* @subpackage Foghorn
* @since Foghorn 0.1
*/
//////////////////////////////////////////////////////////////////////
// LAYOUT: This kind of page will be forced into a 1 column layout. //
//////////////////////////////////////////////////////////////////////
function show_cards_body_class($classes) {
$ret = array();
$classFiltered = false;
foreach ($classes as $idx => $class) :
if (preg_match('/^layout-/i', $class)) :
$class = 'layout-1c';
$classFiltered = true;
endif;
$ret[] = $class;
endforeach;
if (!$classFiltered) :
$ret[] = 'layout-1c';
endif;
return $ret;
}
add_filter('body_class','show_cards_body_class', 1000);
get_header(); ?>
<div id="primary">
<div id="content" role="main">
<div class="content-wrap clearfix">
<?php the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
</div>
<?php //comments_template( '', true ); ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_footer(); ?>