-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
100 lines (85 loc) · 2.83 KB
/
single.php
File metadata and controls
100 lines (85 loc) · 2.83 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
/**
* Single Post template file
*
* This file is the single template file, used on single blog posts, per
* the {@link http://codex.wordpress.org/Template_Hierarchy Template Hierarchy}.
*
* @link http://codex.wordpress.org/Function_Reference/comments_open comments_open()
* @link http://codex.wordpress.org/Function_Reference/comments_template comments_template()
* @link http://codex.wordpress.org/Function_Reference/get_header get_header()
* @link http://codex.wordpress.org/Function_Reference/get_footer get_footer()
* @link http://codex.wordpress.org/Function_Reference/have_posts have_posts()
* @link http://codex.wordpress.org/Function_Reference/post_password_required post_password_required()
* @link http://codex.wordpress.org/Function_Reference/the_content the_content()
* @link http://codex.wordpress.org/Function_Reference/the_ID the_ID()
* @link http://codex.wordpress.org/Function_Reference/the_post the_post()
* @link http://codex.wordpress.org/Function_Reference/wp_link_pages wp_link_pages()
*
* @uses apptheme_no_posts() Defined in /functions.php
*
* @package App Theme
* @copyright Copyright (c) 2010, UpThemes
* @license license.txt GNU General Public License, v3
* @since AppTheme 1.0
*/
/**
* Include the header template part file
*
* MUST come first.
* Calls the header PHP file.
* Used in all primary template pages
*
* @see {@link: http://codex.wordpress.org/Function_Reference/get_header get_header}
*
* Child Themes can replace this template part file globally, via "header.php", or in
* a specific context only, via "header-single.php"
*/
get_header();
?>
<div id="content">
<div class="row">
<div class="column six">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<div id="post-<?php the_ID(); ?>" <?php post_class('postwrapper'); ?>>
<?php the_content(); ?>
<?php wp_link_pages(); ?>
</div><!-- /.postwrapper -->
<?php
if ( comments_open() && ! post_password_required() ) {
/**
* Include the comments template
*
* Includes the comments.php template part file
*/
comments_template();
}
?>
<?php endwhile; ?>
<?php else : ?>
<?php
/**
* Output no-post content
*/
apptheme_no_posts();
?>
<?php endif; ?>
</div><!-- .column.six -->
</div><!-- .row -->
</div><!-- #content -->
<?php
/**
* Include the footer template part file
*
* MUST come last.
* Calls the footer PHP file.
* Used in all primary template pages
*
* Codex reference: {@link http://codex.wordpress.org/Function_Reference/get_footer get_footer}
*
* Child Themes can replace this template part file globally, via "footer.php", or in
* a specific context only, via "footer-single.php"
*/
get_footer();
?>