Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //image attachment template for custom community theme
- get_header(); ?>
- <div id="content">
- <div class="padder-attachment">
- <?php do_action( 'bp_before_attachment' ) ?>
- <div class="page" id="attachments-page">
- <h2 class="pagetitle"><?php _e( '', 'buddypress' ) ?></h2>
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <div class="entry-meta">
- </div><!-- .entry-meta -->
- <div class="entry-content">
- <div class="entry-attachment">
- <a<?php if( wp_attachment_is_image() ) : ?>
- <href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="attachment">
- <?php
- $attachment_width = apply_filters( 'twentyten_attachment_size', 550);
- $attachment_height = apply_filters( 'twentyten_attachment_height', 550 );
- echo wp_get_attachment_image( $post->ID, array( $attachment_width, $attachment_height ) ); // filterable image width with, essentially, no limit for image height.
- ?></a>
- <?php else : ?>
- <?php echo basename( get_permalink() ); ?>
- <?php endif; ?>
- </a>
- </div><!-- .entry-attachment -->
- <div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?></div>
- </br>
- <div class="attachment-title">
- <p class="entry-title"><?php the_title(); ?></p>
- </div>
- <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
- </div><!-- .entry-content -->
- <div id="attachment-nav">
- <div class="nav-next"><?php next_image_link();?> </div>
- <div class="nav-previous"><?php previous_image_link(); ?> </div>
- <div class="clear"></div>
- </div><!-- #attachment-nav -->
- <div class="clear"></div>
- <?php if ( ! empty( $post->post_parent ) ) : ?>
- <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php esc_attr( printf( __( 'Return to %s', 'twentyten' ), get_the_title( $post->post_parent ) ) ); ?>" rel="gallery"><?php
- /* translators: %s - title of parent post */
- printf( __( '<span class="meta-nav">←</span> %s', 'twentyten' ), get_the_title( $post->post_parent ) );
- ?></a></p>
- <?php endif; ?>
- </div><!-- #post-## -->
- <?/*php comments_template(); */?>
- <?php endwhile; ?>
- </div><!--- #padder -->
- </div><!-- #content -->
- </div><!-- #container -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement