Permalink
Browse files

First commit, this is the twentyeleven theme from WordPress 3.2.1

Signed-off-by: Drew Jones <github@andij.com>
  • Loading branch information...
0 parents commit 509c1c002ff0eccf91c102953b676a391f1a1c4a @andij committed Aug 28, 2011
Showing with 8,220 additions and 0 deletions.
  1. 0 .gitignore
  2. +48 −0 404.php
  3. +72 −0 archive.php
  4. +89 −0 author.php
  5. +65 −0 category.php
  6. +618 −0 colors/dark.css
  7. +77 −0 comments.php
  8. +46 −0 content-aside.php
  9. +47 −0 content-featured.php
  10. +92 −0 content-gallery.php
  11. +70 −0 content-image.php
  12. +21 −0 content-intro.php
  13. +46 −0 content-link.php
  14. +23 −0 content-page.php
  15. +74 −0 content-quote.php
  16. +71 −0 content-single.php
  17. +47 −0 content-status.php
  18. +82 −0 content.php
  19. +24 −0 editor-style-rtl.css
  20. +311 −0 editor-style.css
  21. +34 −0 footer.php
  22. +593 −0 functions.php
  23. +123 −0 header.php
  24. +101 −0 image.php
  25. BIN images/comment-arrow-bypostauthor-dark-rtl.png
  26. BIN images/comment-arrow-bypostauthor-dark.png
  27. BIN images/comment-arrow-bypostauthor-rtl.png
  28. BIN images/comment-arrow-bypostauthor.png
  29. BIN images/comment-arrow-dark-rtl.png
  30. BIN images/comment-arrow-dark.png
  31. BIN images/comment-arrow-rtl.png
  32. BIN images/comment-arrow.png
  33. BIN images/comment-bubble-dark-rtl.png
  34. BIN images/comment-bubble-dark.png
  35. BIN images/comment-bubble-rtl.png
  36. BIN images/comment-bubble.png
  37. BIN images/headers/chessboard-thumbnail.jpg
  38. BIN images/headers/chessboard.jpg
  39. BIN images/headers/hanoi-thumbnail.jpg
  40. BIN images/headers/hanoi.jpg
  41. BIN images/headers/lanterns-thumbnail.jpg
  42. BIN images/headers/lanterns.jpg
  43. BIN images/headers/pine-cone-thumbnail.jpg
  44. BIN images/headers/pine-cone.jpg
  45. BIN images/headers/shore-thumbnail.jpg
  46. BIN images/headers/shore.jpg
  47. BIN images/headers/trolley-thumbnail.jpg
  48. BIN images/headers/trolley.jpg
  49. BIN images/headers/wheel-thumbnail.jpg
  50. BIN images/headers/wheel.jpg
  51. BIN images/headers/willow-thumbnail.jpg
  52. BIN images/headers/willow.jpg
  53. BIN images/search.png
  54. BIN images/wordpress.png
  55. BIN inc/images/content-sidebar.png
  56. BIN inc/images/content.png
  57. BIN inc/images/dark.png
  58. BIN inc/images/light.png
  59. BIN inc/images/sidebar-content.png
  60. +35 −0 inc/theme-options.css
  61. +52 −0 inc/theme-options.js
  62. +408 −0 inc/theme-options.php
  63. +166 −0 inc/widgets.php
  64. +52 −0 index.php
  65. +3 −0 js/html5.js
  66. +17 −0 js/showcase.js
  67. +654 −0 languages/twentyeleven.pot
  68. +281 −0 license.txt
  69. +29 −0 page.php
  70. +5 −0 readme.txt
  71. +582 −0 rtl.css
  72. BIN screenshot.png
  73. +57 −0 search.php
  74. +14 −0 searchform.php
  75. +220 −0 showcase.php
  76. +42 −0 sidebar-footer.php
  77. +26 −0 sidebar-page.php
  78. +36 −0 sidebar.php
  79. +32 −0 single.php
  80. +2,670 −0 style.css
  81. +65 −0 tag.php
No changes.
@@ -0,0 +1,48 @@
+<?php
+/**
+ * The template for displaying 404 pages (Not Found).
+ *
+ * @package WordPress
+ * @subpackage Twenty_Eleven
+ * @since Twenty Eleven 1.0
+ */
+
+get_header(); ?>
+
+ <div id="primary">
+ <div id="content" role="main">
+
+ <article id="post-0" class="post error404 not-found">
+ <header class="entry-header">
+ <h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn&rsquo;t it?', 'twentyeleven' ); ?></h1>
+ </header>
+
+ <div class="entry-content">
+ <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching, or one of the links below, can help.', 'twentyeleven' ); ?></p>
+
+ <?php get_search_form(); ?>
+
+ <?php the_widget( 'WP_Widget_Recent_Posts', array( 'number' => 10 ), array( 'widget_id' => '404' ) ); ?>
+
+ <div class="widget">
+ <h2 class="widgettitle"><?php _e( 'Most Used Categories', 'twentyeleven' ); ?></h2>
+ <ul>
+ <?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10 ) ); ?>
+ </ul>
+ </div>
+
+ <?php
+ /* translators: %1$s: smilie */
+ $archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'twentyeleven' ), convert_smilies( ':)' ) ) . '</p>';
+ the_widget( 'WP_Widget_Archives', array('count' => 0 , 'dropdown' => 1 ), array( 'after_title' => '</h2>'.$archive_content ) );
+ ?>
+
+ <?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>
+
+ </div><!-- .entry-content -->
+ </article><!-- #post-0 -->
+
+ </div><!-- #content -->
+ </div><!-- #primary -->
+
+<?php get_footer(); ?>
@@ -0,0 +1,72 @@
+<?php
+/**
+ * The template for displaying Archive pages.
+ *
+ * Used to display archive-type pages if nothing more specific matches a query.
+ * For example, puts together date-based pages if no date.php file exists.
+ *
+ * Learn more: http://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package WordPress
+ * @subpackage Twenty_Eleven
+ * @since Twenty Eleven 1.0
+ */
+
+get_header(); ?>
+
+ <section id="primary">
+ <div id="content" role="main">
+
+ <?php if ( have_posts() ) : ?>
+
+ <header class="page-header">
+ <h1 class="page-title">
+ <?php if ( is_day() ) : ?>
+ <?php printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' ); ?>
+ <?php elseif ( is_month() ) : ?>
+ <?php printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( 'F Y' ) . '</span>' ); ?>
+ <?php elseif ( is_year() ) : ?>
+ <?php printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( 'Y' ) . '</span>' ); ?>
+ <?php else : ?>
+ <?php _e( 'Blog Archives', 'twentyeleven' ); ?>
+ <?php endif; ?>
+ </h1>
+ </header>
+
+ <?php twentyeleven_content_nav( 'nav-above' ); ?>
+
+ <?php /* Start the Loop */ ?>
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <?php
+ /* Include the Post-Format-specific template for the content.
+ * If you want to overload this in a child theme then include a file
+ * called content-___.php (where ___ is the Post Format name) and that will be used instead.
+ */
+ get_template_part( 'content', get_post_format() );
+ ?>
+
+ <?php endwhile; ?>
+
+ <?php twentyeleven_content_nav( 'nav-below' ); ?>
+
+ <?php else : ?>
+
+ <article id="post-0" class="post no-results not-found">
+ <header class="entry-header">
+ <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
+ </header><!-- .entry-header -->
+
+ <div class="entry-content">
+ <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
+ <?php get_search_form(); ?>
+ </div><!-- .entry-content -->
+ </article><!-- #post-0 -->
+
+ <?php endif; ?>
+
+ </div><!-- #content -->
+ </section><!-- #primary -->
+
+<?php get_sidebar(); ?>
+<?php get_footer(); ?>
@@ -0,0 +1,89 @@
+<?php
+/**
+ * The template for displaying Author Archive pages.
+ *
+ * @package WordPress
+ * @subpackage Twenty_Eleven
+ * @since Twenty Eleven 1.0
+ */
+
+get_header(); ?>
+
+ <section id="primary">
+ <div id="content" role="main">
+
+ <?php if ( have_posts() ) : ?>
+
+ <?php
+ /* Queue the first post, that way we know
+ * what author we're dealing with (if that is the case).
+ *
+ * We reset this later so we can run the loop
+ * properly with a call to rewind_posts().
+ */
+ the_post();
+ ?>
+
+ <header class="page-header">
+ <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyeleven' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
+ </header>
+
+ <?php
+ /* Since we called the_post() above, we need to
+ * rewind the loop back to the beginning that way
+ * we can run the loop properly, in full.
+ */
+ rewind_posts();
+ ?>
+
+ <?php twentyeleven_content_nav( 'nav-above' ); ?>
+
+ <?php
+ // If a user has filled out their description, show a bio on their entries.
+ if ( get_the_author_meta( 'description' ) ) : ?>
+ <div id="author-info">
+ <div id="author-avatar">
+ <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 60 ) ); ?>
+ </div><!-- #author-avatar -->
+ <div id="author-description">
+ <h2><?php printf( __( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2>
+ <?php the_author_meta( 'description' ); ?>
+ </div><!-- #author-description -->
+ </div><!-- #entry-author-info -->
+ <?php endif; ?>
+
+ <?php /* Start the Loop */ ?>
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <?php
+ /* Include the Post-Format-specific template for the content.
+ * If you want to overload this in a child theme then include a file
+ * called content-___.php (where ___ is the Post Format name) and that will be used instead.
+ */
+ get_template_part( 'content', get_post_format() );
+ ?>
+
+ <?php endwhile; ?>
+
+ <?php twentyeleven_content_nav( 'nav-below' ); ?>
+
+ <?php else : ?>
+
+ <article id="post-0" class="post no-results not-found">
+ <header class="entry-header">
+ <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
+ </header><!-- .entry-header -->
+
+ <div class="entry-content">
+ <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
+ <?php get_search_form(); ?>
+ </div><!-- .entry-content -->
+ </article><!-- #post-0 -->
+
+ <?php endif; ?>
+
+ </div><!-- #content -->
+ </section><!-- #primary -->
+
+<?php get_sidebar(); ?>
+<?php get_footer(); ?>
@@ -0,0 +1,65 @@
+<?php
+/**
+ * The template for displaying Category Archive pages.
+ *
+ * @package WordPress
+ * @subpackage Twenty_Eleven
+ * @since Twenty Eleven 1.0
+ */
+
+get_header(); ?>
+
+ <section id="primary">
+ <div id="content" role="main">
+
+ <?php if ( have_posts() ) : ?>
+
+ <header class="page-header">
+ <h1 class="page-title"><?php
+ printf( __( 'Category Archives: %s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' );
+ ?></h1>
+
+ <?php
+ $category_description = category_description();
+ if ( ! empty( $category_description ) )
+ echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
+ ?>
+ </header>
+
+ <?php twentyeleven_content_nav( 'nav-above' ); ?>
+
+ <?php /* Start the Loop */ ?>
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <?php
+ /* Include the Post-Format-specific template for the content.
+ * If you want to overload this in a child theme then include a file
+ * called content-___.php (where ___ is the Post Format name) and that will be used instead.
+ */
+ get_template_part( 'content', get_post_format() );
+ ?>
+
+ <?php endwhile; ?>
+
+ <?php twentyeleven_content_nav( 'nav-below' ); ?>
+
+ <?php else : ?>
+
+ <article id="post-0" class="post no-results not-found">
+ <header class="entry-header">
+ <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
+ </header><!-- .entry-header -->
+
+ <div class="entry-content">
+ <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
+ <?php get_search_form(); ?>
+ </div><!-- .entry-content -->
+ </article><!-- #post-0 -->
+
+ <?php endif; ?>
+
+ </div><!-- #content -->
+ </section><!-- #primary -->
+
+<?php get_sidebar(); ?>
+<?php get_footer(); ?>
Oops, something went wrong. Retry.

0 comments on commit 509c1c0

Please sign in to comment.