-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.php
More file actions
120 lines (107 loc) · 3.74 KB
/
content.php
File metadata and controls
120 lines (107 loc) · 3.74 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
/**
* The default template for displaying content
*
* Used for both single and index/archive/search.
*
* @package WordPress
* @subpackage Tween_Fift
* @since Tween Fift 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
// Post thumbnail.
tweenfift_post_thumbnail();
?>
<?php if ( is_home() || is_archive() || is_category() ) {
} else {
global $redux_tween_fift; $tfbd_switch1 = $redux_tween_fift['switch-breadcrumbs']; if(($tfbd_switch1 == '1')) {
tweenfift_breadcrumbs();
}
} ?>
<header class="entry-header">
<?php
if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
else :
the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
endif;
?>
</header><!-- .entry-header -->
<!-- ADS 2 -->
<?php if ( is_home() || is_archive() || is_category() ) {
} else { ?>
<?php global $redux_tween_fift; $ads2 = $redux_tween_fift['ads-2']; if(($ads2 == '')) {
} else { ?>
<?php global $redux_tween_fift; $ads_switch2 = $redux_tween_fift['switch-ads-2']; if(($ads_switch2 == '1')) { ?>
<div class="ads-p">
<h3 class="title"><span>Advertisement</span></h3>
<div class="widget_ads">
<?php global $redux_tween_fift; echo $redux_tween_fift['ads-2']; ?>
</div>
</div>
<?php } else { } ?>
<?php } ?>
<?php } ?>
<div class="entry-content">
<?php if ( is_home() || is_archive() || is_category() ) {
/* translators: %s: Name of current post */
the_excerpt( sprintf(
__( 'Continue reading %s', 'tweenfift' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
) );
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'tweenfift' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'tweenfift' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
} else {
/* translators: %s: Name of current post */
the_content( sprintf(
__( 'Continue reading %s', 'tweenfift' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
) );
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'tweenfift' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'tweenfift' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
} ?>
</div><!-- .entry-content -->
<!-- ADS 3 -->
<?php if ( is_home() || is_archive() || is_category() ) {
} else { ?>
<?php global $redux_tween_fift; $ads3 = $redux_tween_fift['ads-3']; if(($ads3 == '')) {
} else { ?>
<?php global $redux_tween_fift; $ads_switch3 = $redux_tween_fift['switch-ads-3']; if(($ads_switch3 == '1')) { ?>
<div class="ads-p">
<h3 class="title"><span>Advertisement</span></h3>
<div class="widget_ads">
<?php global $redux_tween_fift; echo $redux_tween_fift['ads-3']; ?>
</div>
</div>
<?php } else { } ?>
<?php } ?>
<?php } ?>
<?php
// Author bio.
if ( is_single() && get_the_author_meta( 'description' ) ) :
get_template_part( 'author-bio' );
endif;
?>
<footer class="entry-footer">
<?php tweenfift_entry_meta(); ?>
<?php edit_post_link( __( 'Edit', 'tweenfift' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->
<!-- Image Accessories -->
<?php if ( is_single() || is_page() || is_404() || is_attachment() ) {
get_template_part( 'imgaccc' );
} ?>