-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsingle.php
74 lines (63 loc) · 2.11 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
<?php get_header(); ?>
<?php if (have_posts()) : the_post();
$options = get_option('odm_options');
$date_to_show = isset($options['single_page_date']) ? $options['single_page_date'] : "metadata_created";
?>
<article id="content" class="single-post">
<section class="container section-title main-title">
<div class="eleven columns post-title">
<header class="row">
<?php odm_title($post,array('date','categories','tags','sources','summary_translated'),$date_to_show); ?>
</header>
<section class="content section-content">
<?php
if (jeo_has_marker_location()): ?>
<section id="featured-media" class="row">
<div style="height:350px;">
<?php jeo_map(); ?>
</div>
</section>
<?php endif; ?>
<section id="post-content" class="row">
<div class="item-content">
<?php
$thumb_src = odm_get_thumbnail(get_the_ID(),false);
if (isset($thumb_src)):
echo $thumb_src;
else:
echo_documents_cover();
endif;
if(trim(strip_tags(get_the_content()))):
the_content();
endif;
odm_echo_extras();
echo_downloaded_documents();
?>
</div>
</section>
<?php
wp_link_pages(array(
'before' => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'odm').'</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
));
?>
</section>
</div>
<div class="four columns">
<div class="widget share-widget">
<?php odm_get_template('social-share',array(),true); ?>
</div>
<div>
<aside id="sidebar">
<ul class="widgets">
<?php dynamic_sidebar('post'); ?>
</ul>
</aside>
</div>
</div>
</section>
</article>
<?php endif; ?>
<?php get_footer(); ?>