cURL Error: 0 HEX
HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System: Linux fut001.vhost.ae 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User: akiadvo (1062)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/akiadvo/public_html/wp-content/themes/lawyer-by-osetin/archive.php
<?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(); ?>