55 lines
1.3 KiB
PHP
Raw Normal View History

2024-01-15 08:43:49 +00:00
<?php
/**
* The main archive template file for inner content.
*
* @package kadence
*/
namespace Kadence;
/**
* Hook for Hero Section
*/
do_action( 'kadence_hero_header' );
?>
<div id="primary" class="content-area">
<div class="content-container site-container">
<main id="main" class="site-main" role="main">
<?php
/**
* Hook for anything before main content
*/
do_action( 'kadence_before_main_content' );
if ( kadence()->show_in_content_title() ) {
get_template_part( 'template-parts/content/archive_header' );
}
if ( have_posts() ) {
?>
<div id="archive-container" class="<?php echo esc_attr( implode( ' ', get_archive_container_classes() ) ); ?>"<?php echo ( get_archive_infinite_attributes() ? " data-infinite-scroll='" . esc_attr( get_archive_infinite_attributes() ) . "'" : '' ); ?>>
<?php
while ( have_posts() ) {
the_post();
/**
* Hook in loop entry template.
*/
do_action( 'kadence_loop_entry' );
}
?>
</div>
<?php
get_template_part( 'template-parts/content/pagination' );
} else {
get_template_part( 'template-parts/content/error' );
}
/**
* Hook for anything after main content
*/
do_action( 'kadence_after_main_content' );
?>
</main><!-- #main -->
<?php
get_sidebar();
?>
</div>
</div><!-- #primary -->