Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
- <link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet">
- <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
- <script src="<?php bloginfo('template_url'); ?>/js/hover.js"></script>
- <link rel="shortcut icon" href="/favicon.ico">
- <?php wp_head(); ?>
- </head>
- <body>
- <div id="container">
- <div id="content-holder">
- <header>
- <div id="logo">
- <a href="<?php echo get_option('home'); ?>">photobLAg</a>
- <span>by roope palomäki</span>
- </div>
- </header>
- <?php if ( have_posts() ) : ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <div class="post-holder">
- <div class="post-image">
- <div class="post-image-sizer">
- <?php $args = array(
- 'post_type' => 'attachment',
- 'numberposts' => 1,
- 'post_parent' => $post->ID
- );
- $images = get_posts($args);
- echo wp_get_attachment_image($images[0]->ID, $size='attached-image'); ?>
- <div class="actions">
- <a href="<?php $attachments = get_children( array('post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' =>'image') );
- foreach ( $attachments as $attachment_id => $attachment ) {
- echo wp_get_attachment_url( $attachment_id );
- } ?>" download>
- <div class="btn download"><div class="centered">down<br>load</div></div>
- </a>
- <div class="btn expand"><div class="centered">expa<br>nd</div></div>
- </div>
- </div>
- </div>
- <div class="post-info">
- <div class="post-date"><?php the_time('F j, Y'); ?></div>
- </div>
- </div>
- <?php endwhile; ?>
- <?php endif; ?>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement