This repository has been archived by the owner on Jul 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
page.php
58 lines (46 loc) · 1.97 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
<?php
/**
* The template for displaying all pages.
*
* @package Publisher
* @since Publisher 1.0
*/
get_header(); ?>
<div id="main" class="site-main clearfix">
<div id="primary" class="content-area">
<div id="content" class="site-content container clearfix" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php if ( '' != get_the_post_thumbnail() ) { ?>
<a class="page-featured-image" href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'publisher' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_post_thumbnail( 'post-image' ); ?></a>
<?php } ?>
<header class="entry-header">
<div class="hgroup">
<h1 class="entry-title"><?php the_title(); ?></h1>
</div>
</header><!-- .entry-header -->
<div class="block-text">
<div class="content-section">
<div id="content-wrap">
<?php the_content(); ?>
<?php wp_link_pages('before=<span class="page-links">&after=</span>'); ?>
<?php edit_post_link( __( 'Edit', 'publisher' ), '<span class="edit-link"><i class="icon-edit-sign"></i>', '</span>' ); ?>
</div><!-- #content-wrap -->
</div><!-- .content-section -->
</div><!-- .block-text -->
<?php endwhile; // end of the loop. ?>
<!-- Comments and sharing tabs -->
<div class="single-tab">
<div id="single-tabs">
<!-- If comments are open or we have at least one comment, load up the comment template. -->
<?php if ( comments_open() || '0' != get_comments_number() ) { ?>
<div id="tab-1" class="comments-section post-tab clearfix">
<?php comments_template(); ?>
</div><!-- comment section -->
<?php } ?>
</div><!-- #single-tabs -->
</div><!-- .single-tab -->
</div><!-- #content .site-content -->
</div><!-- #primary .content-area -->
<?php get_sidebar(); ?>
</div><!-- #main .site-main -->
<?php get_footer(); ?>