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
121
122
123
124
125
126
127
128
129
130
131
132
133
|
<?php $single_hide_img = false; $align_title = 'penci-title-' . penci_get_setting( 'penci_single_align_post_title' );
while ( have_posts() ) : the_post(); $pheader_show = penci_check_page_title_show(); ?> <?php if ( penci_post_formats() && ! $single_hide_img ): ?> <div class="entry-media penci-entry-media"> <div class="penci-container"> <?php if ( ! penci_get_setting( 'penci_hide_single_breadcrumb' ) && ! $pheader_show ) : penci_breadcrumbs(); endif; ?> <div class="penci_media_object"> <div class="penci-post-header penci-featured-col-1"> <div class="entry-media__content "> <div class="entry-header penci-entry-header penci-entry-header-top <?php echo esc_attr( $align_title ); ?>"> <?php if ( ! penci_get_setting( 'penci_hide_single_category' ) ) { echo '<div class="penci-entry-categories">'; penci_get_categories(); echo '</div>'; } if ( ! $pheader_show ) { the_title( '<h1 class="entry-title penci-entry-title">', '</h1>' ); } $subtitle_show = penci_check_page_subtitle_show(); $post_subtitle = get_post_meta( get_the_ID(), 'penci_post_subtitle', true ); if( $subtitle_show && $post_subtitle ) { echo '<h2 class="penci-post-subtitle">' . do_shortcode( $post_subtitle ) . '</h2>'; } ?>
<div class="entry-meta penci-entry-meta"> <?php penci_posted_on(); ?> </div><!-- .entry-meta --> </div> </div> <div class="penci-ad-box"> <?php $header_ad_box = penci_get_theme_mod( 'penci_single_header_ad_box' ); $use_option_current = get_post_meta( get_the_ID(), 'penci_use_option_current_single', true ); $pre_header_ad_box = get_post_meta( get_the_ID(), 'pre_ad_code_s10', true );
if ( $use_option_current && $pre_header_ad_box ) { $header_ad_box = $pre_header_ad_box; } ?> <?php echo( $header_ad_box ); ?> </div> </div> <div class="penci-featured-col-2 penci_mobj__body"> <?php $featured_image_size = penci_single_optimize_featured_img_size( 'style-10' );
$dis_jarallax = get_theme_mod( 'penci_dis_jarallax_single' ); $dis_jarallax_pmt = get_post_meta( get_the_ID(), 'dis_jarallax_fea_img', true ); $use_option_current = get_post_meta( get_the_ID(), 'penci_use_option_current_single', true ); if( $dis_jarallax_pmt && $use_option_current ){ $dis_jarallax = true; }
penci_post_formats( $featured_image_size, true, ! $dis_jarallax ); ?> </div> </div> </div> </div> <?php endif; ?> <div class="penci-container"> <div class="penci-container__content<?php penci_class_pos_sidebar_content(); ?> <?php echo esc_attr( ! $single_hide_img && penci_post_formats() ? '' : 'hide_featured_image' ); ?>"> <div class="penci-wide-content penci-content-novc penci-sticky-content penci-content-single-inner"> <div class="theiaStickySidebar"> <div class="penci-content-post noloaddisqus" data-url="<?php the_permalink() ?>" data-id="<?php the_ID(); ?>" data-title="<?php get_the_guid(); ?>"> <article id="post-<?php the_ID(); ?>" <?php post_class( 'penci-single-artcontent' ); ?>> <?php if ( $single_hide_img || ! has_post_thumbnail() ): ?> <header class="entry-header penci-entry-header <?php echo esc_attr( $align_title ); ?>"> <?php if ( ! penci_get_setting( 'penci_hide_single_category' ) ) { echo '<div class="penci-entry-categories">'; penci_get_categories(); echo '</div>'; }
if ( ! $pheader_show ) { the_title( '<h1 class="entry-title penci-entry-title">', '</h1>' ); } ?>
<div class="entry-meta penci-entry-meta"> <?php penci_posted_on(); ?> </div><!-- .entry-meta --> <?php if ( ! penci_get_setting( 'penci_hide_single_social_share_top' ) ) { get_template_part( 'template-parts/social-share' ); } ?> </header><!-- .entry-header --> <?php else: if ( ! penci_get_setting( 'penci_hide_single_social_share_top' ) ) { get_template_part( 'template-parts/social-share' ); } endif; ?> <?php get_template_part( 'template-parts/single/entry-content' ); ?> <footer class="penci-entry-footer"> <?php penci_entry_footer(); penci_get_tags_source_via();
if ( ! penci_get_setting( 'penci_hide_single_social_share_bottom' ) ) { get_template_part( 'template-parts/social-share' ); } ?> </footer><!-- .entry-footer --> </article> <?php
get_template_part( 'template-parts/post_pagination' ); get_template_part( 'template-parts/author-box' ); get_template_part( 'template-parts/related_posts' ); get_template_part( 'template-parts/comment-box' ); endwhile; // End of the loop. ?> </div> <?php get_template_part( 'template-parts/animation-loadpost' ); ?> </div> </div> <?php get_sidebar( 'second' ); ?> <?php get_sidebar(); ?> </div>
</div>
|