/
home
/
henzagold
/
blog
/
wp-content
/
themes
/
gillion
/
File Upload :
llllll
Current File: /home/henzagold/blog/wp-content/themes/gillion/archive.php
<?php $style = gillion_option( 'categories-blog-style', 'masonry' ); $categories_page_layout = gillion_option( 'categories-page-layout', 'sidebar-right' ); if( is_archive() && $categories_page_layout == 'sidebar-right' || $categories_page_layout == 'sidebar-left' ) : $layout_sidebar = esc_attr( $categories_page_layout ); elseif( $categories_page_layout == 'default' ) : $layout_sidebar = ''; else : $layout_sidebar = 'sidebar-right'; endif; // Buildable category page $category_template_id = 0; $category_template_content = ''; if( $category_template_id > 0 && get_post_field( 'post_type', $category_template_id ) == 'elementor_library' && did_action( 'elementor/loaded' ) ) : $frontend = new \Elementor\Frontend; $category_template_content = $frontend->get_builder_content( $category_template_id, true ); endif; set_query_var( 'style', $style ); get_header(); ?> <?php if( $category_template_content ) : ?> <div id="content" class="page-content sh-text-content"> <div class="page-content"> <?php echo ( $category_template_content ); ?> </div> </div> <?php else : ?> <div id="content-wrapper"<?php echo ( isset($layout_sidebar) && $layout_sidebar ) ? ' class="content-wrapper-with-sidebar"': ''; ?>> <div id="content" class="<?php if( isset($layout_sidebar) && $layout_sidebar ) : ?>content-with-<?php echo esc_attr( $layout_sidebar ); endif; ?>"> <div class="sh-group blog-list blog-style-<?php echo esc_attr( $style ); ?>"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); if( get_post_format() ) : get_template_part( 'content', 'format-'.get_post_format() ); else : get_template_part( 'content' ); endif; endwhile; else : get_template_part( 'content', 'none' ); endif; ?> </div> <?php gillion_pagination(); ?> </div> <?php if( isset($layout_sidebar) && $layout_sidebar ) : ?> <div id="sidebar" class="<?php echo esc_attr( $layout_sidebar ); ?>"> <?php get_sidebar(); ?> </div> <?php endif; ?> </div> <?php endif; ?> <?php get_footer(); ?>
Copyright ©2k19 -
Hexid
|
Tex7ure