Advertisement
deepbevel

Untitled

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