-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsingle.php
137 lines (131 loc) · 5.06 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php get_header(); ?>
<?php if(have_posts()) : the_post(); ?>
<?php
$links = afdm_get_links();
$videos = afdm_get_videos();
$images = afdm_get_artwork_images();
$featured_video_id = afdm_get_featured_video_id();
$dimensions = afdm_get_artwork_dimensions();
$creation_date = afdm_get_creation_date();
$termination_date = afdm_get_termination_date();
?>
<?php jeo_map(); ?>
<article>
<section id="content" class="single-post">
<header class="single-post-header clearfix">
<?php the_post_thumbnail('page-featured'); ?>
<?php the_category(); ?>
<h1><?php the_title(); ?></h1>
<?php if(afdm_has_artist()) : ?>
<p class="artists"><span class="lsf"></span> <?php _e('Artists', 'arteforadomuseu'); ?>: <?php afdm_the_artist(); ?></p>
<?php endif; ?>
</header>
<div class="menu">
<?php if($videos) : ?>
<a href="#" data-subsection="videos"><span class="lsf"></span> <?php _e('Videos', 'arteforadomuseu'); ?></a>
<?php endif; ?>
<?php if($images) : ?>
<a href="#" data-subsection="images"><span class="lsf"></span> <?php _e('Gallery', 'arteforadomuseu'); ?></a>
<?php endif; ?>
<?php if(jeo_is_streetview()) : ?>
<a href="#" class="toggle-map" data-toggled-text="<?php _e('StreetView', 'arteforadomuseu'); ?>" data-default-text="<?php _e('Map', 'arteforadomuseu'); ?>"><span class="lsf"></span> <span class="label"><?php _e('Map', 'arteforadomuseu'); ?></span></a>
<?php endif; ?>
<a href="#" data-subsection="comments"><span class="lsf"></span> <?php _e('Comments', 'arteforadomuseu'); ?></a>
</div>
<?php if($dimensions || $creation_date) : ?>
<section class="post-data clearfix">
<?php if($dimensions) : ?>
<div class="dimensions">
<h4><?php _e('Dimensions', 'arteforadomuseu'); ?></h4>
<p>
<?php echo $dimensions; ?>
</p>
</div>
<?php endif; ?>
<?php if($creation_date) : ?>
<div class="dates">
<h4><?php _e('Dates', 'arteforadomuseu'); ?></h4>
<p class="creation">
<strong><?php _e('Creation', 'arteforadomuseu'); ?></strong>
<?php echo $creation_date; ?>
</p>
<?php if($termination_date) : ?>
<p class="termination">
<strong><?php _e('Termination', 'arteforadomuseu'); ?></strong>
<?php echo $termination_date; ?>
</p>
<?php endif; ?>
</div>
<?php endif; ?>
</section>
<?php endif; ?>
<section class="post-content">
<?php the_content(); ?>
<?php if($links) : ?>
<h3>Links</h3>
<ul class="post-links">
<?php foreach ($links as $link) : ?>
<li><a href="<?php echo $link['url'] ; ?>" rel="external" target="_blank" title="<?php echo $link['title']; ?>"><?php echo $link['title']; ?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php the_terms($post->ID, 'style', '<p class="styles"><span class="lsf"></span> ' . __('Styles', 'arteforadomuseu') . ': ', ' ', '</p>'); ?>
</section>
<aside class="actions clearfix">
<?php do_action('afdm_loop_artwork_actions'); ?>
</aside>
</section>
<?php if($videos) : ?>
<section id="videos" class="sub-content middle-content">
<div class="content">
<div class="sub-content-header">
<a class="close" href="#"><?php _e('Close', 'arteforadomuseu'); ?> <span class="lsf"></span></a>
<h3><?php _e('Videos', 'arteforadomuseu'); ?></h3>
</div>
<ul class="video-list clearfix">
<?php foreach($videos as $video) : ?>
<li><?php echo apply_filters('the_content', $video['url']); ?></li>
<?php endforeach; ?>
</ul>
</div>
</section>
<?php endif; ?>
<?php if($images) : ?>
<section id="images" class="sub-content middle-content">
<div class="content image-gallery">
<div class="sub-content-header">
<a class="close" href="#"><?php _e('Close', 'arteforadomuseu'); ?> <span class="lsf"></span></a>
<h3><?php _e('Image gallery', 'arteforadomuseu'); ?></h3>
</div>
<div class="image-stage-container">
<div class="image-stage">
<?php $image = $images[0]; ?>
<a href="<?php echo $image['full'][0]; ?>" rel="shadowbox"><img src="<?php echo $image['large'][0]; ?>" /></a>
</div>
</div>
<div class="image-list-container clearfix">
<ul class="image-list">
<?php foreach($images as $image) : ?>
<li>
<a href="<?php echo $image['large'][0]; ?>" data-full="<?php echo $image['full'][0]; ?>"><img src="<?php echo $image['thumb'][0]; ?>" /></a>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
</section>
<?php endif; ?>
<section id="comments" class="sub-content middle-content">
<div class="content">
<div class="sub-content-header">
<a class="close" href="#"><?php _e('Close', 'arteforadomuseu'); ?> <span class="lsf"></span></a>
<h3><?php _e('Comments', 'arteforadomuseu'); ?></h3>
</div>
<div class="clearfix">
<?php comments_template(); ?>
</div>
</div>
</section>
</article>
<?php endif; ?>
<?php get_footer(); ?>