Add page template for stats page
This commit is contained in:
parent
56275ef81f
commit
2500235c19
1 changed files with 61 additions and 0 deletions
61
page-stats.php
Normal file
61
page-stats.php
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
<?php get_header(); ?>
|
||||
|
||||
<div class="content section-inner">
|
||||
|
||||
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
||||
|
||||
<div <?php post_class('post single'); ?>>
|
||||
|
||||
<div class="post-container">
|
||||
|
||||
<?php if ( has_post_thumbnail() ) : ?>
|
||||
|
||||
<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'thumbnail_size' ); $thumb_url = $thumb['0']; ?>
|
||||
|
||||
<div class="featured-media">
|
||||
|
||||
<?php the_post_thumbnail('post-image'); ?>
|
||||
|
||||
</div> <!-- /featured-media -->
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="post-header">
|
||||
|
||||
<h1 class="post-title"><?php the_title(); ?></h1>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="post-inner">
|
||||
|
||||
<div class="post-content">
|
||||
|
||||
<?php the_content(); ?>
|
||||
|
||||
<?php wp_link_pages('before=<div class="clear"></div><p class="page-links">' . __( 'Pages:', 'hitchcock' ) . ' &after=</p>&seperator= <span class="sep">/</span> '); ?>
|
||||
|
||||
</div> <!-- /post-content -->
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<?php edit_post_link(__('Edit Page','hitchcock'), '<div class="post-meta"><p class="post-edit">', '</p></div>'); ?>
|
||||
|
||||
</div> <!-- /post-inner -->
|
||||
|
||||
<?php comments_template( '', true ); ?>
|
||||
|
||||
</div> <!-- /post-container -->
|
||||
|
||||
</div> <!-- /post -->
|
||||
|
||||
<?php endwhile; else: ?>
|
||||
|
||||
<p><?php _e("We couldn't find any posts that matched your query. Please try again.", "hitchcock"); ?></p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
</div> <!-- /content -->
|
||||
|
||||
<?php get_footer(); ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue