R9023486
[LT]?php get_header(); $cat_ID = get_query_var(‘cat’); $the_style = get_term_meta($cat_ID, ‘the_style’, ‘true’); $last_style = ($the_style) ? $the_style : _cao( ‘latest_layout’, ‘grid’ ) ; ///////////// $is_cao_site_list_blog = is_cao_site_list_blog(); if ($is_cao_site_list_blog) { $col_class = ‘content-column col-lg-9’; $latest_layout = ‘bloglist’; }else{ $col_class = ‘col-lg-12’; $latest_layout = $last_style; } ///////////// ?> [LT]div class=”container”> [LT]?php if (!get_term_meta($cat_ID, ‘is_filter’, ‘true’)) { get_template_part( ‘parts/filter-bar’ ); } ?> [LT]?php do_action(‘ripro_echo_ads’, ‘ad_archive_1’); ?> [LT]div class=”row”> [LT]div class=”[LT]?php echo $col_class;?>”> [LT]div class=”content-area”> [LT]main class=”site-main”> [LT]?php if ( have_posts() ) : ?> [LT]div class=”row posts-wrapper”> [LT]?php while ( have_posts() ) : the_post(); get_template_part( ‘parts/template-parts/content’, $latest_layout ); endwhile; ?> [LT]/div> [LT]?php get_template_part( ‘parts/pagination’ ); ?> [LT]?php else : ?> [LT]?php get_template_part( ‘parts/template-parts/content’, ‘none’ ); ?> [LT]?php endif; ?> [LT]/main> [LT]/div> [LT]/div> [LT]?php if ($is_cao_site_list_blog) : ?> [LT]!– 侧边栏 –> [LT]div class=”sidebar-column col-lg-3″> [LT]aside class=”widget-area”> [LT]?php dynamic_sidebar( ‘blog’ ); ?> [LT]/aside> [LT]/div> [LT]?php endif;?> [LT]/div> [LT]?php do_action(‘ripro_echo_ads’, ‘ad_archive_2’); ?> [LT]/div> [LT]?php wp_reset_postdata(); get_footer();
