forked from TamerShlash/Sampression-Lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
50 lines (43 loc) · 1.43 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
<?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 Sampression-Lite
* @since Sampression Lite 1.0
*/
get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<section id="content" class="columns twelve" role="main">
<article <?php post_class('post'); ?> id="post-<?php the_ID(); ?>">
<?php if ( has_post_thumbnail() ) { ?>
<div class="featured-img">
<?php the_post_thumbnail( 'featured' ); ?>
</div>
<!-- .featured-img -->
<?php } ?>
<header class="post-header">
<h2 class="post-title">
<?php the_title(); ?>
</h2>
</header>
<div class="entry clearfix">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'sampression' ) . '</span>', 'after' => '</div>' ) ); ?>
<?php if(is_user_logged_in()){ ?>
<div class="meta">
<div class="edit"><span class="ico">Edit</span> <?php edit_post_link( __( 'Edit', 'sampression' ) ); ?> </div>
</div>
<?php } ?>
</div>
</article>
<?php comments_template( '', true ); ?>
</section>
<!-- end content -->
<?php endwhile; endif; ?>
<?php get_sidebar('right'); ?>
<?php get_footer(); ?>