C:\xampp\htdocs\landing\wp-content\updraft\themes-old\pennews_\index.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
<?php
/**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package PenNews
 */
get_header(); ?>
<?php $cat_layout_style 
penci_get_setting'penci_home_layout_style' ); ?>
    <div id="primary" class="content-area penci-archive">
        <main id="main" class="site-main" >
            <div class="penci-container">
                <div class="penci-container__content<?php penci_class_pos_sidebar_content(); ?>">
                    <div class="penci-wide-content penci-content-novc penci-sticky-content">
                        <div class="theiaStickySidebar">
                        <div  id="penci-archive__content" class="penci-archive__content penci-layout-<?php echo esc_attr$cat_layout_style ); ?>">
                            <?php
                            $enable_title   
penci_get_theme_mod'penci_enable_blogpage_title' );
                            
$page_for_posts get_option'page_for_posts'true );

                            
$align_title     penci_get_theme_mod'penci_archive_align_post_title' );
                            
$hide_breadcrumb penci_get_theme_mod'penci_hide_archive_breadcrumb' );
                            
?>
                            <?php if( ! $hide_breadcrumb ) : penci_breadcrumbs$args '' );  endif; ?>
                            <?php if( $enable_title && $page_for_posts ) : ?>
                                <header class="entry-header penci-entry-header penci-archive-entry-header">
                                    <h1 class="page-title penci-page-title penci-title-<?php echo esc_attr$align_title ); ?>"><?php echo get_the_title$page_for_posts ); ?></h1>
                                </header>
                            <?php endif; ?>
                            <?php penci_render_google_adsense'penci_archive_ad_above' ); ?>
                            <div class="penci-archive__list_posts">
                            <?php
                            
if ( have_posts() ) :
                                
$post_i 1;
                                while ( 
have_posts() ) : the_post();
                                    if ( 
in_array$cat_layout_style, array( 'blog-standard''blog-classic''blog-overlay' ) ) ) {
                                        
set_query_var'penci_acsb_layout_style'$cat_layout_style );
                                        
get_template_part'template-parts/content''classis' );
                                    }else {
                                        
get_template_part'template-parts/content''category' );
                                    }

                                    
penci_get_markup_infeed_ad( array(
                                        
'order_ad'   => penci_get_setting'penci_archive_infeedad_order' ),
                                        
'order_post' => $post_i,
                                        
'code'       => penci_get_theme_mod'penci_archive_infeedad_code' ),
                                        
'echo'       => true
                                    
) );

                                    
$post_i ++;
                                endwhile;
                            else :
                                
get_template_part'template-parts/content''none' );
                            endif;
                            
?>
                            </div>
                            <?php
                            penci_posts_pagination
();
                            
penci_render_google_adsense'penci_archive_ad_below' );
                            
?>
                        </div>
                        </div>
                    </div>
                    <?php get_sidebar'second' ); ?>
                    <?php get_sidebar(); ?>
                </div>
            </div>
        </main><!-- #main -->
    </div><!-- #primary -->

<?php
get_footer
();

x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586