38 lines
659 B
PHP
38 lines
659 B
PHP
<?php
|
|
/**
|
|
* Archive pages.
|
|
*
|
|
* @since 1.0.0
|
|
*
|
|
* @package The7\Templates
|
|
*/
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
$config = presscore_config();
|
|
$config->set( 'template', 'archive' );
|
|
$config->set( 'layout', 'masonry' );
|
|
$config->set( 'template.layout.type', 'masonry' );
|
|
|
|
get_header();
|
|
?>
|
|
|
|
<!-- Content -->
|
|
<div id="content" class="content" role="main">
|
|
|
|
<?php
|
|
the_archive_description( '<div class="taxonomy-description">', '</div>' );
|
|
|
|
if ( have_posts() ) {
|
|
the7_archive_loop();
|
|
} else {
|
|
get_template_part( 'no-results', 'search' );
|
|
}
|
|
?>
|
|
|
|
</div><!-- #content -->
|
|
|
|
<?php do_action( 'presscore_after_content' ); ?>
|
|
|
|
<?php get_footer(); ?>
|