-
Notifications
You must be signed in to change notification settings - Fork 7
/
page.php
executable file
·71 lines (53 loc) · 1.84 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
71
<?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 WordPress
* @subpackage K2
* @since K2 1.0
*/
get_header(); ?>
<div class="wrapper">
<?php if ( is_active_sidebar('widgets-top') ) : ?>
<div id="widgets-top" class="widgets">
<?php dynamic_sidebar('widgets-top'); ?>
</div>
<?php endif; ?>
<div class="primary">
<?php /* K2 Hook */ do_action('template_primary_begin'); ?>
<div id="content" class="content">
<?php the_post(); ?>
<article id="entry-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php /* K2 Hook */ do_action('template_entry_head'); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php wp_link_pages( array('before' => '<div class="entry-pages"><span>' . __('Pages:', 'k2') . '</span>', 'after' => '</div>' ) ); ?>
<?php /* K2 Hook */ do_action('template_entry_foot'); ?>
</footer><!-- .entry-footer -->
</article><!-- #entry-ID -->
<?php if ( comments_open() ): ?>
<div class="comments">
<?php comments_template(); ?>
</div><!-- .comments -->
<?php endif; ?>
</div><!-- .content -->
<?php /* K2 Hook */ do_action('template_primary_end'); ?>
</div><!-- .primary -->
<?php if ( ! get_post_custom_values('sidebarless') ) get_sidebar(); ?>
<?php if ( is_active_sidebar('widgets-bottom') ) : ?>
<div id="widgets-bottom" class="widgets">
<?php dynamic_sidebar('widgets-bottom'); ?>
</div>
<?php endif; ?>
</div><!-- .wrapper -->
<?php get_footer(); ?>