Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- get_header(); ?>
- <div id="content">
- <div class="padder">
- <?php do_action( 'bp_before_attachment' ) ?>
- <div class="page" id="attachments-page ">
- <h2 class="pagetitle"><?php _e( '', 'cc' ) ?></h2>
- <?php
- if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>"
- <?php post_class(); ?>>
- <div class="entry-meta">
- <?php
- edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep"></span> <span class="edit-link">', '</span>' ); ?>
- </div><!-- .entry-meta -->
- <?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 class="entry-content">
- <h5 class="entry-title"><?php the_title(); ?></h5>
- <div class="entry-attachment">
- <a<?php
- if ( wp_attachment_is_image() ) : ?>
- <?php endif; ?> href="<?php
- echo wp_get_attachment_url(); ?>" title="
- <?php
- the_title_attribute(); ?>" rel="attachment">
- <?php
- if ( wp_attachment_is_image() ) : ?>
- <?php
- $attachment_width = apply_filters( 'attachment_size', 650 );
- $attachment_height = apply_filters( 'attachment_height', 500 );
- echo wp_get_attachment_image( $post->ID, array( $attachment_width, $attachment_height ) ); ?></a></p>
- <?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>
- <?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();?> <p> <?/*php next_image_link(false, 'Next'); */?></p></div>
- <div class="nav-previous"><?php previous_image_link(); ?> <p> <?/*php previous_image_link
- (false, 'Previous'); */?></p></div>
- <div class="clear"></div>
- </div>
- <div class="clear"></div>
- </div><!-- #post-## -->
- <?php endwhile; ?>
- </div>
- </div><!-- #content-attachment -->
- </div><!-- #container-attachment -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement