Skip to content
Browse files

Some changes to attachment-image.php template.

  • Loading branch information...
1 parent 7dfbe81 commit 17881311136c9f9ebb67471e665c038cf8033335 Sami Keijonen committed Jul 23, 2012
Showing with 18 additions and 14 deletions.
  1. +15 −14 attachment-image.php
  2. +3 −0 style.css
View
29 attachment-image.php
@@ -38,17 +38,9 @@
<div class="entry-content">
<?php echo wp_get_attachment_image( get_the_ID(), 'full', false, array( 'class' => 'aligncenter' ) ); ?>
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'path' ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'path' ), 'after' => '</p>' ) ); ?>
- <?php $gallery = do_shortcode( sprintf( '[gallery id="%1$s" exclude="%2$s" columns="8"]', $post->post_parent, get_the_ID() ) ); ?>
-
- <?php if ( !empty( $gallery ) ) { ?>
- <div class="image-gallery">
- <h3><?php _e( 'Gallery', 'path' ); ?></h3>
- <?php echo $gallery; ?>
- </div>
- <?php } ?>
-
</div><!-- .entry-content -->
<footer class="entry-footer">
@@ -60,6 +52,19 @@
</article><!-- .hentry -->
<?php do_atomic( 'after_entry' ); // path_after_entry ?>
+
+ <div class="attachment-meta">
+
+ <?php $gallery = do_shortcode( sprintf( '[gallery id="%1$s" exclude="%2$s" columns="8"]', $post->post_parent, get_the_ID() ) ); ?>
+
+ <?php if ( !empty( $gallery ) ) { ?>
+ <div class="image-gallery">
+ <h3><?php _e( 'Gallery', 'path' ); ?></h3>
+ <?php echo $gallery; ?>
+ </div>
+ <?php } ?>
+
+ </div><!-- .attachment-meta -->
<?php get_sidebar( 'after-singular' ); // Loads the sidebar-after-singular.php template. ?>
@@ -69,16 +74,12 @@
<?php endwhile; ?>
- <?php else : ?>
-
- <?php get_template_part( 'loop-error' ); // Loads the loop-error.php template. ?>
-
<?php endif; ?>
</div><!-- .hfeed -->
<?php do_atomic( 'close_content' ); // path_close_content ?>
-
+
<?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
</div><!-- #content -->
View
3 style.css
@@ -510,6 +510,9 @@ h3.menu-secondary-mobile-title {
margin-bottom: 2em;
padding-bottom: 0;
}
+.singular-attachment .hentry {
+ text-align: center;
+}
.page-template-path-slider .hentry,
.page-template-most-popular .hentry,
.page-template-most-popular-last-30-days .hentry,

0 comments on commit 1788131

Please sign in to comment.
Something went wrong with that request. Please try again.