forked from OpenDevelopmentMekong/wp-odm_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-tabular.php
44 lines (35 loc) · 1.01 KB
/
archive-tabular.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
<?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('Database','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">
<?php while (have_posts()) : the_post();
odm_get_template('post-grid-single-4-cols',array(
"post" => get_post(),
"show_meta" => true,
"meta_fields" => array("date"),
"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(); ?>