-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage.php
83 lines (68 loc) · 2.21 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
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
<?php
/**
* Template Name: Full Width Page
*
* @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();
do_action('humus_before_page_content'); $header_image = humus_get_header_image_url();
?>
<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">
<div class="one column"> </div>
<div class="ten 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
do_action('humus_after_page_content');
// 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();