Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 446933ca5cf90dbad747dc9e6fdd712022fd21bf @randyjensen committed Nov 19, 2010
Showing with 1,702 additions and 0 deletions.
  1. +44 −0 404.php
  2. 0 README
  3. +36 −0 archive.php
  4. +26 −0 author.php
  5. +26 −0 category.php
  6. +128 −0 comments.php
  7. +38 −0 footer.php
  8. +34 −0 full-width-page.php
  9. +147 −0 functions.php
  10. +79 −0 header.php
  11. +105 −0 image.php
  12. BIN images/robot.png
  13. +18 −0 index.php
  14. +166 −0 js/jquery-1.4.3.min.js
  15. +30 −0 js/modernizr-1.6.min.js
  16. +69 −0 loop.php
  17. +32 −0 page.php
  18. +15 −0 rtl.css
  19. BIN screenshot.png
  20. +39 −0 search.php
  21. +31 −0 sidebar.php
  22. +78 −0 single.php
  23. +531 −0 style.css
  24. +30 −0 tag.php
44 404.php
@@ -0,0 +1,44 @@
+<?php
+/**
+ * @package WordPress
+ * @subpackage themename
+ */
+
+get_header(); ?>
+
+ <div id="primary">
+ <div id="content">
+
+ <article id="post-0" class="post error404 not-found" role="article">
+ <header class="entry-header">
+ <h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn&rsquo;t it?', 'themename' ); ?></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.', 'themename' ); ?></p>
+
+ <?php get_search_form(); ?>
+
+ <?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
+
+ <div class="widget">
+ <h2 class="widgettitle"><?php _e( 'Most Used Categories', 'themename' ); ?></h2>
+ <ul>
+ <?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 'TRUE', 'title_li' => '', 'number' => '10' ) ); ?>
+ </ul>
+ </div>
+
+ <?php
+ $archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'themename' ), convert_smilies( ':)' ) ) . '</p>';
+ the_widget( 'WP_Widget_Archives', 'dropdown=1', "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 README
No changes.
@@ -0,0 +1,36 @@
+<?php
+/**
+ * @package WordPress
+ * @subpackage themename
+ */
+
+get_header(); ?>
+
+ <section id="primary" role="region">
+ <div id="content">
+
+ <?php the_post(); ?>
+
+ <header class="page-header">
+ <h1 class="page-title">
+ <?php if ( is_day() ) : ?>
+ <?php printf( __( 'Daily Archives: <span>%s</span>', 'themename' ), get_the_date() ); ?>
+ <?php elseif ( is_month() ) : ?>
+ <?php printf( __( 'Monthly Archives: <span>%s</span>', 'themename' ), get_the_date( 'F Y' ) ); ?>
+ <?php elseif ( is_year() ) : ?>
+ <?php printf( __( 'Yearly Archives: <span>%s</span>', 'themename' ), get_the_date( 'Y' ) ); ?>
+ <?php else : ?>
+ <?php _e( 'Blog Archives', 'themename' ); ?>
+ <?php endif; ?>
+ </h1>
+ </header>
+
+ <?php rewind_posts(); ?>
+
+ <?php get_template_part( 'loop', 'archive' ); ?>
+
+ </div><!-- #content -->
+ </section><!-- #primary -->
+
+<?php get_sidebar(); ?>
+<?php get_footer(); ?>
@@ -0,0 +1,26 @@
+<?php
+/**
+ * @package WordPress
+ * @subpackage themename
+ */
+
+get_header(); ?>
+
+ <section id="primary" role="region">
+ <div id="content">
+
+ <?php the_post(); ?>
+
+ <header class="page-header">
+ <h1 class="page-title author"><?php printf( __( 'Author Archives: <span class="vcard">%s</span>', 'themename' ), "<a class='url fn n' href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a>" ); ?></h1>
+ </header>
+
+ <?php rewind_posts(); ?>
+
+ <?php get_template_part( 'loop', 'author' ); ?>
+
+ </div><!-- #content -->
+ </section><!-- #primary -->
+
+<?php get_sidebar(); ?>
+<?php get_footer(); ?>
@@ -0,0 +1,26 @@
+<?php
+/**
+ * @package WordPress
+ * @subpackage themename
+ */
+
+get_header(); ?>
+
+ <section id="primary" role="region">
+ <div id="content">
+
+ <header class="page-header">
+ <h1 class="page-title"><?php
+ printf( __( 'Category Archives: %s', 'themename' ), '<span>' . single_cat_title( '', false ) . '</span>' );
+ ?></h1>
+
+ <?php $categorydesc = category_description(); if ( ! empty( $categorydesc ) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?>
+ </header>
+
+ <?php get_template_part( 'loop', 'category' ); ?>
+
+ </div><!-- #content -->
+ </section><!-- #primary -->
+
+<?php get_sidebar(); ?>
+<?php get_footer(); ?>
@@ -0,0 +1,128 @@
+<?php
+/**
+ * @package WordPress
+ * @subpackage themename
+ */
+
+if ( ! function_exists( 'toolbox_comment' ) ) :
+/**
+ * Template for comments and pingbacks.
+ *
+ * To override this walker in a child theme without modifying the comments template
+ * simply create your own toolbox_comment(), and that function will be used instead.
+ *
+ * Used as a callback by wp_list_comments() for displaying the comments.
+ *
+ * @since Toolbox 0.4
+ */
+function toolbox_comment( $comment, $args, $depth ) {
+ $GLOBALS['comment'] = $comment;
+ switch ( $comment->comment_type ) :
+ case '' :
+ ?>
+ <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
+ <article id="comment-<?php comment_ID(); ?>" class="comment" role="article">
+ <footer>
+ <div class="comment-author vcard">
+ <?php echo get_avatar( $comment, 40 ); ?>
+ <?php printf( __( '%s <span class="says">says:</span>', 'themename' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
+ </div><!-- .comment-author .vcard -->
+ <?php if ( $comment->comment_approved == '0' ) : ?>
+ <em><?php _e( 'Your comment is awaiting moderation.', 'themename' ); ?></em>
+ <br />
+ <?php endif; ?>
+
+ <div class="comment-meta commentmetadata">
+ <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time pubdate datetime="<?php comment_time( 'c' ); ?>">
+ <?php
+ /* translators: 1: date, 2: time */
+ printf( __( '%1$s at %2$s', 'themename' ), get_comment_date(), get_comment_time() ); ?>
+ </time></a>
+ <?php edit_comment_link( __( '(Edit)', 'themename' ), ' ' );
+ ?>
+ </div><!-- .comment-meta .commentmetadata -->
+ </footer>
+
+ <div class="comment-body"><?php comment_text(); ?></div>
+
+ <div class="reply">
+ <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
+ </div><!-- .reply -->
+ </article><!-- #comment-## -->
+
+ <?php
+ break;
+ case 'pingback' :
+ case 'trackback' :
+ ?>
+ <li class="post pingback">
+ <p><?php _e( 'Pingback:', 'themename' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'themename'), ' ' ); ?></p>
+ <?php
+ break;
+ endswitch;
+}
+endif; // ends check for toolbox_comment()
+
+?>
+
+ <div id="comments">
+ <?php if ( post_password_required() ) : ?>
+ <div class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'themename' ); ?></div>
+ </div><!-- .comments -->
+ <?php return;
+ endif;
+ ?>
+
+ <?php // You can start editing here -- including this comment! ?>
+
+ <?php if ( have_comments() ) : ?>
+ <h2 id="comments-title">
+ <?php
+ printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'themename' ),
+ number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
+ ?>
+ </h2>
+
+ <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
+ <nav id="comment-nav-above" role="article">
+ <h1 class="section-heading"><?php _e( 'Comment navigation', 'themename' ); ?></h1>
+ <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'themename' ) ); ?></div>
+ <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'themename' ) ); ?></div>
+ </nav>
+ <?php endif; // check for comment navigation ?>
+
+ <ol class="commentlist">
+ <?php wp_list_comments( array( 'callback' => 'toolbox_comment' ) ); ?>
+ </ol>
+
+ <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
+ <nav id="comment-nav-below" role="article">
+ <h1 class="section-heading"><?php _e( 'Comment navigation', 'themename' ); ?></h1>
+ <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'themename' ) ); ?></div>
+ <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'themename' ) ); ?></div>
+ </nav>
+ <?php endif; // check for comment navigation ?>
+
+ <?php else : // this is displayed if there are no comments so far ?>
+
+ <?php if ( comments_open() ) : // If comments are open, but there are no comments ?>
+
+ <?php else : // or, if we don't have comments:
+
+ /* If there are no comments and comments are closed,
+ * let's leave a little note, shall we?
+ * But only on posts! We don't really need the note on pages.
+ */
+ if ( ! comments_open() && ! is_page() ) :
+ ?>
+ <p class="nocomments"><?php _e( 'Comments are closed.', 'themename' ); ?></p>
+ <?php endif; // end ! comments_open() && ! is_page() ?>
+
+
+ <?php endif; ?>
+
+ <?php endif; ?>
+
+ <?php comment_form(); ?>
+
+</div><!-- #comments -->
@@ -0,0 +1,38 @@
+<?php
+/**
+ * @package WordPress
+ * @subpackage themename
+ */
+?>
+
+ </div><!-- #main -->
+
+ <footer id="colophon" role="contentinfo">
+ <div id="site-generator">
+ <small>&copy Copyright <?php echo date('Y') . " " . esc_attr( get_bloginfo( 'name', 'display' ) ); ?> <a href="http://wordpress.org/" title="<?php esc_attr_e( 'A Semantic Personal Publishing Platform', 'themename' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s.', 'themename' ), 'WordPress' ); ?></a></small>
+ <?php wp_nav_menu( array( 'theme_location' => 'footer' ) ); ?>
+ </div>
+ </footer><!-- #colophon -->
+</div><!-- #page -->
+
+<!-- Grab Google CDN's jQuery. Fall back to local if necessary -->
+<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
+<script>!window.jQuery && document.write(unescape('%3Cscript src="<?php bloginfo( 'template_directory' ); ?>/js/jquery-1.4.2.js"%3E%3C/script%3E'))</script>
+
+<?php wp_footer(); ?>
+
+<!-- asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
+ change the UA-XXXXX-X to be your site's ID -->
+<script>
+var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview']];
+ (function(d, t) {
+ var g = d.createElement(t),
+ s = d.getElementsByTagName(t)[0];
+ g.async = true;
+ g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ s.parentNode.insertBefore(g, s);
+ })(document, 'script');
+</script>
+
+</body>
+</html>
@@ -0,0 +1,34 @@
+<?php
+/**
+ * Template Name: Full-width, no sidebar
+ * Description: A full-width template with no sidebar
+ *
+ * @package WordPress
+ * @subpackage themename
+ */
+
+get_header(); ?>
+
+ <div id="primary" class="full-width">
+ <div id="content">
+
+ <?php the_post(); ?>
+
+ <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> role="article">
+ <header class="entry-header">
+ <h1 class="entry-title"><?php the_title(); ?></h1>
+ </header><!-- .entry-header -->
+
+ <div class="entry-content">
+ <?php the_content(); ?>
+ <?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'themename' ) . '&after=</div>' ); ?>
+ <?php edit_post_link( __( 'Edit', 'themename' ), '<span class="edit-link">', '</span>' ); ?>
+ </div><!-- .entry-content -->
+ </article><!-- #post-<?php the_ID(); ?> -->
+
+ <?php comments_template( '', true ); ?>
+
+ </div><!-- #content -->
+ </div><!-- #primary -->
+
+<?php get_footer(); ?>
Oops, something went wrong.

0 comments on commit 446933c

Please sign in to comment.