-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage.php
29 lines (29 loc) · 1.28 KB
/
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
<?php get_header(); ?>
<div class="container-fluid">
<article id="post-<?php the_ID(); ?>">
<div class="row">
<div class="col-md-12">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h3>
<a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment" title="<?php echo _e('Back to','globalrec').' '.get_the_title($post->post_parent) ?>" alt="<?php echo _e('Back to','globalrec').' '.get_the_title($post->post_parent) ?>">
« <?php echo _e("Back to","globalrec").' "'.get_the_title($post->post_parent).'"' ?>
</a>
</h3>
<div class="row">
<div class="col-md-1 btn btn-default pull-left"><?php previous_image_link( false, '« Prev' ); ?></div>
<div class="col-md-10">
<?php
$imageurl = wp_get_attachment_image_src( $post->ID, 'large');
$imageurlfull = wp_get_attachment_image_src( $post->ID, 'full');
echo "<a href='".$imageurlfull[0]."'><img src='".$imageurl[0]."' class='img-responsive'></a>"; ?>
<?php the_title(); ?>
</div>
<div class="col-md-1 btn btn-default pull-right"><?php next_image_link( false, 'Next »' ); ?> </div>
</div>
</div>
</article>
<?php endwhile; else: ?>
<p><?php echo _e('No content.','globalrec') ?></p>
<?php endif; ?>
</div>
<?php get_footer(); ?>