-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
87 lines (73 loc) · 2.59 KB
/
single.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
/**
* @package WordPress
* @subpackage ThemeWoot
* @author ThemeWoot Team
*
* This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.gnu.org/licenses/gpl-3.0.txt
*/
$format=get_post_format() === false? 'standard':get_post_format();
?>
<?php get_header(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="site-content container pt pb clearfix">
<article id="primary-wrapper" class="column eight">
<?php if (have_posts()) : the_post(); ?>
<div class="inner">
<div class="post-blog">
<div class="post-item">
<h3 class="entry-title"><?php the_title(); ?></h3>
<header class="entry-meta">
<?php if($categories_list=get_the_category_list( __( ', ', 'Twoot' ) )) : ?>
<span class="cats-link">
<?php printf( __( 'Posted in: %1$s', 'Twoot' ), $categories_list ); ?>
</span>
<?php endif; ?>
<span class="date-link">
<?php printf( __( 'On: <a href="%1$s" title="%2$s" rel="bookmark">%3$s</a>', 'Twoot' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), get_the_time( get_option('date_format') ) ); ?>
</span>
<?php edit_post_link( __( 'Edit', 'Twoot' ), '<span class="edit-link">', '</span>' ); ?>
</header>
<article class="entry-content clearfix">
<?php echo twoot_generator( 'load_template', 'format-' . $format ); ?>
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . esc_attr__( 'Pages:', 'Twoot' ), 'after' => '</div>' ) ); ?>
</article>
<footer class="entry-meta clearfix">
<?php if($tags_list = get_the_tag_list( '', __( ', ', 'Twoot' ) )) : ?>
<span class="tags-link">
<?php printf( __( 'Tags: %1$s', 'Twoot' ), $tags_list ); ?>
</span>
<?php endif; ?>
</footer>
</div>
</div>
<!--end post blog-->
<?php
$q = new Twoot_Template_Related_Posts(array(
'title' => esc_attr__('Related Posts', 'Twoot'),
'counts' => twoot_get_frontend_func('opt', 'opt', 'blog_related_counts'),
'order' => twoot_get_frontend_func('opt', 'opt', 'blog_related_order'),
'orderby' => twoot_get_frontend_func('opt', 'opt', 'blog_related_orderby'),
'post_type' => 'post',
'taxonomy' => 'category'
));
echo $q->post();
?>
<?php
if(comments_open()) {
comments_template( '', true );
}
?>
</div>
<?php endif; ?>
</article>
<!--end #primary-->
<?php get_sidebar(); ?>
</div>
</div>
<!--end #content-->
<?php get_footer(); ?>