-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathimage.php
More file actions
155 lines (98 loc) · 2.7 KB
/
image.php
File metadata and controls
155 lines (98 loc) · 2.7 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
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?php
/**
* Image Page
* by Philip M. Hofer (Frumph)
* http://frumph.net/
*
* Content for the Image page.
*
* @package Comicpress
*/
get_header();
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">
<div class="imagenav-wrap">
<div class="imagenav-left">
<div class="imagenav-bg">
<?php previous_image_link(); ?>
</div>
<div class="imagenav-arrow">
<?php
/* translators: Symbol for link previous image */
esc_attr_e( '‹', 'comicpress' );
?>
</div>
<div class="imagenav-link">
<?php previous_image_link(); ?>
</div>
</div>
<div class="imagenav-center">
<a href="<?php echo esc_url( wp_get_attachment_url( $post->ID ) ); ?>" target="_blank" title="<?php esc_attr_e( 'Click for full size', 'comicpress' ); ?>" class="imagetitle">
<?php the_title(); ?>
</a>
<br />
<a href="<?php echo esc_url( get_permalink( $post->post_parent ) ); ?>" rel="attachment">
<?php esc_attr_e( '← Back to Gallery', 'comicpress' ); ?>
</a>
</div>
<div class="imagenav-right">
<div class="imagenav-bg">
<?php next_image_link(); ?>
</div>
<div class="imagenav-arrow">
<?php
/* translators: Symbol for link next image */
esc_attr_e( '›', 'comicpress' );
?>
</div>
<div class="imagenav-link">
<?php next_image_link(); ?>
</div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div class="gallery-image">
<a href="<?php echo esc_url( wp_get_attachment_url( $post->ID ) ); ?>" target="_blank" title="<?php esc_attr_e( 'Click for full size', 'comicpress' ); ?>" >
<img src="<?php echo esc_url( wp_get_attachment_url( $post->ID ) ); ?>" alt="<?php the_title(); ?>" />
</a>
</div>
<div class="gallery-caption">
<?php the_excerpt(); ?>
</div>
<div class="gallery-content">
<?php the_content(); ?>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<div class="post-foot"></div>
</div>
<?php
edit_post_link( __( 'Edit this attachment.', 'comicpress' ), '', '' );
if ( 'open' == $post->comment_status ) {
comments_template( '', true );
}
endwhile;
else :
?>
<div <?php post_class(); ?>>
<div class="post-head"></div>
<div class="post-content">
<p>
<?php esc_attr_e( 'Sorry, no image matched your criteria.', 'comicpress' ); ?>
</p>
<div class="clear"></div>
</div>
<div class="post-foot"></div>
</div>
<?php
endif;
get_footer()
?>