-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathattachment.php
More file actions
64 lines (46 loc) · 1.59 KB
/
Copy pathattachment.php
File metadata and controls
64 lines (46 loc) · 1.59 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
<?php
/**
* The template for displaying attachments.
*
* @package WordPress
* @subpackage K2
* @since K2 unknown
*/
get_header(); ?>
<div class="wrapper">
<?php if ( is_active_sidebar('widgets-top') ) : ?>
<div id="widgets-top" class="widgets">
<?php dynamic_sidebar('widgets-top'); ?>
</div>
<?php endif; ?>
<div class="primary">
<div id="content" class="content">
<?php if ( have_posts()) : while (have_posts()) : the_post(); ?>
<?php if ( ! empty($post->post_parent) ): ?>
<div class="navigation">
<div class="nav-previous"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><span>«</span> <?php echo get_the_title($post->post_parent); ?></a></div>
<div class="clear"></div>
</div>
<?php endif; ?>
<div class="comments">
<?php comments_template(); ?>
</div><!-- .comments -->
<?php if ( ! empty($post->post_parent) ): ?>
<div class="navigation">
<div class="nav-previous"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><span>«</span> <?php echo get_the_title($post->post_parent); ?></a></div>
<div class="clear"></div>
</div>
<?php endif; ?>
<?php endwhile; else: define('K2_NOT_FOUND', true); ?>
<?php locate_template( array('blocks/k2-404.php'), true ); ?>
<?php endif; ?>
</div><!-- .content -->
</div><!-- .primary -->
<?php get_sidebar(); ?>
<?php if ( is_active_sidebar('widgets-bottom') ) : ?>
<div id="widgets-bottom" class="widgets">
<?php dynamic_sidebar('widgets-bottom'); ?>
</div>
<?php endif; ?>
</div><!-- .wrapper -->
<?php get_footer(); ?>