-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-three.php
54 lines (39 loc) · 1.13 KB
/
template-three.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
53
54
<?php
/**
Template Name: Three Column
*
* This template is used to display three column pages featuring two sidebars.
*
* @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">
<!-- BEGIN .row -->
<div class="row">
<!-- BEGIN .three columns -->
<div class="three columns">
<?php get_sidebar('left'); ?>
<!-- END .three columns -->
</div>
<!-- BEGIN .eight columns -->
<div class="eight columns">
<?php get_template_part( 'loop', 'page' ); ?>
<!-- END .eight columns -->
</div>
<!-- BEGIN .five columns -->
<div class="five columns">
<?php get_sidebar(); ?>
<!-- END .five columns -->
</div>
<!-- END .row -->
</div>
<!-- END #content -->
</div>
<?php get_footer(); ?>