-
Notifications
You must be signed in to change notification settings - Fork 18
/
content.php
103 lines (89 loc) · 2.37 KB
/
content.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
/**
* The template for displaying posts within the loop.
*
* @package dokani
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> <?php dokani_article_schema( 'CreativeWork' ); ?>>
<?php
$is_fluid_content = get_theme_mod( 'fluid_featured_image', 'on' );
$is_show_comments = get_theme_mod( 'blog_post_show_comment', 'on' );
$is_show_category = get_theme_mod( 'blog_post_show_category', 'on' );
$is_show_tag = get_theme_mod( 'blog_post_show_tag', 'on' );
$is_show_author = get_theme_mod( 'blog_post_show_author', 'on' );
$is_show_date = get_theme_mod( 'blog_post_show_date', 'on' );
?>
<div class="inside-article <?php echo ( $is_fluid_content ) ? 'is-fluid-content' : ''; ?>">
<?php
/**
* dokani_before_content hook.
*
* @since 1.0.0
*
* @hooked dokani_featured_page_header_inside_single - 10
* @hooked dokani_post_image - 20
*/
do_action( 'dokani_before_content' );
?>
<header class="entry-header">
<?php
/**
* dokani_before_entry_title hook.
*
* @since 1.0.0
*/
do_action( 'dokani_before_entry_title' );
the_title( sprintf( '<h2 class="entry-title" itemprop="headline"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
/**
* dokani_after_entry_title hook.
*
* @since 1.0.0
*
* @hooked dokani_post_meta - 10
*/
do_action( 'dokani_after_entry_title' );
?>
</header><!-- .entry-header -->
<?php
/**
* dokani_after_entry_header hook.
*
* @since 1.0.0
*/
do_action( 'dokani_after_entry_header' );
if ( dokani_show_excerpt() ) : ?>
<div class="entry-summary" itemprop="text">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content" itemprop="text">
<?php
the_content();
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'dokani' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<?php endif;
/**
* dokani_after_entry_content hook.
*
* @since 1.0.0
*
* @hooked dokani_footer_meta - 10
*/
do_action( 'dokani_after_entry_content' );
/**
* dokani_after_content hook.
*
* @since 1.0.0
*/
do_action( 'dokani_after_content' );
?>
</div><!-- .inside-article -->
</article><!-- #post-## -->