cURL Error: 0
<?php
/**
* The template for displaying archive pages
*
*/
get_header();
$header_bg_image_url = false;
if(is_category()){
$cat_id = get_query_var('cat');
$page_bg_image_url = osetin_get_field('category_header_bg', "category_{$cat_id}");
$css_extra_class = ($page_bg_image_url) ? 'with-background' : 'without-background smaller';
}else{
$css_extra_class = 'smaller';
$page_bg_image_url = '';
}
$archive_wrapper_class = osetin_get_archive_wrapper_class(osetin_get_field('layout_type_for_index_option', 'option', 'masonry_2'));
?>
<div class="os-container">
<div class="page-intro-header <?php echo esc_attr($css_extra_class); ?>" style="<?php echo osetin_get_css_prop('background-image', $page_bg_image_url, false, 'background-repeat: repeat;'); ?>">
<?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?>
<?php the_archive_description( '<div class="taxonomy-description">', '</div>' ); ?>
</div>
</div>
<?php osetin_output_breadcrumbs(); ?>
<div class="os-container">
<div class="blog-content-w">
<div class="blog-content">
<div class="blog-index <?php echo esc_attr($archive_wrapper_class); ?>" data-columns="">
<?php
while ( have_posts() ) : the_post();
get_template_part('content');
endwhile;?>
</div>
<div class="index-navigation">
<?php
the_posts_pagination( array(
'prev_text' => __( 'Previous page', 'lawyer-by-osetin' ),
'next_text' => __( 'Next page', 'lawyer-by-osetin' )
) );
?>
</div>
</div>
<div class="blog-sidebar">
<?php
if ( is_active_sidebar( 'sidebar-index' ) ){
dynamic_sidebar( 'sidebar-index' );
}
?>
</div>
</div>
</div>
<?php get_footer(); ?>