-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patharchive.php
58 lines (38 loc) · 1.11 KB
/
archive.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* Archive pages.
*
* @package vogue
* @since 1.0.0
*/
// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; }
$config = presscore_get_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
if ( have_posts() ) :
do_action( 'presscore_before_loop' );
// backup config
$config_backup = $config->get();
// masonry container open
echo '<div ' . presscore_masonry_container_class( array( 'wf-container' ) ) . presscore_masonry_container_data_atts() . '>';
while ( have_posts() ) : the_post();
presscore_archive_post_content();
$config->reset( $config_backup );
endwhile;
// masonry container close
echo '</div>';
dt_paginator();
do_action( 'presscore_after_loop' );
else :
get_template_part( 'no-results', 'search' );
endif;
?>
</div><!-- #content -->
<?php do_action('presscore_after_content'); ?>
<?php get_footer(); ?>