-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimage.php
More file actions
68 lines (66 loc) · 2.29 KB
/
image.php
File metadata and controls
68 lines (66 loc) · 2.29 KB
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
<?php get_header(); ?>
<?php include(get_template_directory() . '/layout-head.php'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post() ?>
<div <?php post_class(); ?>>
<?php comicpress_display_post_thumbnail(); ?>
<div class="post-head"></div>
<div class="post-content" id="post-<?php the_ID() ?>">
<div class="imagenav-wrap">
<div class="imagenav">
<div class="imagenav-bg">
<?php previous_image_link() ?>
</div>
<div class="imagenav-arrow">
‹
</div>
<div class="imagenav-link">
<?php previous_image_link() ?>
</div>
</div>
<div class="imagenav-center">
<a href="<?php echo wp_get_attachment_url($post->ID) ?>" target="_blank" title="Click for full size." class="imagetitle"><?php the_title() ?></a><br />
<a href="<?php echo get_permalink($post->post_parent) ?>" rev="attachment"><?php _e('← Back to Gallery','comicpress'); ?></a>
</div>
<div class="imagenav">
<div class="imagenav-bg">
<?php next_image_link() ?>
</div>
<div class="imagenav-arrow">
›
</div>
<div class="imagenav-link">
<?php next_image_link() ?>
</div>
</div>
<div class="clear"></div>
</div>
<?php if (!$comicpress_options['disable_page_titles']) { ?>
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?>
<div class="clear"></div>
<div class="gallery-image">
<a href="<?php echo wp_get_attachment_url($post->ID) ?>" target="_blank" title="<?php _e('Click for full size.','comicpress'); ?>" ><img src="<?php echo wp_get_attachment_url($post->ID) ?>" alt="<?php the_title() ?>" /></a>
</div>
<div class="gallery-caption">
<?php the_excerpt() ?>
</div>
<div class="entry">
<?php the_content() ?>
</div>
<?php if ('open' == $post->comment_status) { comments_template('', true); } ?>
<div class="clear"></div>
</div>
<div class="post-foot"></div>
</div>
<?php endwhile; else: ?>
<div <?php post_class(); ?>>
<div class="post-head"></div>
<div class="post-content">
<p><?php _e('Sorry, no image matched your criteria.','comicpress'); ?></p>
<div class="clear"></div>
</div>
<div class="post-foot"></div>
</div>
<?php endif; ?>
<?php include(get_template_directory() . '/layout-foot.php'); ?>
<?php get_footer() ?>