Advertisement
Guest User

Untitled

a guest
Jul 14th, 2013
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.50 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.  
  5. <meta charset="utf-8">
  6.  
  7. <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
  8.  
  9. <link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet">
  10.  
  11.  
  12. <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
  13.  
  14. <script src="<?php bloginfo('template_url'); ?>/js/hover.js"></script>
  15.  
  16. <link rel="shortcut icon" href="/favicon.ico">
  17.  
  18. <?php wp_head(); ?>
  19.  
  20. </head>
  21.  
  22. <body>
  23.    
  24.    
  25.    
  26.     <div id="container">        
  27.         <div id="content-holder">
  28.        
  29.         <header>
  30.             <div id="logo">
  31.                 <a href="<?php echo get_option('home'); ?>">photobLAg</a>
  32.                 <span>by roope palomäki</span>
  33.             </div>
  34.         </header>
  35.        
  36.             <?php if ( have_posts() ) : ?>
  37.             <?php while ( have_posts() ) : the_post(); ?>
  38.                
  39.                 <div class="post-holder">
  40.                     <div class="post-image">
  41.                         <div class="post-image-sizer">
  42.                         <?php $args = array(
  43.                            'post_type' => 'attachment',
  44.                             'numberposts' => 1,
  45.                             'post_parent' => $post->ID
  46.                         );
  47.                         $images = get_posts($args);
  48.                        
  49.                         echo wp_get_attachment_image($images[0]->ID, $size='attached-image'); ?>
  50.                        
  51.                             <div class="actions">
  52.                                 <a href="<?php $attachments = get_children( array('post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' =>'image') );
  53.                                 foreach ( $attachments as $attachment_id => $attachment ) {
  54.                                     echo wp_get_attachment_url( $attachment_id );
  55.                                 } ?>" download>
  56.                                     <div class="btn download"><div class="centered">down<br>load</div></div>
  57.                                 </a>
  58.                                
  59.                                 <div class="btn expand"><div class="centered">expa<br>nd</div></div>
  60.                             </div>
  61.                        
  62.                         </div>
  63.                     </div>
  64.                    
  65.                     <div class="post-info">
  66.                         <div class="post-date"><?php the_time('F j, Y'); ?></div>
  67.                     </div>
  68.                 </div>
  69.            
  70.             <?php endwhile; ?>
  71.             <?php endif; ?>
  72.        
  73.         </div>
  74.        
  75.     </div>
  76.    
  77. </body>
  78.  
  79. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement