-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaxonomy-country.php
69 lines (69 loc) · 1.94 KB
/
taxonomy-country.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
60
61
62
63
64
65
66
67
68
69
<?php
get_header();
$term = get_queried_object();
$report = get_field('country_report', $term);
$analysis = get_field('country_analysis', $term);
?>
<article id="country-page" class="single-page">
<header class="page-header">
<div class="container">
<div class="eight columns">
<div class="flag" style="background-image:url(<?php the_field('thumbnail', $term); ?>);"></div>
<p class="header-label"><?php _e('Analysis from', 'clade'); ?></p><br/>
<h1><?php single_term_title(); ?></h1>
</div>
<?php
if($report) :
?>
<div class="four columns">
<aside class="files">
<p>
<a class="button" href="<?php echo $report; ?>">
<span class="fa fa-download"></span>
<?php _e('Download analysis', 'clade'); ?>
</a>
</p>
</aside>
</div>
<?php
endif;
?>
</div>
</header>
<section class="page-welcome">
<div class="container">
<div class="nine columns">
<p><?php echo $term->description; ?></p>
</div>
</div>
</section>
<section class="page-content">
<?php
query_posts('post_type=theme-group&posts_per_page=-1');
if(have_posts()) :
while(have_posts()) :
the_post();
get_template_part('parts/theme-group-item');
endwhile;
endif;
wp_reset_query();
?>
<?php if($analysis) : ?>
<div class="page-section">
<article id="country-analysis">
<div class="container">
<div class="twelve columns">
<div class="section-title">
<h2 class="h"><?php _e('General comments', 'clade'); ?></h2>
</div>
<div class="analysis-content">
<?php echo $analysis; ?>
</div>
</div>
</div>
</article>
</div>
<?php endif; ?>
</section>
</article>
<?php get_footer(); ?>