forked from bestwebsoft/travel-stories-wordpress-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimage.php
More file actions
49 lines (49 loc) · 1.51 KB
/
image.php
File metadata and controls
49 lines (49 loc) · 1.51 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
<?php /**
* The template for image attachments
*
* @subpackage Travel Stories
* @since Travel Stories 1.0
*/
get_header(); ?>
<div class="travel-stories-container">
<?php if ( have_posts() ) {
the_post(); ?>
<article class="travel-stories-image-post">
<div class="travel-stories-image-header-post">
<?php do_action( 'travel_stories_the_attached_image' ); ?>
<div class="clear"></div>
<div class="travel-stories-image-post-name">
<a><?php the_title(); ?></a>
</div>
</div>
<div class="travel-stories-single-content-text">
<div class="travel-stories-caption-text">
<?php the_excerpt(); ?>
</div>
<div class="travel-stories-single-content">
<div class="travel-stories-image-content">
<?php the_content( ' ' ); ?>
</div>
<div class="travel-stories-page-links">
<?php wp_link_pages(); ?>
</div>
<div class="clear"></div>
</div>
</div>
</article>
<?php }
wp_reset_postdata(); ?>
<nav class="travel-stories-single-block-previous-next-story">
<div class="travel-stories-single-previous-story">
<?php previous_image_link( false, '« ' . __( 'previous image', 'travel-stories' ) ); ?>
</div>
<div class="travel-stories-single-next-story">
<?php next_image_link( false, __( 'next image', 'travel-stories' ) . ' »' ); ?>
</div>
</nav>
<div class="clear"></div>
<div class="travel-stories-single-comment">
<?php comments_template(); ?>
</div>
</div>
<?php get_footer();