-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle.php
53 lines (40 loc) · 1.48 KB
/
single.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
<?php get_header(); ?>
<?php if(have_posts()) : the_post(); ?>
<?php jeo_map(); ?>
<div class="container">
<div class="section-title emboss">
<h1><?php the_title(); ?></h1>
<p class="credits"><span class="lsf"></span> <?php _e('by', 'jeo'); ?> <?php the_author(); ?> | <span class="lsf"></span> <?php the_date(); ?>
<?php
$print_url = oxpeckers_get_print_url();
if($print_url) : ?>
| <span class="lsf"></span> <a class="print" href="<?php echo $print_url; ?>"><?php _e('Print this map', 'oxpeckers'); ?></a>
<?php endif; ?></p>
<?php the_category(); ?>
</div>
<div class="main-content">
<article id="content" class="single-post">
<section class="content emboss">
<p class="location"><?php the_field('post_location'); ?></p>
<?php the_content(); ?>
<?php
$data = get_field('get_the_data');
$document = get_field('related_document');
?>
<?php if($data) : ?>
<a href="<?php echo $data; ?>" class="associated"><?php _e('Download the Data', 'jeo'); ?></a>
<?php endif; ?>
<?php if($document) : ?>
<a href="<?php echo $document; ?>" class="associated"><?php _e('Related Document', 'jeo'); ?></a>
<?php endif; ?>
</section>
<aside id="sidebar">
<ul class="widgets">
<?php dynamic_sidebar('post'); ?>
</ul>
</aside>
</article>
</div>
</div>
<?php endif; ?>
<?php get_footer(); ?>