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
|
<?php $single_hide_img = false; $align_title = 'penci-title-' . penci_get_setting( 'penci_single_align_post_title' ); $featured_image_size = penci_single_optimize_featured_img_size( 'style-7' );
$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; }
$post_thumb_url = penci_post_formats( $featured_image_size, false, ! $dis_jarallax ); ?> <?php while ( have_posts() ) : the_post(); $pheader_show = penci_check_page_title_show(); ?> <div class="penci-container"> <div class="penci-container__content <?php penci_class_pos_sidebar_content(); ?> <?php echo esc_attr( ! $single_hide_img && $post_thumb_url ? '' : 'hide_featured_image' ); ?>"> <div class="penci-wide-content penci-content-novc penci-sticky-content penci-content-single-inner"> <div class="theiaStickySidebar"> <?php if ( ! $single_hide_img && $post_thumb_url ): ?>
<div class="entry-media penci-entry-media penci-entry-media-top <?php Penci_Video_Format::get_class_type_video( get_the_ID() ); ?>"> <?php echo ( $post_thumb_url ); ?> <div class="entry-media__content "> <div class="entry-header penci-entry-header <?php echo esc_attr( $align_title ); ?>"> <?php if ( ! penci_get_setting( 'penci_hide_single_breadcrumb' ) && ! $pheader_show ) : penci_breadcrumbs( ); endif; 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> <?php endif; ?> <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 || ! $post_thumb_url ): ?> <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 ' . $align_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>
|