/
page.php
70 lines (39 loc) · 1.34 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
<?php
/**
* page.php
*
* The single page template file, used to display single pages.
*
* @package Shiword
* @since 1.00
*/
get_header(); ?>
<?php shiword_get_layout( 'page' ); ?>
<div id="posts-container" class="<?php shiword_content_class(); ?>">
<?php if ( have_posts() ) {
while ( have_posts() ) {
the_post(); ?>
<?php shiword_hook_entry_before(); ?>
<div <?php post_class( 'sw-entry-standard' ) ?> id="post-<?php the_ID(); ?>">
<?php shiword_hook_entry_top(); ?>
<?php shiword_post_title( array( 'featured' => 1 ) ); ?>
<?php shiword_hook_like_it(); ?>
<?php shiword_extrainfo( array( 'auth' => 0, 'date' => 0, 'tags' => 0, 'cats' => 0 ) ); ?>
<div class="storycontent">
<?php the_content(); ?>
</div>
<div class="fixfloat">
<?php wp_link_pages( 'before=<div class="meta sw-paginated-entry">' . __( 'Pages', 'shiword' ) . ':&after=</div>' ); ?>
</div>
<?php shiword_hook_entry_bottom(); ?>
</div>
<?php shiword_hook_entry_after(); ?>
<?php shiword_get_sidebar( 'single' ); // show single widget area ?>
<?php comments_template(); // Get wp-comments.php template ?>
<?php } ?>
<?php } else { ?>
<p><?php _e( 'Sorry, no posts matched your criteria.', 'shiword' );?></p>
<?php } ?>
</div>
<?php shiword_get_sidebar(); // show sidebar ?>
<?php get_footer(); ?>