<?php

get_header();

$bg_url = '';

if ( is_category() && function_exists('aztheme_toolkit_category_image') ) {
    $obj = get_queried_object();
    $bg_url = aztheme_toolkit_category_image($obj->term_id  );
}
    
?>
<div class="archive-box" style="background-image: url('<?php echo esc_url( $bg_url ); ?>');">
	<div class="content-text">
        <h1><?php the_archive_title(); ?></h1>
        <?php if ( get_the_archive_description() ) { ?>
        <div class="desc">
            <?php the_archive_description(); ?>
        </div>
        <?php } ?>
    </div>
</div>
<?php

get_template_part( 'loop' );

get_footer();
