forked from OpenDevelopmentMekong/wp-odm_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-dataviz.php
59 lines (51 loc) · 1.44 KB
/
archive-dataviz.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
59
<?php get_header();
$options = get_option('odm_options');
$date_to_show = isset($options['single_page_date']) ? $options['single_page_date'] : "metadata_created"; ?>
<section class="container section-title main-title">
<header class="row">
<div class="eight columns">
<h1 class="ellipsis"><?php _e('Data visualizations','odm') ?></h1>
</div>
<div class="eight columns align-right">
<?php get_template_part('section', 'query-actions'); ?>
</div>
</header>
</section>
<section class="container">
<div class="row">
<div class="sixteen columns filter-container">
<div class="panel more-filters-content row">
<?php
$filter_arg = array(
'search_box' => true,
'cat_selector' => true,
'con_selector' => false,
'date_rang' => true,
'post_type' => get_post_type()
);
odm_adv_nav_filters($filter_arg);
?>
</div>
</div>
</div>
<div class="row">
<div class="sixteen columns">
<?php while (have_posts()) : the_post();
odm_get_template('post-grid-single-4-cols',array(
"post" => get_post(),
"meta_fields" => array("date"),
"show_meta" => true,
"order" => $date_to_show
),true);
endwhile; ?>
</div>
</div>
</section>
<section class="container">
<div class="row">
<div class="sixteen columns">
<?php odm_get_template('pagination',array(),true); ?>
</div>
</div>
</section>
<?php get_footer(); ?>