forked from InfoAmazonia/infoamazonia-wptheme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
single.php
94 lines (88 loc) · 3.36 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php get_header(); ?>
<?php if(have_posts()) : the_post(); ?>
<article class="single-post">
<section id="stage" class="row">
<div class="container">
<div class="nine columns">
<header class="post-header">
<?php echo get_the_term_list($post->ID, 'publisher', '', ', ', ''); ?>
<h1 class="title"><?php the_title(); ?></h1>
</header>
<?php if(jeo_has_marker_location()) : ?>
<!-- <div id="main-map" class="stage-map">
<?php // jeo_map(); ?>
</div> -->
<?php endif; ?>
</div>
</div>
</section>
<section id="content">
<div class="container row">
<div class="nine columns">
<div class="post-primary-image">
<?php if(has_post_thumbnail()) the_post_thumbnail(); ?>
</div>
</div>
</div>
<div class="container row">
<div class="two columns">
<div class="post-interactivity">
<p class="buttons">
<a class="button" href="<?php echo get_post_meta($post->ID, 'url', true); ?>" target="_blank">
<span class="lsf"></span>
<?php _e('Original article', 'infoamazonia'); ?>
</a>
<a class="button embed-button" href="<?php echo jeo_get_share_url(array('p' => $post->ID)); ?>" target="_blank">
<span class="lsf"></span>
<?php _e('Embed this story', 'infoamazonia'); ?>
</a>
<a class="button print-button" href="<?php echo jeo_get_embed_url(array('p' => $post->ID)); ?>" target="_blank">
<span class="lsf"></span>
<?php _e('Print', 'infoamazonia'); ?>
</a>
</p>
<div class="fb-like" data-href="<?php the_permalink(); ?>" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="verdana" data-action="recommend"></div>
<div class="twitter-button">
<a href="https://twitter.com/share" class="twitter-share-button" data-via="infoamazonia" <?php if(function_exists('qtranxf_getLanguage')) : ?>data-lang="<?php echo qtranxf_getLanguage(); ?>"<?php endif; ?>>Tweet</a>
</div>
</div>
</div>
<div class="seven columns">
<div class="post-content">
<div class="post-description">
<p class="date"><strong><?php echo get_the_date(); ?></strong></p>
<?php the_content(); ?>
</div>
</div>
</div>
<div class="three columns">
<div class="post-sidebar">
<?php if(function_exists('yarpp_related')) : ?>
<div class="post-related row">
<?php yarpp_related();?>
</div>
<?php endif; ?>
</div>
</div>
<script type="text/javascript">
var embedUrl = jQuery('.embed-button').attr('href');
var printUrl = jQuery('.print-button').attr('href');
jeo.mapReady(function(map) {
if(map.conf.postID) {
jQuery('.print-button').attr('href', printUrl + '&map_id=' + map.conf.postID + '#print');
jQuery('.embed-button').attr('href', embedUrl + '&map_id=' + map.conf.postID);
}
});
jeo.groupReady(function(group) {
jQuery('.print-button').attr('href', printUrl + '&map_id=' + group.currentMapID + '#print');
jeo.groupChanged(function(group, prevMap) {
jQuery('.print-button').attr('href', printUrl + '&map_id=' + group.currentMapID + '#print');
});
});
</script>
</div>
</section>
</article>
<?php endif; ?>
<?php get_template_part('section', 'main-widget'); ?>
<?php get_footer(); ?>