From 8e2064bbd878ac93438a6616cbf4af21a0f41edd Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 27 Nov 2011 12:23:12 -0500 Subject: The North Star 2010-2011 theme, a fork of Twenty Ten I'm not planning on maintaining this, I just figured I'd put it in git in case I ever want it. This has already been cleaned up a lot. I might one day do the work to make it a proper child theme (it was forked too many versions ago for it to be clean), but probably not. --- loop.php | 213 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 213 insertions(+) create mode 100644 loop.php (limited to 'loop.php') diff --git a/loop.php b/loop.php new file mode 100644 index 0000000..b5c6c1b --- /dev/null +++ b/loop.php @@ -0,0 +1,213 @@ + +get_template_part( 'loop', 'index' ); + * + * @package WordPress + * @subpackage Twenty_Ten + * @since Twenty Ten 1.0 + */ + +global $head; + +/* Display navigation to next/previous pages when applicable */ +if ( $wp_query->max_num_pages > 1 ) { + ?> + + + + +
+ "; + _e( 'Not Found', 'twentyten' ); + echo ""; + $head++; + ?> +
+

+ +
+ +
+ +
> + class="entry-title">"; $head++; ?> + + ID ) ) + || in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) + ) { ?> +
+ $post->ID, + 'post_type' => 'attachment', + 'post_mime_type' => 'image', + 'orderby' => 'menu_order', + 'order' => 'ASC', + 'numberposts' => 999 ) ); + if ( $images ) { + $total_images = count( $images ); + $image = array_shift( $images ); + $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); + ?> + +

%2$s photo.', + 'This gallery contains %2$s photos.', + $total_images, + 'twentyten' + ), + 'href="' . get_permalink() . '" title="' . sprintf( + esc_attr__( 'Permalink to %s', 'twentyten' ), + the_title_attribute( 'echo=0' ) + ) . '" rel="bookmark"', + number_format_i18n( $total_images ) + ); + ?>

+ +
+ +
+ ID ) ) { + ?> + | + + | + + + | ', '' ); ?> +
+ +
+ +
+ +
+ →', 'twentyten' ) ); + wp_link_pages( array( 'before' => '' ) ); + ?> +
+ +
+ + + Posted in %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> + + | + + + Tagged %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> + + | + + + | ', '' ); ?> +
+ +
+ max_num_pages > 1 ) { + ?> + + + \ No newline at end of file -- cgit v1.2.3