forked from moobaer/tiga
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent-single.php
More file actions
62 lines (45 loc) · 1.88 KB
/
content-single.php
File metadata and controls
62 lines (45 loc) · 1.88 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
<?php
/**
* The template used for displaying post content in single.php
*
* @package Tiga
* @author Satrya
* @license license.txt
* @since 0.0.1
*
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tiga' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h1>
<div class="entry-meta">
<?php tiga_posted_on(); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<?php get_sidebar( 'above-content' ); ?>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'tiga' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php get_sidebar( 'below-content' ); ?>
<footer class="entry-meta">
<?php
$tiga_socialpage = of_get_option( 'tiga_social_share' );
$disable_social = get_post_meta(get_the_ID(), 'tiga_social_check', true);
if( ( 'tiga_post' == $tiga_socialpage ) || ( 'tiga_both' == $tiga_socialpage ) && ( $disable_social != 'true' ) )
tiga_share_buttons();
?>
<?php
$tags_list = get_the_tag_list( '', ', ' );
printf( __( '<span class="%1$s">%2$s</span>', 'tiga' ), 'entry-utility-prep entry-utility-prep-tag-links tag', $tags_list );
$categories_list = get_the_category_list(', ');
printf( __( '<span class="%1$s category">%2$s</span>', 'tiga' ), 'entry-utility-prep entry-utility-prep-cat-links cat', $categories_list );
?>
<?php edit_post_link( __( 'Edit', 'tiga' ), '<span class="post-edit">', '</span>' ); ?>
<?php if( of_get_option( 'tiga_author_box' ) )
tiga_the_author();
?>
</footer><!-- .entry-meta -->
</article><!-- end #article-<?php the_ID(); ?> -->