-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-image.php
51 lines (41 loc) · 1.58 KB
/
single-image.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
<div id="photo_wrapper" class="<?php echo $post->class; ?>">
<figure id="photo_container" class="">
<img src="<?php echo $post->image->url; ?>" alt="<?php echo $post->title; ?>" />
<figcaption id="photo_infos">
<h2><?php echo $post->title; ?></h2>
<?php if (isset($post->image) && isset($post->image->capture_date)) { ?>
<p><?php echo $post->image->capture_date; ?></p>
<?php } ?>
</figcaption>
</figure>
</div>
<div id="wrapper" class="<?php echo $post->class; ?>">
<h2 id="content_title">Info, rate & Comments</h2>
<nav>
<a class="navdown"></a>
</nav>
<section id="content" class="<?php echo $post->class; ?>">
<article class="post_content"><?php echo $post->content; ?></article>
<article class="post_categories">
<ul>
<?php
foreach ($post->categories as $cat_name => $cat_url) {
echo '<li><a href="' . $cat_url . '">[' . $cat_name . ']</a></li>';
}
?>
</ul>
</article>
<article class="image_exifs">
<ul>
<?php foreach ($post->image->exifs as $name => $value) { ?>
<li><?php echo $name . $value; ?></li>
<?php } ?>
</ul>
</article>
<?php if (isset($post->ratings)) { ?>
<article class="post_rating"> <?php echo $post->ratings; ?> </article>
<?php } ?>
<div class="clr"></div>
</section>
<?php comments_template(); ?>
</div>