-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfull-width-page-wider.php
155 lines (137 loc) · 4.66 KB
/
full-width-page-wider.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?php
/**
* Template Name: Full Width Page with wider content
*
* @package Cardume
* @subpackage Humus
*/
get_header(); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php
while ( have_posts() ) :
the_post();
if(is_page())
do_action('humus_before_page_content');
if(is_single())
do_action('humus_before_single_post');
$header_image = humus_get_header_image_url();
$section_icon = humus_get_term_icon_url($post->ID, 'section');
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('full row'); ?>>
<header class="page-header post-header <?php if($header_image) echo 'header-image'; ?>" <?php if($header_image) echo 'style="background-image:url(' . $header_image . ')"'; ?>>
<div class="gradient"></div>
<?php do_action('humus_before_header_content'); ?>
<div class="header-content">
<div class="container">
<div class="one column">
<?php if($section_icon) : ?>
<img src="<?php echo $section_icon; ?>" alt="<?php single_term_title(); ?>" />
<?php else : ?>
<?php endif; ?>
</div>
<div class="ten columns">
<?php humus_breadcrumb(); ?>
<h1 class="page-title"><?php the_title(); ?></h1>
</div>
</div>
</div>
<?php do_action('humus_after_header_content'); ?>
</header>
<section class="page-content">
<div class="container">
<?php if(is_single()) : ?>
<div class="twelve columns">
<div class="row">
<aside id="post-meta">
<div class="three columns alpha">
<?php if(get_post_type() == 'event' ) : ?>
<div class="event-date">
<p>
<span><?php _e('When', 'humus'); ?></span>
<span class="meta-content"><?php echo humus_get_event_date(); ?></span>
</p>
</div>
<?php else : ?>
<div class="post-date">
<p>
<span><?php _e('published', 'humus'); ?></span>
<span class="meta-content"><?php the_date(); ?></span>
</p>
</div>
<?php endif; ?>
</div>
<div class="five columns">
<?php if(get_post_type() == 'event') : ?>
<div class="event-location">
<p>
<span><?php _e('Where', 'humus'); ?></span>
<span class="meta-content"><?php echo humus_get_event_location(); ?></span>
</p>
</div>
<?php elseif($display_author) : ?>
<div class="post-author">
<p>
<span><?php _e('by', 'humus'); ?></span>
<span class="meta-content"><?php the_author(); ?></span>
</p>
</div>
<?php else : ?>
<?php endif; ?>
</div>
<div class="four columns omega">
<div class="share">
<ul>
<li>
<div class="fb-like" data-href="<?php the_permalink(); ?>" data-layout="box_count" data-show-faces="false" data-send="false"></div>
</li>
<li>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink(); ?>" data-lang="en" data-count="vertical">Tweet</a>
</li>
<li>
<div class="g-plusone" data-size="tall" data-href="<?php the_permalink(); ?>"></div>
</li>
</ul>
</div>
</div>
<div class="clearfix"></div>
</aside>
</div>
</div>
<?php endif; ?>
<div class="twelve columns">
<section id="post-content" class="post-content">
<?php the_content(); ?>
<?php the_tags('<p class="tags"><span class="label">' . __('Tags', 'humus') . '</span>', ', ', '</p>'); ?>
</section>
</div>
</div>
</section>
</article>
<?php
if(is_page())
do_action('humus_after_page_content');
if(is_single()) {
error_log('hi');
do_action('humus_after_single_post');
}
// If comments are open or we have at least one comment, load up the comment template.
if (comments_open() || get_comments_number()) {
do_action('humus_before_single_post_comments');
?>
<div class="container">
<div class="twelve columns row">
<?php comments_template(); ?>
</div>
</div>
<?php
do_action('humus_after_single_post_comments');
}
endwhile;
?>
</div><!-- #content -->
</div><!-- #primary -->
<?php
get_footer();