forked from InfoAmazonia/infocongo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
taxonomy-publisher.php
44 lines (42 loc) · 1.41 KB
/
taxonomy-publisher.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(); ?>
<div id="map-archive" class="gray-page archive-page">
<section id="maps" class="map-loop-section archive-list">
<header class="map-header">
<?php infocongo_taxonomy_filter('Choose a publisher', 'publisher'); ?>
</header>
<div class="taxonomy-map">
<?php
global $jeo;
$jeo->get_map(false, false, true);
?>
</div>
<div class="container">
<div class="row">
<div class="twelve columns">
<div class="section-title">
<h1>All posts by <?php echo single_term_title(); ?></h1>
<div class="query-actions">
<?php
global $wp_query;
$args = $wp_query->query;
$args = array_merge($args, $_GET);
$geojson = jeo_get_api_url($args);
$download = jeo_get_api_download_url($args);
$rss = add_query_arg(array('feed' => 'rss'));
?>
<a class="rss" href="<?php echo $rss; ?>"><?php _e('RSS Feed', 'infocongo'); ?></a>
<a class="geojson" href="<?php echo $geojson; ?>"><?php _e('Get GeoJSON', 'infocongo'); ?></a>
<a class="download" href="<?php echo $download; ?>"><?php _e('Download', 'infocongo'); ?></a>
</div>
</div>
</div>
<div class="row">
<div class="twelve-coluns">
<?php get_template_part('loop'); ?>
</div>
</div>
</div>
</div>
</section>
</div>
<?php get_footer(); ?>