-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate-full.php
More file actions
38 lines (29 loc) · 876 Bytes
/
template-full.php
File metadata and controls
38 lines (29 loc) · 876 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
<?php
/**
Template Name: Full Width
*
* This template is used to display full-width pages.
*
* @package Response
* @since Response 1.0
*
*/
get_header(); ?>
<?php if ( has_post_thumbnail()) { $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'banner'); } ?>
<?php if ( has_post_thumbnail()) { ?>
<div class="banner" style="background-image: url(<?php if (has_post_thumbnail()) { echo $thumb[0]; } ?>);"><span class="banner-img"><?php the_post_thumbnail( 'banner' ); ?></span></div>
<?php } ?>
<!-- BEGIN #content -->
<div id="content" class="full-width">
<!-- BEGIN .row -->
<div class="row">
<!-- BEGIN .sixteen columns -->
<div class="sixteen columns">
<?php get_template_part( 'loop', 'page' ); ?>
<!-- END .sixteen columns -->
</div>
<!-- END .row -->
</div>
<!-- END #content -->
</div>
<?php get_footer(); ?>