Skip to content
Browse files

first commit

  • Loading branch information...
0 parents commit dc8bb52dbadefae0c8c34cbdebad24c791e7191d @andrewspittle committed
Showing with 1,090 additions and 0 deletions.
  1. +13 −0 404.php
  2. +39 −0 archive.php
  3. +9 −0 attachment.php
  4. +64 −0 comments.php
  5. +12 −0 footer.php
  6. +85 −0 functions.php
  7. +53 −0 header.php
  8. +10 −0 index.php
  9. +76 −0 loop-attachment.php
  10. +19 −0 loop-page.php
  11. +39 −0 loop-single.php
  12. +115 −0 loop.php
  13. +9 −0 page.php
  14. BIN screenshot.png
  15. +25 −0 search.php
  16. +6 −0 searchform.php
  17. +9 −0 single.php
  18. +507 −0 style.css
13 404.php
@@ -0,0 +1,13 @@
+<?php get_header(); ?>
+
+ <div id="content">
+
+ <h2><a href="/"><?php bloginfo('name'); ?></a> : <b>not found</b></h2>
+<br>
+<br>
+Our search is lonely,<br>
+as futile as this lost page<br>
+Let's <a href="<?php echo get_option('home'); ?>/">go home</a> instead.
+ </div>
+
+<?php get_footer(); ?>
39 archive.php
@@ -0,0 +1,39 @@
+<?php get_header(); ?>
+
+ <div id="content" role="main">
+
+<?php
+ /* Queue the first post, that way we know
+ * what date 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().
+ */
+ if ( have_posts() )
+ the_post();
+?>
+
+ <h1 class="page-title">
+<?php if ( is_day() ) : ?>
+ <?php printf( __( 'Daily Archives: <span>%s</span>', 'mnmlist' ), get_the_date() ); ?>
+<?php elseif ( is_month() ) : ?>
+ <?php printf( __( 'Monthly Archives: <span>%s</span>', 'mnmlist' ), get_the_date( 'F Y' ) ); ?>
+<?php elseif ( is_year() ) : ?>
+ <?php printf( __( 'Yearly Archives: <span>%s</span>', 'mnmlist' ), get_the_date( 'Y' ) ); ?>
+<?php elseif ( is_category() ) : ?>
+ <?php printf( __( 'Category Archives: %s', 'mnmlist' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?>
+<?php elseif ( is_author() ) : ?>
+ <?php printf( __( 'Author Archives: %s', 'mnmlist' ), get_the_author() ); ?>
+<?php else : ?>
+ <?php _e( 'Blog Archives', 'mnmlist' ); ?>
+<?php endif; ?>
+ </h1>
+
+<?php
+ rewind_posts();
+ get_template_part( 'loop', 'archive' );
+?>
+
+ </div><!-- #content -->
+
+<?php get_footer(); ?>
9 attachment.php
@@ -0,0 +1,9 @@
+<?php get_header(); ?>
+
+ <div id="content" role="main">
+
+ <?php get_template_part( 'loop', 'attachment' ); ?>
+
+ </div><!-- #content -->
+
+<?php get_footer(); ?>
64 comments.php
@@ -0,0 +1,64 @@
+ <div id="comments">
+<?php if ( post_password_required() ) : ?>
+ <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'mnmlist' ); ?></p>
+ </div><!-- #comments -->
+<?php
+ /* Stop the rest of comments.php from being processed,
+ * but don't kill the script entirely -- we still have
+ * to fully load the template.
+ */
+ return;
+ endif;
+?>
+
+<?php
+ // You can start editing here -- including this comment!
+?>
+
+<?php if ( have_comments() ) : ?>
+ <h3 id="comments-title"><?php
+ printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'mnmlist' ),
+ number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
+ ?></h3>
+
+<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
+ <div class="navigation">
+ <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'mnmlist' ) ); ?></div>
+ <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'mnmlist' ) ); ?></div>
+ </div> <!-- .navigation -->
+<?php endif; // check for comment navigation ?>
+
+ <ol class="commentlist">
+ <?php
+ /* Loop through and list the comments. Tell wp_list_comments()
+ * to use mnmlist_comment() to format the comments.
+ * If you want to overload this in a child theme then you can
+ * define mnmlist_comment() and that will be used instead.
+ * See mnmlist_comment() in mnmlist/functions.php for more.
+ */
+ wp_list_comments( array( 'callback' => 'mnmlist_comment' ) );
+ ?>
+ </ol>
+
+<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
+ <div class="navigation">
+ <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'mnmlist' ) ); ?></div>
+ <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'mnmlist' ) ); ?></div>
+ </div><!-- .navigation -->
+<?php endif; // check for comment navigation ?>
+
+<?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?
+ */
+ if ( ! comments_open() ) :
+?>
+ <p class="nocomments"><?php _e( 'Comments are closed.', 'mnmlist' ); ?></p>
+<?php endif; // end ! comments_open() ?>
+
+<?php endif; // end have_comments() ?>
+
+<?php comment_form(); ?>
+
+</div><!-- #comments -->
12 footer.php
@@ -0,0 +1,12 @@
+<div id="footer">
+ <ul>
+ <?php wp_list_pages('depth=1&title_li='); ?>
+ </ul>
+ <?php get_search_form(); ?>
+</div>
+</div>
+
+<?php wp_footer(); ?>
+
+</body>
+</html>
85 functions.php
@@ -0,0 +1,85 @@
+<?php
+if ( ! isset( $content_width ) )
+ $content_width = 560;
+
+/** Tell WordPress to run mnmlist_setup() when the 'after_setup_theme' hook is run. */
+add_action( 'after_setup_theme', 'mnmlist_setup' );
+
+if ( ! function_exists( 'mnmlist_setup' ) ):
+function mnmlist_setup() {
+
+ // Post Format support. You can also use the legacy "gallery" or "asides" (note the plural) categories.
+ add_theme_support( 'post-formats', array( 'aside', 'gallery', 'status' ) );
+
+}
+endif;
+
+/**
+ * Remove inline styles printed when the gallery shortcode is used.
+ */
+add_filter( 'use_default_gallery_style', '__return_false' );
+
+/**
+ * Deprecated way to remove inline styles printed when the gallery shortcode is used.
+ *
+ * This function is no longer needed or used. Use the use_default_gallery_style
+ * filter instead, as seen above.
+ *
+ */
+function mnmlist_remove_gallery_css( $css ) {
+ return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css );
+}
+// Backwards compatibility with WordPress 3.0.
+if ( version_compare( $GLOBALS['wp_version'], '3.1', '<' ) )
+ add_filter( 'gallery_style', 'mnmlist_remove_gallery_css' );
+
+if ( ! function_exists( 'mnmlist_comment' ) ) :
+function mnmlist_comment( $comment, $args, $depth ) {
+ $GLOBALS['comment'] = $comment;
+ switch ( $comment->comment_type ) :
+ case '' :
+ ?>
+ <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
+ <div id="comment-<?php comment_ID(); ?>">
+ <div class="comment-author vcard">
+ <?php echo get_avatar( $comment, 40 ); ?>
+ <?php printf( __( '%s <span class="says">says:</span>', 'mnmlist' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
+ </div><!-- .comment-author .vcard -->
+ <?php if ( $comment->comment_approved == '0' ) : ?>
+ <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'mnmlist' ); ?></em>
+ <br />
+ <?php endif; ?>
+
+ <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
+ <?php
+ /* translators: 1: date, 2: time */
+ printf( __( '%1$s at %2$s', 'mnmlist' ), get_comment_date(), get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'mnmlist' ), ' ' );
+ ?>
+ </div><!-- .comment-meta .commentmetadata -->
+
+ <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 -->
+ </div><!-- #comment-## -->
+
+ <?php
+ break;
+ case 'pingback' :
+ case 'trackback' :
+ ?>
+ <li class="post pingback">
+ <p><?php _e( 'Pingback:', 'mnmlist' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'mnmlist' ), ' ' ); ?></p>
+ <?php
+ break;
+ endswitch;
+}
+endif;
+/* Props Noel http://blog.noel.io/tweet-this-wordpress-function/ */
+function tweet_this() {
+ global $post;
+ $tweet = sprintf( __('Currently reading %1$s %2$s'), $post->post_title, wp_get_shortlink() );
+ echo '<a class="tweethis" href="http://twitter.com/home?status=' . urlencode( $tweet ) . '">Tweet this</a>';
+}
+?>
53 header.php
@@ -0,0 +1,53 @@
+<!DOCTYPE HTML>
+<html lang=en>
+
+<head profile="http://gmpg.org/xfn/11">
+<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
+
+<title><?php
+ /*
+ * Print the <title> tag based on what is being viewed.
+ */
+ global $page, $paged;
+
+ wp_title( '|', true, 'right' );
+
+ // Add the blog name.
+ bloginfo( 'name' );
+
+ // Add the blog description for the home/front page.
+ $site_description = get_bloginfo( 'description', 'display' );
+ if ( $site_description && ( is_home() || is_front_page() ) )
+ echo " | $site_description";
+
+ // Add a page number if necessary:
+ if ( $paged >= 2 || $page >= 2 )
+ echo ' | ' . sprintf( __( 'Page %s', 'mnmlist' ), max( $paged, $page ) );
+
+ ?></title>
+
+<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
+<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
+<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
+
+<?php
+ /* We add some JavaScript to pages with the comment form
+ * to support sites with threaded comments (when in use).
+ */
+ if ( is_singular() && get_option( 'thread_comments' ) )
+ wp_enqueue_script( 'comment-reply' );
+
+ /* Always have wp_head() just before the closing </head>
+ * tag of your theme, or you will break many plugins, which
+ * generally use this hook to add elements to <head> such
+ * as styles, scripts, and meta tags.
+ */
+ wp_head();
+?>
+</head>
+<body <?php body_class(); ?>>
+
+<div id="container">
+
+ <h1 id="site-title"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
+ <div id="site-description"><?php bloginfo( 'description' ); ?></div>
10 index.php
@@ -0,0 +1,10 @@
+<?php get_header(); ?>
+
+ <div id="content" role="main">
+
+ <?php get_template_part( 'loop', 'index' ); ?>
+
+ </div><!-- #content -->
+
+
+<?php get_footer(); ?>
76 loop-attachment.php
@@ -0,0 +1,76 @@
+<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
+
+ <?php if ( ! empty( $post->post_parent ) ) : ?>
+ <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php esc_attr( printf( __( 'Return to %s', 'mnmlist' ), get_the_title( $post->post_parent ) ) ); ?>" rel="gallery"><?php
+ /* translators: %s - title of parent post */
+ printf( __( '<span class="meta-nav">&larr;</span> %s', 'mnmlist' ), get_the_title( $post->post_parent ) );
+ ?></a></p>
+ <?php endif; ?>
+
+ <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+ <h2 class="entry-title"><?php the_title(); ?></h2>
+
+ <div class="entry-meta">
+ <?php
+ printf( __( '<span class="%1$s">Published</span> %2$s', 'mnmlist' ),
+ 'meta-prep meta-prep-entry-date',
+ sprintf( '<span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span>',
+ esc_attr( get_the_time() ),
+ get_the_date()
+ )
+ );
+ if ( wp_attachment_is_image() ) {
+ echo ' <span class="meta-sep">|</span> ';
+ $metadata = wp_get_attachment_metadata();
+ printf( __( 'Full size is %s pixels', 'mnmlist' ),
+ sprintf( '<a href="%1$s" title="%2$s">%3$s &times; %4$s</a>',
+ wp_get_attachment_url(),
+ esc_attr( __( 'Link to full-size image', 'mnmlist' ) ),
+ $metadata['width'],
+ $metadata['height']
+ )
+ );
+ }
+ ?>
+ </div><!-- .entry-meta -->
+
+ <div class="entry-content">
+ <div class="entry-attachment">
+<?php if ( wp_attachment_is_image() ) :
+ $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
+ foreach ( $attachments as $k => $attachment ) {
+ if ( $attachment->ID == $post->ID )
+ break;
+ }
+ $k++;
+ // If there is more than 1 image attachment in a gallery
+ if ( count( $attachments ) > 1 ) {
+ if ( isset( $attachments[ $k ] ) )
+ // get the URL of the next image attachment
+ $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
+ else
+ // or get the URL of the first image attachment
+ $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
+ } else {
+ // or, if there's only 1 image attachment, get the URL of the image
+ $next_attachment_url = wp_get_attachment_url();
+ }
+?>
+ <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
+ $attachment_width = apply_filters( 'mnmlist_attachment_size', 540 );
+ $attachment_height = apply_filters( 'mnmlist_attachment_height', 540 );
+ echo wp_get_attachment_image( $post->ID, array( $attachment_width, $attachment_height ) ); // filterable image width with, essentially, no limit for image height.
+ ?></a></p>
+
+ <div id="nav-below" class="navigation">
+ <div class="nav-previous"><?php previous_image_link( false, '&larr; Previous image' ); ?></div>
+ <div class="nav-next"><?php next_image_link( false, 'Next image &rarr;' ); ?></div>
+ </div><!-- #nav-below -->
+<?php else : ?>
+ <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>
+<?php endif; ?>
+ </div><!-- .entry-attachment -->
+ </div><!-- .entry-content -->
+ </div><!-- #post-## -->
+
+<?php endwhile; // end of the loop. ?>
19 loop-page.php
@@ -0,0 +1,19 @@
+<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
+
+ <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+ <h2 class="entry-title"><?php the_title(); ?></h2>
+
+ <div class="entry">
+
+ <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
+
+ <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
+
+ </div>
+ </div>
+
+ <?php comments_template( '', true ); ?>
+
+<?php endwhile; ?>
+
+<span class="edit-link"><?php edit_post_link('Edit', '<p>', '</p>'); ?></span>
39 loop-single.php
@@ -0,0 +1,39 @@
+<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
+
+ <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+
+ <h2 class="entry-title"><?php the_title(); ?></h2>
+ <div class="entry-meta">
+ <p>Posted on <?php the_time('F j, Y'); ?> <span class="meta-sep">|</span> <?php the_category(', ') ?> <span class="meta-sep">|</span> <?php tweet_this(); ?></p>
+ </div>
+
+ <div class="entry">
+
+ <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
+
+ <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
+
+ <span class="edit-link"><?php edit_post_link('Edit', '<p>', '</p>'); ?></span>
+
+ <div id="entry-author-info">
+ <div id="author-avatar">
+ <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'mnmlist_author_bio_avatar_size', 60 ) ); ?>
+ </div><!-- #author-avatar -->
+ <div id="author-description">
+ <h2><?php printf( esc_attr__( 'About %s', 'mnmlist' ), get_the_author() ); ?></h2>
+ <?php the_author_meta( 'description' ); ?>
+ </div><!-- #author-description -->
+ </div><!-- #entry-author-info -->
+
+ </div>
+
+ <div id="nav-below" class="navigation">
+ <div class="nav-previous"><?php previous_post_link( 'Previously: %link', '<span class="meta-nav">' . _x( '', 'Previous post link', 'mnmlist' ) . '</span> %title' ); ?></div>
+ <div class="nav-next"><?php next_post_link( 'Next: %link', '<span class="meta-nav">' . _x( '', 'Next post link', 'mnmlist' ) . '</span> %title' ); ?></div>
+ </div><!-- #nav-below -->
+
+ </div>
+
+ <?php comments_template( '', true ); ?>
+
+<?php endwhile; // end of the loop. ?>
115 loop.php
@@ -0,0 +1,115 @@
+<?php /* Display navigation to next/previous pages when applicable */ ?>
+
+<?php /* If there are no posts to display, such as an empty archive page */ ?>
+<?php if ( ! have_posts() ) : ?>
+ <div id="post-0" class="post error404 not-found">
+ <h1 class="entry-title"><?php _e( 'Not Found', 'mnmlist' ); ?></h1>
+ <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.', 'mnmlist' ); ?></p>
+ <?php get_search_form(); ?>
+ </div><!-- .entry-content -->
+ </div><!-- #post-0 -->
+<?php endif; ?>
+
+<?php while ( have_posts() ) : the_post(); ?>
+
+<?php /* How to display posts of the Gallery format. The gallery category is the old way. */ ?>
+
+ <?php if ( ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) || in_category( _x( 'gallery', 'gallery category slug', 'mnmlist' ) ) ) : ?>
+ <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+
+ <h2 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
+
+ <div class="entry">
+ <?php
+ $images = get_children( array( 'post_parent' => $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' );
+ ?>
+ <div class="gallery-thumb">
+ <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a>
+ </div><!-- .gallery-thumb -->
+ <p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'mnmlist' ),
+ 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'mnmlist' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
+ number_format_i18n( $total_images )
+ ); ?></em></p>
+ <?php endif; ?>
+
+ <?php the_excerpt('Read more &raquo;'); ?>
+ </div><!-- .entry -->
+
+ <div class="entry-meta">
+ <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Posted on <?php the_time('F j, Y'); ?></a></p>
+ </div>
+
+ </div><!-- #post-ID -->
+
+<?php /* How to display posts of the Aside format. The asides category is the old way. */ ?>
+
+ <?php elseif ( ( function_exists( 'get_post_format' ) && 'aside' == get_post_format( $post->ID ) ) || in_category( _x( 'asides', 'asides category slug', 'mnmlist' ) ) ) : ?>
+ <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+
+ <div class="entry">
+ <?php the_content('Read more &raquo;'); ?>
+ </div><!-- .entry -->
+
+ <div class="entry-meta">
+ <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Posted on <?php the_time('F j, Y'); ?></a></p>
+ </div>
+
+ </div><!-- #post-ID -->
+
+<?php /* How to display posts of the Status format. The statuses category is the old way. */ ?>
+
+ <?php elseif ( 'status' == get_post_format( $post->ID ) || in_category( _x('statuses', 'statuses category slug', 'formatize' ) ) ) : ?>
+ <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+
+ <div class="status-wrapper">
+ <div class="author-avatar">
+ <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'formatize_author_bio_avatar_size', 60 ) ); ?>
+ </div><!-- .author-avatar -->
+
+ <div class="entry">
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'formatize' ) ); ?>
+ </div><!-- .entry-content -->
+ <div style="clear:both"></div>
+ </div>
+
+ <div class="entry-meta">
+ <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Posted on <?php the_time('F j, Y'); ?></a></p>
+ </div>
+
+ </div><!-- #post-## -->
+
+<?php /* How to display all other posts. */ ?>
+
+ <?php else : ?>
+ <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+
+ <h2 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
+
+ <div class="entry">
+ <?php the_content('Read more &raquo;'); ?>
+ </div><!-- .entry -->
+
+ <div class="entry-meta">
+ <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Posted on <?php the_time('F j, Y'); ?></a></p>
+ </div>
+
+ </div><!-- #post-ID -->
+
+ <?php comments_template( '', true ); ?>
+
+ <?php endif; // This was the if statement that broke the loop into three parts based on categories. ?>
+
+<?php endwhile; // End the loop. Whew. ?>
+
+<?php /* Display navigation to next/previous pages when applicable */ ?>
+<?php if ( $wp_query->max_num_pages > 1 ) : ?>
+ <div id="nav-below" class="navigation">
+ <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'mnmlist' ) ); ?></div>
+ <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'mnmlist' ) ); ?></div>
+ </div><!-- #nav-below -->
+<?php endif; ?>
9 page.php
@@ -0,0 +1,9 @@
+<?php get_header(); ?>
+
+ <div id="content" role="main">
+
+ <?php get_template_part( 'loop', 'page' ); ?>
+
+ </div>
+
+<?php get_footer(); ?>
BIN screenshot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 search.php
@@ -0,0 +1,25 @@
+<?php get_header(); ?>
+
+ <div id="content" role="main">
+
+<?php if ( have_posts() ) : ?>
+ <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
+ <?php
+ /* Run the loop for the search to output the results.
+ * If you want to overload this in a child theme then include a file
+ * called loop-search.php and that will be used instead.
+ */
+ get_template_part( 'loop', 'index' );
+ ?>
+<?php else : ?>
+ <div id="post-0" class="post no-results not-found">
+ <h2 class="entry-title"><?php _e( 'Nothing Found', 'twentyten' ); ?></h2>
+ <div class="entry-content">
+ <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyten' ); ?></p>
+ <?php get_search_form(); ?>
+ </div><!-- .entry-content -->
+ </div><!-- #post-0 -->
+<?php endif; ?>
+ </div><!-- #content -->
+
+<?php get_footer(); ?>
6 searchform.php
@@ -0,0 +1,6 @@
+<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
+ <div>
+ <input type="text" value="" name="s" id="s" />
+ <input type="submit" id="searchsubmit" value="Search" />
+ </div>
+</form>
9 single.php
@@ -0,0 +1,9 @@
+<?php get_header(); ?>
+
+ <div id="content" role="main">
+
+ <?php get_template_part( 'loop', 'single' ); ?>
+
+ </div>
+
+<?php get_footer(); ?>
507 style.css
@@ -0,0 +1,507 @@
+/*
+Theme Name: Andrew Spittle
+Theme URI: http://andrewspittle.net/projects
+Description: A very clean minimalist theme.
+Author: Andrew Spittle
+Author URI: http://andrewspittle.net
+.
+This theme is uncopyrighted, free, and offered as is.
+.
+*/
+
+#container {
+ margin: 0 auto;
+ padding-top: 40px;
+ width: 540px;
+}
+
+body {
+ background:#fff;
+ font-family: Georgia, Times, serif;
+ font-size: 16px;
+ line-height: 1.5em;
+ margin:0px;
+}
+
+/* Header Styles */
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
+}
+h1 {
+ color: #333;
+ font-size: 1.2em;
+ font-weight: bold;
+ line-height: 22px;
+}
+h2 {
+ color: #333;
+ font-size: 1.2em;
+ font-weight: normal;
+ line-height: 20px;
+}
+h3 {
+ color: #000000;
+ font-size: 16px;
+}
+h4 {
+ color: #000000;
+ font-size: 14px;
+}
+h5 {
+ color: #000000;
+ font-size: 12px;
+}
+#site-title {
+ float: left;
+}
+#site-description {
+ color: #666;
+ float: left;
+ line-height: 22px;
+ margin-left: 20px;
+ margin-top: 15px;
+ font-style: italic;
+ font-size: 14px;
+}
+.entry-title {
+ font-weight: bold;
+}
+.author .page-title,
+.archive .page-title,
+.tag .page-title,
+.search .page-title {
+ color: #666;
+ font-weight: normal;
+ margin-bottom: 20px;
+}
+
+img {
+ border:none;
+}
+a img {
+ border:none;
+}
+blockquote {
+ border-left: 1px solid #A5ABAB;
+ margin: 0 0 0 20px;
+ padding: 0 12px 0 12px;
+}
+blockquote p {
+ color: #3d3d3d;
+}
+
+/* Text Styles */
+p {
+ color: #000000;
+ line-height: 1.5em;
+ margin: 12px 0;
+}
+pre {
+ font-family: "Courier 10 Pitch", Courier, monospace;
+}
+code {
+ font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
+}
+
+a {
+ text-decoration: none;
+}
+a:link {
+ color: #333;
+ text-decoration: none;
+}
+a:visited {
+ color: #333;
+ text-decoration: none;
+}
+a:hover {
+ color: #ba2000;
+ text-decoration: none;
+}
+
+ol,
+ul {
+ padding: .5em 0em 0em 3.2em;
+}
+li {
+ line-height: 1.5em;
+ padding: 6px 0 0 0;
+}
+
+/* Content Styles */
+#content {
+ float: right;
+ margin-bottom: 24px;
+ margin-top: 40px;
+ width: 540px;
+}
+#content pre,
+#content kbd,
+#content tt,
+#content var {
+ font-size: 14px;
+ line-height: 21px;
+}
+#content code {
+ font-size: 13px;
+}
+.entry a:link {
+ color: #303030;
+ text-decoration: none;
+ border-width: 0 0 1px 0;
+ border-style: none none solid none;
+ border-color: #C0C0C0;
+}
+.entry a:visited {
+ color: #303030;
+ text-decoration: none;
+ border-width: 0 0 1px 0;
+ border-style: none none solid none;
+ border-color: #C0C0C0;
+}
+.entry a:hover {
+ color: #ba2000;
+ border-width: 0 0 1px 0;
+ border-style: none none solid none;
+ border-color: #C0C0C0;
+ text-decoration: none;
+}
+#container #content .entry img {
+ border: navajowhite;
+}
+.post {
+ margin-bottom: 40px;
+}
+.post .entry-meta p {
+ clear: both;
+ color: #999;
+ font-size: 14px;
+}
+.post .entry-meta a {
+ color: #999;
+ font-size: 14px;
+}
+.post .entry-meta a:hover {
+ color: #ba2000;
+}
+#content .aligncenter a,
+#content .alignright a,
+#content .alignleft a,
+#content .alignnone a {
+ border: none;
+}
+img.size-auto,
+img.size-full,
+img.size-large,
+img.size-medium,
+.attachment img {
+ max-width: 100%; /* When images are too wide for containing element, force them to fit. */
+ height: auto; /* Override height to match resized width for correct aspect ratio. */
+}
+.alignleft,
+img.alignleft {
+ display: inline;
+ float: left;
+ margin-right: 24px;
+ margin-top: 4px;
+}
+.alignright,
+img.alignright {
+ display: inline;
+ float: right;
+ margin-left: 24px;
+ margin-top: 4px;
+}
+.aligncenter,
+img.aligncenter {
+ clear: both;
+ display: block;
+ margin-left: 0;
+ margin-right: 0;
+}
+img.alignleft,
+img.alignright,
+img.aligncenter {
+ margin-bottom: 12px;
+}
+.wp-caption {
+ line-height: 18px;
+ margin-bottom: 20px;
+ max-width: 540px !important; /* prevent too-wide images from breaking layout */
+ text-align: right;
+}
+.wp-caption img {
+ margin: 5px 0 0;
+}
+.wp-caption p.wp-caption-text {
+ border-bottom: 1px solid #e1e1e1;
+ color: #888;
+ font-size: 13px;
+ margin: 5px 0 5px 5px;
+ padding-bottom: 5px;
+}
+
+/* Aside Styles */
+.format-aside .entry p a,
+.category-aside .entry p a {
+ font-weight: bold;
+}
+.single .format-aside p a,
+.single .category-aside .entry p a {
+ font-weight: normal;
+}
+
+/* Status Styles */
+.format-status .entry p,
+.category-statuses .entry p {
+ background-color: #f1f1f1;
+ float: right;
+ margin-top: 0;
+ padding: 5px;
+ width: 455px;
+}
+.format-status .author-avatar,
+.category-statuses .author-avatar {
+ float: left;
+}
+.single .format-status .entry p {
+ background:none;
+ float: none;
+ margin: 12 0;
+ padding: 0;
+}
+
+/* Gallery Styles */
+#content .entry .gallery-thumb a,
+#content .entry .gallery-icon a {
+ border: none;
+}
+.format-gallery .entry .gallery-thumb,
+.category-gallery .entry .gallery-thumb {
+ float: left;
+ margin-right: 20px;
+}
+.entry-attachment .nav-previous,
+.home .nav-previous,
+.paged .nav-previous {
+ float: left;
+ width: 50%;
+}
+.entry-attachment .nav-next,
+.home .nav-next,
+.paged .nav-next {
+ float: right;
+ text-align: right;
+ width: 50%;
+}
+.gallery {
+ margin: 0 auto 18px;
+}
+.gallery .gallery-item {
+ float: left;
+ margin-top: 0;
+ text-align: center;
+ width: 33%;
+}
+.gallery-columns-2 .gallery-item {
+ width: 50%;
+}
+.gallery-columns-4 .gallery-item {
+ width: 25%;
+}
+.gallery img {
+ border: 2px solid #cfcfcf;
+}
+.gallery-columns-2 .attachment-medium {
+ max-width: 92%;
+ height: auto;
+}
+.gallery-columns-4 .attachment-thumbnail {
+ max-width: 84%;
+ height: auto;
+}
+.gallery .gallery-caption {
+ color: #888;
+ font-size: 12px;
+ margin: 0 0 12px;
+}
+.gallery dl {
+ margin: 0;
+}
+.gallery img {
+ border: none;
+}
+.gallery br+br {
+ display: none;
+}
+#content .attachment img {/* single attachment images should be centered */
+ display: block;
+ margin: 0 auto;
+}
+
+/* Single Post Styles */
+#entry-author-info {
+ border-top: 1px solid #A5ABAB;
+ margin-top: 20px;
+ padding-top: 30px;
+}
+#author-avatar {
+ float: left;
+ margin-right: 20px;
+}
+#author-description h2 {
+ font-size: 14px;
+ font-weight: bold;
+ margin-top: 0;
+ margin-bottom: 0;
+}
+#entry-author-info #author-description {
+ color: #666;
+ font-size: 14px;
+}
+#nav-below {
+ border-top: 1px solid #A5ABAB;
+ color: #666;
+ font-size: 14px;
+ margin-top: 40px;
+ padding-top: 20px;
+}
+
+/* Page Styles */
+.page {
+ margin-bottom: 40px;
+}
+
+/* Comment Styles */
+#comments {
+ border-top: 1px solid #A5ABAB;
+ margin-top: -20px;
+}
+.page #comments {
+ border: none;
+}
+.page .nocomments {
+ display: none;
+}
+.commentlist,
+.commentlist ul.children {
+ list-style-type: none;
+ padding: 0;
+}
+.commentlist ul.children li {
+ margin: ;
+ margin-top: 10px;
+ margin-bottom: 10px;
+}
+.commentlist li.comment {
+ margin: 0 0 20px;
+ padding: 0 0 0 54px;
+ position: relative;
+}
+.commentlist li:last-child {
+ margin-bottom: 0;
+}
+.commentlist .avatar {
+ position: absolute;
+ top: 4px;
+ left: 0;
+}
+.comment-author {
+}
+.comment-author cite {
+ color: #000;
+ font-style: normal;
+ font-weight: bold;
+}
+.comment-author cite a {
+ border-width: 0 0 1px 0;
+ border-style: none none solid none;
+ border-color: #C0C0C0;
+}
+.comment-author .says {
+ font-style: italic;
+}
+.comment .commentmetadata a {
+ color: #666;
+ font-size: 14px;
+}
+.comment .commentmetadata a:hover {
+ color: #ba2000;
+}
+.reply .comment-reply-link {
+ color: #666;
+ font-size: 13px;
+ font-weight: bold;
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
+}
+#commentform input,
+#commentform textarea {
+ font-size: 12px;
+ line-height: 18px;
+ width: 100%;
+}
+#commentform label {
+ color: #666;
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
+ font-size: 13px;
+}
+#commentform .required {
+ color: #ba2000;
+}
+#commentform .form-allowed-tags,
+#commentform .form-allowed-tags code {
+ color: #666;
+ font-size: 11px;
+}
+#commentform #submit {
+ color: #333;
+ font-size: 14px;
+ width: auto;
+}
+
+/* Footer Styles */
+#footer {
+ background:#fff;
+ border-top: 1px solid #A5ABAB;
+ clear: both;
+ min-height: 80px;
+ width: 100%;
+}
+#footer p {
+ padding:14px 0;
+ margin: 0;
+ color: #666;
+}
+#footer a {
+ color: #666;
+ text-decoration: none;
+}
+#footer a:hover {
+ color: #ba2000;
+ text-decoration: none;
+}
+#footer ul {
+ float: left;
+ padding: 0;
+ width: 300px;
+}
+#footer li {
+ display: inline;
+ list-style-type: none;
+ margin-right: 5px;
+ margin-left: 5px;
+ font-size: 14px;
+}
+#footer #searchform {
+ border-left: 1px solid #A5ABAB;
+ float: right;
+ padding-bottom: 20px;
+ padding-left: 10px;
+ padding-top: 16px;
+ width: 220px;
+}

0 comments on commit dc8bb52

Please sign in to comment.
Something went wrong with that request. Please try again.