1 | | <?php if ( $wp_query->max_num_pages > 1 ) { ?> |
2 | | <div id="nav-above" class="navigation"> |
3 | | <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> |
4 | | <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> |
5 | | </div><!-- #nav-above --> |
6 | | <?php } ?> |
7 | | |
8 | | <?php while ( have_posts() ) : the_post(); ?> |
9 | | <?php if ( in_category( 'Gallery' ) ) { ?> |
10 | | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
11 | | <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> |
12 | | |
13 | | <div class="entry-meta"> |
14 | | <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span> |
15 | | <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> |
16 | | <span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span> |
17 | | <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> |
18 | | </div><!-- .entry-meta --> |
19 | | |
20 | | <div class="entry-content"> |
21 | | <div class="gallery-thumb"> |
22 | | <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php |
23 | | $images =& get_children( array('post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999) ); |
24 | | $total_images = count($images); |
25 | | $image = array_shift($images); |
26 | | echo wp_get_attachment_image( $image->ID, 'thumbnail' ); |
27 | | ?></a> |
28 | | </div> |
29 | | <p><em><?php printf( __('This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten'), 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ) . '" rel="bookmark"', $total_images ); ?></em></p> |
30 | | |
31 | | <?php the_excerpt( '' ); ?> |
32 | | </div><!-- .entry-content --> |
33 | | |
34 | | <div class="entry-utility"> |
35 | | <?php |
36 | | $category_id = get_cat_ID( 'Gallery' ); |
37 | | $category_link = get_category_link( $category_id ); |
38 | | ?> |
39 | | <a href="<?php echo $category_link; ?>" title="<?php esc_attr_e('View posts in the Gallery category', 'twentyten'); ?>"><?php _e('More Galleries', 'twentyten'); ?></a> |
40 | | <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span> |
41 | | <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> |
42 | | <?php edit_post_link( __( 'Edit', 'twentyten' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ); ?> |
43 | | </div><!-- #entry-utility --> |
44 | | </div> |
45 | | |
46 | | |
47 | | <?php } elseif ( in_category( 'asides' ) ) { ?> |
48 | | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
49 | | <div class="entry-content"> |
50 | | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> |
51 | | </div><!-- .entry-content --> |
52 | | |
53 | | <div class="entry-utility"> |
54 | | <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span> |
55 | | <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> |
56 | | <span class="meta-sep"> <?php _e( ' by ', 'twentyten' ); ?> </span> |
57 | | <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> |
58 | | <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span> |
59 | | <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> |
60 | | <?php edit_post_link( __( 'Edit', 'twentyten' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ); ?> |
61 | | </div><!-- #entry-utility --> |
62 | | </div><!-- #post-<?php the_ID(); ?> --> |
63 | | |
64 | | |
65 | | <?php } else { ?> |
66 | | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
67 | | <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> |
68 | | |
69 | | <div class="entry-meta"> |
70 | | <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> |
71 | | <a href="<?php |
72 | | the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> |
73 | | <span class="meta-sep"><?php _e( ' by ', 'twentyten' ); ?></span> |
74 | | <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> |
75 | | </div><!-- .entry-meta --> |
76 | | |
77 | | <?php if ( is_archive() || is_search() ) : //Only display Excerpts for archives & search ?> |
78 | | <div class="entry-summary"> |
79 | | <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> |
80 | | </div><!-- .entry-summary --> |
81 | | <?php else : ?> |
82 | | <div class="entry-content"> |
83 | | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> |
84 | | <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>'); ?> |
85 | | </div><!-- .entry-content --> |
86 | | <?php endif; ?> |
87 | | |
88 | | <div class="entry-utility"> |
89 | | <span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links"><?php _e( 'Posted in ', 'twentyten' ); ?></span><?php echo get_the_category_list( ', ' ); ?></span> |
90 | | <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span> |
91 | | <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __('Tagged ', 'twentyten' ) . '</span>', ", ", "</span>\n\t\t\t\t\t\t<span class=\"meta-sep\">|</span>\n" ); ?> |
92 | | <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> |
93 | | <?php edit_post_link( __( 'Edit', 'twentyten' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ); ?> |
94 | | </div><!-- #entry-utility --> |
95 | | </div><!-- #post-<?php the_ID(); ?> --> |
96 | | |
97 | | <?php comments_template( '', true ); ?> |
98 | | |
99 | | <?php } ?> |
100 | | <?php endwhile; ?> |
101 | | |
102 | | <?php if ( $wp_query->max_num_pages > 1 ) { ?> |
103 | | <div id="nav-below" class="navigation"> |
104 | | <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> |
105 | | <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> |
106 | | </div><!-- #nav-below --> |
107 | | <?php } ?> |
108 | | No newline at end of file |
| 1 | <?php twentyten_page_links(); ?> |
| 2 | |
| 3 | <?php while ( have_posts() ) : the_post(); ?> |
| 4 | <?php if ( in_category( 'Gallery' ) ) { ?> |
| 5 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 6 | <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> |
| 7 | |
| 8 | <div class="entry-meta"> |
| 9 | <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span> |
| 10 | <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> |
| 11 | <span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span> |
| 12 | <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> |
| 13 | </div><!-- .entry-meta --> |
| 14 | |
| 15 | <div class="entry-content"> |
| 16 | <div class="gallery-thumb"> |
| 17 | <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php |
| 18 | $images =& get_children( array('post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999) ); |
| 19 | $total_images = count($images); |
| 20 | $image = array_shift($images); |
| 21 | echo wp_get_attachment_image( $image->ID, 'thumbnail' ); |
| 22 | ?></a> |
| 23 | </div> |
| 24 | <p><em><?php printf( __('This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten'), 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ) . '" rel="bookmark"', $total_images ); ?></em></p> |
| 25 | |
| 26 | <?php the_excerpt( '' ); ?> |
| 27 | </div><!-- .entry-content --> |
| 28 | |
| 29 | <div class="entry-utility"> |
| 30 | <?php |
| 31 | $category_id = get_cat_ID( 'Gallery' ); |
| 32 | $category_link = get_category_link( $category_id ); |
| 33 | ?> |
| 34 | <a href="<?php echo $category_link; ?>" title="<?php esc_attr_e('View posts in the Gallery category', 'twentyten'); ?>"><?php _e('More Galleries', 'twentyten'); ?></a> |
| 35 | <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span> |
| 36 | <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> |
| 37 | <?php edit_post_link( __( 'Edit', 'twentyten' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ); ?> |
| 38 | </div><!-- #entry-utility --> |
| 39 | </div> |
| 40 | |
| 41 | |
| 42 | <?php } elseif ( in_category( 'asides' ) ) { ?> |
| 43 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 44 | <div class="entry-content"> |
| 45 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> |
| 46 | </div><!-- .entry-content --> |
| 47 | |
| 48 | <div class="entry-utility"> |
| 49 | <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span> |
| 50 | <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> |
| 51 | <span class="meta-sep"> <?php _e( ' by ', 'twentyten' ); ?> </span> |
| 52 | <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> |
| 53 | <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span> |
| 54 | <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> |
| 55 | <?php edit_post_link( __( 'Edit', 'twentyten' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ); ?> |
| 56 | </div><!-- #entry-utility --> |
| 57 | </div><!-- #post-<?php the_ID(); ?> --> |
| 58 | |
| 59 | |
| 60 | <?php } else { ?> |
| 61 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 62 | <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> |
| 63 | |
| 64 | <div class="entry-meta"> |
| 65 | <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> |
| 66 | <a href="<?php |
| 67 | the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> |
| 68 | <span class="meta-sep"><?php _e( ' by ', 'twentyten' ); ?></span> |
| 69 | <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> |
| 70 | </div><!-- .entry-meta --> |
| 71 | |
| 72 | <?php if ( is_archive() || is_search() ) : //Only display Excerpts for archives & search ?> |
| 73 | <div class="entry-summary"> |
| 74 | <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> |
| 75 | </div><!-- .entry-summary --> |
| 76 | <?php else : ?> |
| 77 | <div class="entry-content"> |
| 78 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> |
| 79 | <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>'); ?> |
| 80 | </div><!-- .entry-content --> |
| 81 | <?php endif; ?> |
| 82 | |
| 83 | <div class="entry-utility"> |
| 84 | <span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links"><?php _e( 'Posted in ', 'twentyten' ); ?></span><?php echo get_the_category_list( ', ' ); ?></span> |
| 85 | <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span> |
| 86 | <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __('Tagged ', 'twentyten' ) . '</span>', ", ", "</span>\n\t\t\t\t\t\t<span class=\"meta-sep\">|</span>\n" ); ?> |
| 87 | <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> |
| 88 | <?php edit_post_link( __( 'Edit', 'twentyten' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ); ?> |
| 89 | </div><!-- #entry-utility --> |
| 90 | </div><!-- #post-<?php the_ID(); ?> --> |
| 91 | |
| 92 | <?php comments_template( '', true ); ?> |
| 93 | |
| 94 | <?php } ?> |
| 95 | <?php endwhile; ?> |
| 96 | |
| 97 | <?php twentyten_page_links(); ?> |
| 98 | No newline at end of file |