Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 74 lines (49 sloc) 2.265 kb
0c01223 @justintadlock Bring in the initial files and folders.
authored
1 <?php
2 /**
3 * Index Template
4 *
5 * This is the default template. It is used when a more specific template can't be found to display
6 * posts. It is unlikely that this template will ever be used, but there may be rare cases.
7 *
8ab6ce2 @justintadlock Copy/Paste fail. Update all instances of @package MyLife to @package Pi...
authored
8 * @package Picturesque
0c01223 @justintadlock Bring in the initial files and folders.
authored
9 * @subpackage Template
10 * @since 0.1.0
11 * @author Justin Tadlock <justin@justintadlock.com>
d8e7a87 @justintadlock Many, many changes getting this theme ready.
authored
12 * @copyright Copyright (c) 2012, Justin Tadlock
13 * @link http://themehybrid.com/themes/picturesque
0c01223 @justintadlock Bring in the initial files and folders.
authored
14 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
15 */
16
17 /* Set up some default variables to use in the gallery. */
18 $gallery_columns = apply_atomic( 'post_format_archive_gallery_columns', 3 );
19 $gallery_iterator = 0;
20
21 get_header(); // Loads the header.php template. ?>
22
23 <?php do_atomic( 'before_content' ); // picturesque_before_content ?>
24
25 <div id="content">
26
27 <?php do_atomic( 'open_content' ); // picturesque_open_content ?>
28
29 <div class="hfeed">
30
31 <?php get_template_part( 'loop-meta' ); // Loads the loop-meta.php template. ?>
32
33 <?php if ( have_posts() ) : ?>
34
35 <div class="gallery">
36
37 <?php while ( have_posts() ) : the_post(); ?>
38
39 <?php if ( $gallery_columns > 0 && $gallery_iterator % $gallery_columns == 0 ) echo '<div class="gallery-row">'; ?>
40
41 <div class="gallery-item col-<?php echo esc_attr( $gallery_columns ); ?>">
42 <div class="gallery-icon">
43 <?php get_the_image( array( 'size' => 'thumbnail', 'meta_key' => false ) ); ?>
44 </div>
45 <div class="gallery-caption">
46 <?php the_title(); ?>
47 </div>
48 </div>
49
50 <?php if ( $gallery_columns > 0 && ++$gallery_iterator % $gallery_columns == 0 ) echo '</div>'; ?>
51
52 <?php endwhile; ?>
53
54 <?php if ( $gallery_columns > 0 && $gallery_iterator % $gallery_columns !== 0 ) echo '</div>'; ?>
55
56 </div><!-- .gallery -->
57
58 <?php else : ?>
59
60 <?php get_template_part( 'loop-error' ); // Loads the loop-error.php template. ?>
61
62 <?php endif; ?>
63
64 </div><!-- .hfeed -->
65
66 <?php do_atomic( 'close_content' ); // picturesque_close_content ?>
67
68 <?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
69
70 </div><!-- #content -->
71
72 <?php do_atomic( 'after_content' ); // picturesque_after_content ?>
73
74 <?php get_footer(); // Loads the footer.php template. ?>
Something went wrong with that request. Please try again.