-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpage.php
More file actions
41 lines (38 loc) · 1.32 KB
/
page.php
File metadata and controls
41 lines (38 loc) · 1.32 KB
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
<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package Bigfa
* @subpackage Hera
* @since Hera 0.0.1
*/
get_header(); ?>
<?php get_template_part('template-parts/search-bar'); ?>
<div class="articleContainer">
<?php if (have_posts()) :
while (have_posts()) : the_post(); ?>
<article class="hArticle" itemscope="itemscope" itemtype="http://schema.org/Article">
<header class="hArticle--header">
<h2 class="hArticle--headline" itemprop="headline"><?php the_title(); ?></h2>
</header>
<div class="hArticle--body hGraph" itemprop="articleBody">
<?php the_content(); ?>
</div>
</article>
<?php if (comments_open() || get_comments_number()) :
comments_template();
endif; ?>
<?php endwhile;
endif; ?>
<?php if ($heraSetting->get_setting('back2home')) : ?>
<div class="back">
<a href="<?php echo home_url(); ?>"><?php _e('Back to homepage', 'Hera'); ?></a>
</div>
<?php endif; ?>
</div>
<?php get_footer(); ?>