This repository has been archived by the owner on Jul 7, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Twenty Ten initial import. Props Ian Stewart, Matt Thomas, and others…
…. see #9015 git-svn-id: http://core.svn.wordpress.org/trunk@13012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
- Loading branch information
ryan
committed
Feb 7, 2010
1 parent
7528eb4
commit b9f78dd
Showing
26 changed files
with
3,225 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php get_header(); ?> | ||
|
||
<div id="container"> | ||
<div id="content"> | ||
|
||
<div id="post-0" class="post error404 not-found"> | ||
<h1 class="entry-title">Not Found</h1> | ||
<div class="entry-content"> | ||
<p>Apologies, but the page you requested could not be found. Perhaps searching will help.</p> | ||
<?php get_search_form(); ?> | ||
</div><!-- .entry-content --> | ||
</div><!-- #post-0 --> | ||
|
||
</div><!-- #content --> | ||
</div><!-- #container --> | ||
<script type="text/javascript"> | ||
// focus on search field after it has loaded | ||
document.getElementById('s') && document.getElementById('s').focus(); | ||
</script> | ||
|
||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php get_header(); ?> | ||
|
||
<div id="container"> | ||
<div id="content"> | ||
|
||
<?php the_post(); ?> | ||
|
||
<?php if ( is_day() ) : ?> | ||
<h1 class="page-title"><?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_time(get_option('date_format')) ) ?></h1> | ||
<?php elseif ( is_month() ) : ?> | ||
<h1 class="page-title"><?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_time('F Y') ) ?></h1> | ||
<?php elseif ( is_year() ) : ?> | ||
<h1 class="page-title"><?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_time('Y') ) ?></h1> | ||
<?php elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) : ?> | ||
<h1 class="page-title"><?php _e( 'Blog Archives', 'twentyten' ) ?></h1> | ||
<?php endif; ?> | ||
|
||
<?php rewind_posts(); ?> | ||
|
||
<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> | ||
<div id="nav-above" class="navigation"> | ||
<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div> | ||
<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div> | ||
</div><!-- #nav-above --> | ||
<?php } ?> | ||
|
||
<?php while ( have_posts() ) : the_post(); ?> | ||
|
||
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> | ||
|
||
<div class="entry-meta"> | ||
<span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> | ||
<a href="<?php | ||
the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a> | ||
<span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> | ||
<span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> | ||
</div><!-- .entry-meta --> | ||
|
||
<div class="entry-summary"> | ||
<?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> | ||
</div><!-- .entry-summary --> | ||
|
||
<div class="entry-utility"> | ||
<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> | ||
<span class="meta-sep"> | </span> | ||
<?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" ) ?> | ||
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span> | ||
<?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" ) ?> | ||
</div><!-- #entry-utility --> | ||
</div><!-- #post-<?php the_ID(); ?> --> | ||
|
||
<?php endwhile; ?> | ||
|
||
<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> | ||
<div id="nav-below" class="navigation"> | ||
<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div> | ||
<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div> | ||
</div><!-- #nav-below --> | ||
<?php } ?> | ||
|
||
</div><!-- #content --> | ||
</div><!-- #container --> | ||
|
||
<?php get_sidebar(); ?> | ||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php get_header(); ?> | ||
|
||
<div id="container"> | ||
<div id="content"> | ||
|
||
<?php the_post(); ?> | ||
|
||
<p class="page-title"><a href="<?php echo get_permalink($post->post_parent) ?>" title="<?php printf( __( 'Return to %s', 'twentyten' ), wp_specialchars( get_the_title($post->post_parent), 1 ) ) ?>" rel="gallery">← <?php echo get_the_title($post->post_parent) ?></a></p> | ||
|
||
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
<h2 class="entry-title"><?php the_title(); ?></h2> | ||
|
||
<div class="entry-meta"> | ||
<span class="meta-prep meta-prep-author"><?php _e('By ', 'twentyten'); ?></span> | ||
<span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> | ||
<span class="meta-sep"> | </span> | ||
<span class="meta-prep meta-prep-entry-date"><?php _e('Published ', 'twentyten'); ?></span> | ||
<span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></span> | ||
<?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" ) ?> | ||
</div><!-- .entry-meta --> | ||
|
||
<div class="entry-content"> | ||
<div class="entry-attachment"> | ||
<?php if ( wp_attachment_is_image( $post->id ) ) : $att_image = wp_get_attachment_image_src( $post->id, array(640,640)); ?> | ||
<p class="attachment"><a href="<?php echo wp_get_attachment_url($post->id); ?>" title="<?php the_title(); ?>" rel="attachment"><img src="<?php echo $att_image[0];?>" width="<?php echo $att_image[1];?>" height="<?php echo $att_image[2];?>" class="attachment-medium" alt="<?php $post->post_excerpt; ?>" /></a> | ||
</p> | ||
|
||
|
||
<div id="nav-below" class="navigation"> | ||
<div class="nav-previous"><?php previous_image_link( false ); ?></div> | ||
<div class="nav-next"><?php next_image_link( false ); ?></div> | ||
</div><!-- #nav-below --> | ||
<?php else : ?> | ||
<a href="<?php echo wp_get_attachment_url($post->ID) ?>" title="<?php echo wp_specialchars( get_the_title($post->ID), 1 ) ?>" rel="attachment"><?php echo basename($post->guid) ?></a> | ||
<?php endif; ?> | ||
</div> | ||
<div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt() ?></div> | ||
|
||
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> | ||
<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>') ?> | ||
|
||
</div><!-- .entry-content --> | ||
|
||
<div class="entry-utility"> | ||
<?php printf( __( 'This entry was posted in %1$s%2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'twentyten' ), | ||
get_the_category_list(', '), | ||
get_the_tag_list( __( ' and tagged ', 'twentyten' ), ', ', '' ), | ||
get_permalink(), | ||
the_title_attribute('echo=0'), | ||
comments_rss() ) ?> | ||
|
||
<?php if ( ('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Comments and trackbacks open ?> | ||
<?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyten' ), get_trackback_url() ) ?> | ||
<?php elseif ( !('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Only trackbacks open ?> | ||
<?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyten' ), get_trackback_url() ) ?> | ||
<?php elseif ( ('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Only comments open ?> | ||
<?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyten' ) ?> | ||
<?php elseif ( !('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Comments and trackbacks closed ?> | ||
<?php _e( 'Both comments and trackbacks are currently closed.', 'twentyten' ) ?> | ||
<?php endif; ?> | ||
<?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?> | ||
</div><!-- .entry-utility --> | ||
</div><!-- #post-<?php the_ID(); ?> --> | ||
|
||
<?php comments_template(); ?> | ||
|
||
</div><!-- #content --> | ||
</div><!-- #container --> | ||
|
||
<?php get_sidebar(); ?> | ||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php get_header(); ?> | ||
|
||
<div id="container"> | ||
<div id="content"> | ||
|
||
<?php the_post(); ?> | ||
|
||
<h1 class="page-title author"><?php printf( __( 'Author Archives: <span class="vcard">%s</span>', 'twentyten' ), "<a class='url fn n' href='$authordata->user_url' title='$authordata->display_name' rel='me'>$authordata->display_name</a>" ) ?></h1> | ||
|
||
<?php if ( get_the_author_meta('description') ) : // If a user has filled out their decscription show a bio on their entries ?> | ||
<div id="entry-author-info"> | ||
<div id="author-avatar"> | ||
<?php echo get_avatar( get_the_author_meta('user_email'), apply_filters('twentyten_author_bio_avatar_size', 60) ); ?> | ||
</div><!-- #author-avatar --> | ||
<div id="author-description"> | ||
<h2><?php _e('About ', 'twentyten'); ?><?php the_author(); ?></h2> | ||
<?php the_author_meta('description'); ?> | ||
</div><!-- #author-description --> | ||
</div><!-- .entry-author-info --> | ||
<?php endif; ?> | ||
|
||
<?php rewind_posts(); ?> | ||
|
||
<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> | ||
<div id="nav-above" class="navigation"> | ||
<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div> | ||
<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div> | ||
</div><!-- #nav-above --> | ||
<?php } ?> | ||
|
||
<?php while ( have_posts() ) : the_post(); ?> | ||
|
||
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> | ||
|
||
<div class="entry-meta"> | ||
<span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> | ||
<a href="<?php | ||
the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a> | ||
</div><!-- .entry-meta --> | ||
|
||
<div class="entry-summary"> | ||
<?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> | ||
</div><!-- .entry-summary --> | ||
|
||
<div class="entry-utility"> | ||
<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> | ||
<span class="meta-sep"> | </span> | ||
<?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" ) ?> | ||
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span> | ||
<?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" ) ?> | ||
</div><!-- #entry-utility --> | ||
</div><!-- #post-<?php the_ID(); ?> --> | ||
|
||
<?php endwhile; ?> | ||
|
||
<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> | ||
<div id="nav-below" class="navigation"> | ||
<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div> | ||
<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div> | ||
</div><!-- #nav-below --> | ||
<?php } ?> | ||
|
||
</div><!-- #content --> | ||
</div><!-- #container --> | ||
|
||
<?php get_sidebar(); ?> | ||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
|
||
<?php get_header(); ?> | ||
|
||
<div id="container"> | ||
<div id="content"> | ||
|
||
<?php the_post(); ?> | ||
|
||
<h1 class="page-title"><?php _e( 'Category Archives:', 'twentyten' ) ?> <span><?php single_cat_title() ?></span></span></h1> | ||
<?php $categorydesc = category_description(); if ( !empty($categorydesc) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?> | ||
|
||
<?php rewind_posts(); ?> | ||
|
||
<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> | ||
<div id="nav-above" class="navigation"> | ||
<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div> | ||
<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div> | ||
</div><!-- #nav-above --> | ||
<?php } ?> | ||
|
||
<?php while ( have_posts() ) : the_post(); ?> | ||
|
||
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> | ||
|
||
<div class="entry-meta"> | ||
<span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> | ||
<a href="<?php | ||
the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a> | ||
<span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> | ||
<span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> | ||
</div><!-- .entry-meta --> | ||
|
||
<div class="entry-summary"> | ||
<?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> | ||
</div><!-- .entry-summary --> | ||
|
||
<div class="entry-utility"> | ||
<?php if ( $cats_meow = cats_meow(', ') ) : // Returns categories other than the one queried ?> | ||
<span class="cat-links"><?php printf( __( 'Also posted in %s', 'twentyten' ), $cats_meow ) ?></span> | ||
<span class="meta-sep"> | </span> | ||
<?php endif ?> | ||
<?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" ) ?> | ||
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span> | ||
<?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" ) ?> | ||
</div><!-- #entry-utility --> | ||
</div><!-- #post-<?php the_ID(); ?> --> | ||
|
||
<?php endwhile; ?> | ||
|
||
<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> | ||
<div id="nav-below" class="navigation"> | ||
<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div> | ||
<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div> | ||
</div><!-- #nav-below --> | ||
<?php } ?> | ||
|
||
</div><!-- #content --> | ||
</div><!-- #container --> | ||
|
||
<?php get_sidebar(); ?> | ||
<?php get_footer(); ?> |
Oops, something went wrong.