Advertisement
Guest User

Untitled

a guest
Feb 27th, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. <?php
  2. get_header(); ?>
  3.  
  4. <div id="content">
  5. <div class="padder">
  6. <?php do_action( 'bp_before_attachment' ) ?>
  7.  
  8. <div class="page" id="attachments-page ">
  9.  
  10.  
  11.  
  12. <h2 class="pagetitle"><?php _e( '', 'cc' ) ?></h2>
  13.  
  14.  
  15. <?php
  16. if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  17.  
  18.  
  19. <div id="post-<?php the_ID(); ?>"
  20. <?php post_class(); ?>>
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. <div class="entry-meta">
  28.  
  29.  
  30. <?php
  31. edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep"></span> <span class="edit-link">', '</span>' ); ?>
  32. </div><!-- .entry-meta -->
  33.  
  34.  
  35. <?php if ( ! empty( $post->post_parent ) ) : ?>
  36. <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
  37. /* translators: %s - title of parent post */
  38. printf( __( '<span class="meta-nav">&larr;</span> %s', 'twentyten' ), get_the_title( $post->post_parent ) );
  39. ?></a></p>
  40. <?php endif; ?>
  41.  
  42.  
  43. <div class="entry-content">
  44. <h5 class="entry-title"><?php the_title(); ?></h5>
  45.  
  46.  
  47. <div class="entry-attachment">
  48.  
  49. <a<?php
  50. if ( wp_attachment_is_image() ) : ?>
  51.  
  52. <?php endif; ?> href="<?php
  53. echo wp_get_attachment_url(); ?>" title="
  54. <?php
  55. the_title_attribute(); ?>" rel="attachment">
  56.  
  57. <?php
  58. if ( wp_attachment_is_image() ) : ?>
  59. <?php
  60. $attachment_width = apply_filters( 'attachment_size', 650 );
  61. $attachment_height = apply_filters( 'attachment_height', 500 );
  62. echo wp_get_attachment_image( $post->ID, array( $attachment_width, $attachment_height ) ); ?></a></p>
  63.  
  64.  
  65. <?php
  66. else : ?>
  67. <?php
  68. echo basename( get_permalink() ); ?>
  69. <?php
  70. endif; ?>
  71. </a>
  72.  
  73.  
  74. </div><!-- .entry-attachment -->
  75.  
  76.  
  77. <div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?>
  78.  
  79.  
  80. </div>
  81.  
  82. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
  83. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
  84.  
  85.  
  86.  
  87. </div><!-- .entry-content -->
  88.  
  89.  
  90.  
  91.  
  92. <div id="attachment-nav">
  93.  
  94. <div class="nav-next"><?php next_image_link();?> <p> <?/*php next_image_link(false, 'Next'); */?></p></div>
  95. <div class="nav-previous"><?php previous_image_link(); ?> <p> <?/*php previous_image_link
  96.  
  97. (false, 'Previous'); */?></p></div>
  98.  
  99. <div class="clear"></div>
  100.  
  101. </div>
  102.  
  103.  
  104. <div class="clear"></div>
  105.  
  106.  
  107. </div><!-- #post-## -->
  108.  
  109.  
  110. <?php endwhile; ?>
  111.  
  112.  
  113.  
  114. </div>
  115.  
  116. </div><!-- #content-attachment -->
  117.  
  118. </div><!-- #container-attachment -->
  119.  
  120.  
  121.  
  122. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement