forked from oeco/ekuatorial
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle.php
78 lines (73 loc) · 2.86 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
<?php get_header(); ?>
<?php if(have_posts()) : the_post(); ?>
<article class="single-post">
<section id="stage" class="row">
<div class="container">
<div class="twelve columns">
<header class="post-header">
<?php echo get_the_term_list($post->ID, 'publisher', '', ', ', ''); ?>
<h1 class="title"><?php the_title(); ?>
<?php if (get_post_meta($post->ID, 'is_label', true) == "1"): ?>
<br><a href="#"><span class="label">Belt and Road</span></a>
<?php endif; ?>
</h1>
</header>
<?php
$thumbnail = ekuatorial_get_thumbnail();
if($thumbnail) : ?>
<div class="center image">
<?php the_post_thumbnail('full'); ?>
</div>
<div class="container single-article img-desc">
<div class="six columns">
<?php if(jeo_has_marker_location()) : ?>
<div id="main-map" class="stage-map">
<?php jeo_map(); ?>
</div>
<?php endif; ?>
</div>
<div class="six columns">
<?php
$description = get_post_meta($post->ID, 'newsroom_img_desc', true);
echo '<div class="image-caption">' . apply_filters('the_content', $description) . '</div>';
?>
</div>
</div>
<?php endif; ?>
</div>
</div>
</section>
<section id="content">
<div class="container row">
<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="container row">
<div class="thumbnail share">
<p class="buttons">
<a class="button" href="<?php echo get_post_meta($post->ID, 'url', true); ?>" target="_blank"><?php _e('Go to the original article', 'ekuatorial'); ?></a>
<a class="button embed-button" href="<?php echo jeo_get_share_url(array('p' => $post->ID)); ?>" target="_blank"><?php _e('Embed this story', 'ekuatorial'); ?></a>
<a class="button print-button" href="<?php echo jeo_get_embed_url(array('p' => $post->ID)); ?>" target="_blank"><?php _e('Print', 'ekuatorial'); ?></a>
</p>
</div>
<div class="thumbnail social">
<div class="fb-share-button"
data-href="<?php the_permalink(); ?>"
data-layout="button_count" style="padding-bottom: 5px;">
</div>
<div class="twitter-button">
<a href="https://twitter.com/share" class="twitter-share-button" data-via="ekuatorial" <?php if(function_exists('qtranxf_getLanguage')) : ?>data-lang="<?php echo qtranxf_getLanguage(); ?>"<?php endif; ?>>Tweet</a>
</div>
<script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script>
<script type="IN/Share" data-url="<?php the_permalink(); ?>"></script>
</div>
</div>
</section>
</article>
<?php endif; ?>
<?php get_template_part('section', 'main-widget'); ?>
<?php get_footer(); ?>