-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsingle.php
65 lines (61 loc) · 2.29 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
<?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(); ?></h1>
</header>
<?php
$thumbnail = ekuatorial_get_thumbnail();
if($thumbnail) : ?>
<div class="center image" style="width: 1200px;">
<img width="1180" src="<?php echo $thumbnail; ?>" />
</div>
<div class="container single-article img-desc">
<div class="twelve 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 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 class="thumbnail share">
<p class="buttons">
<?php previous_post_link('<strong class="button">%link</strong>', 'Previous Article'); ?>
<a class="button" href="<?php echo home_url() ?>" target="_blank"><?php _e('Go to homepage', 'ekuatorial'); ?></a>
<?php next_post_link('<strong class="button">%link</strong>', 'Next Article'); ?>
</p>
</div>
</div>
</section>
</article>
<?php endif; ?>
<?php get_footer(); ?>