Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 89 lines (55 sloc) 2.832 kb
7dfbe81 attachment-image.php template added.
Sami Keijonen authored
1 <?php
2 /**
3 * Attachment Template
4 *
5 * This is the default image attachment template.
6 *
7 * @package Path
8 * @subpackage Template
9 * @since 0.1.0
10 */
11
12 get_header(); // Loads the header.php template. ?>
13
14 <?php do_atomic( 'before_content' ); // path_before_content ?>
15
16 <div id="content">
17
18 <?php do_atomic( 'open_content' ); // path_open_content ?>
19
20 <div class="hfeed">
21
22 <?php get_template_part( 'loop-meta' ); // Loads the loop-meta.php template. ?>
23
24 <?php if ( have_posts() ) : ?>
25
26 <?php while ( have_posts() ) : the_post(); ?>
27
28 <?php do_atomic( 'before_entry' ); // path_before_entry ?>
29
30 <article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
31
32 <?php do_atomic( 'open_entry' ); // path_open_entry ?>
33
34 <header class="entry-header">
35 <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
36 </header><!-- .entry-header -->
37
38 <div class="entry-content">
39
40 <?php echo wp_get_attachment_image( get_the_ID(), 'full', false, array( 'class' => 'aligncenter' ) ); ?>
1788131 Some changes to attachment-image.php template.
Sami Keijonen authored
41 <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'path' ) ); ?>
7dfbe81 attachment-image.php template added.
Sami Keijonen authored
42 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'path' ), 'after' => '</p>' ) ); ?>
43
44 </div><!-- .entry-content -->
45
46 <footer class="entry-footer">
47 <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( 'Published on [entry-published] [entry-edit-link before="| "]', 'path' ) . '</div>' ); ?>
48 </footer><!-- .entry-footer -->
49
50 <?php do_atomic( 'close_entry' ); // path_close_entry ?>
51
52 </article><!-- .hentry -->
53
54 <?php do_atomic( 'after_entry' ); // path_after_entry ?>
1788131 Some changes to attachment-image.php template.
Sami Keijonen authored
55
56 <div class="attachment-meta">
57
58 <?php $gallery = do_shortcode( sprintf( '[gallery id="%1$s" exclude="%2$s" columns="8"]', $post->post_parent, get_the_ID() ) ); ?>
59
60 <?php if ( !empty( $gallery ) ) { ?>
61 <div class="image-gallery">
62 <h3><?php _e( 'Gallery', 'path' ); ?></h3>
63 <?php echo $gallery; ?>
64 </div>
65 <?php } ?>
66
67 </div><!-- .attachment-meta -->
7dfbe81 attachment-image.php template added.
Sami Keijonen authored
68
69 <?php get_sidebar( 'after-singular' ); // Loads the sidebar-after-singular.php template. ?>
70
71 <?php do_atomic( 'after_singular' ); // path_after_singular ?>
72
73 <?php comments_template( '/comments.php', true ); // Loads the comments.php template. ?>
74
75 <?php endwhile; ?>
76
77 <?php endif; ?>
78
79 </div><!-- .hfeed -->
80
81 <?php do_atomic( 'close_content' ); // path_close_content ?>
1788131 Some changes to attachment-image.php template.
Sami Keijonen authored
82
7dfbe81 attachment-image.php template added.
Sami Keijonen authored
83 <?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
84
85 </div><!-- #content -->
86
87 <?php do_atomic( 'after_content' ); // path_after_content ?>
88
89 <?php get_footer(); // Loads the footer.php template. ?>
Something went wrong with that request. Please try again.