Permalink
Browse files

Bring in the initial files and folders.

  • Loading branch information...
justintadlock committed Jun 6, 2012
0 parents commit 0c012232410fbde7c4b5371b8bc3a199e160a3c9
58 404.php
@@ -0,0 +1,58 @@
+<?php
+/**
+ * 404 Template
+ *
+ * The 404 template is used when a reader visits an invalid URL on your site. By default, the template will
+ * display a generic message.
+ *
+ * @package MyLife
+ * @subpackage Template
+ * @since 0.1.0
+ * @author Justin Tadlock <justin@justintadlock.com>
+ * @copyright Copyright (c) 2011, Justin Tadlock
+ * @link http://themehybrid.com/themes/my-life
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+ */
+
+@header( 'HTTP/1.1 404 Not found', true, 404 );
+
+get_header(); // Loads the header.php template. ?>
+
+ <?php do_atomic( 'before_content' ); // picturesque_before_content ?>
+
+ <div id="content">
+
+ <?php do_atomic( 'open_content' ); // picturesque_open_content ?>
+
+ <div class="hfeed">
+
+ <div id="post-0" class="<?php hybrid_entry_class(); ?>">
+
+ <h1 class="error-404-title entry-title"><?php _e( 'Whoah! You broke something!', 'my-life' ); ?></h1>
+
+ <div class="entry-content">
+
+ <p>
+ <?php printf( __( "Just kidding! You tried going to %s, which doesn't exist, so that means I probably broke something.", 'my-life' ), '<code>' . home_url( esc_url( $_SERVER['REQUEST_URI'] ) ) . '</code>' ); ?>
+ </p>
+ <p>
+ <?php _e( "The following is a list of the latest posts from the blog. Maybe it will help you find what you're looking for.", 'my-life' ); ?>
+ </p>
+
+ <ul>
+ <?php wp_get_archives( array( 'limit' => 20, 'type' => 'postbypost' ) ); ?>
+ </ul>
+
+ </div><!-- .entry-content -->
+
+ </div><!-- .hentry -->
+
+ </div><!-- .hfeed -->
+
+ <?php do_atomic( 'close_content' ); // picturesque_close_content ?>
+
+ </div><!-- #content -->
+
+ <?php do_atomic( 'after_content' ); // picturesque_after_content ?>
+
+<?php get_footer(); // Loads the footer.php template. ?>
@@ -0,0 +1,96 @@
+<?php
+/**
+ * Attachment Template
+ *
+ * This is the default attachment template. It is used when visiting the singular view of a post attachment
+ * page (images, videos, audio, etc.).
+ *
+ * @package MyLife
+ * @subpackage Template
+ * @since 0.1.0
+ * @author Justin Tadlock <justin@justintadlock.com>
+ * @copyright Copyright (c) 2011, Justin Tadlock
+ * @link http://themehybrid.com/themes/my-life
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+ */
+
+get_header(); // Loads the header.php template. ?>
+
+ <?php do_atomic( 'before_content' ); // picturesque_before_content ?>
+
+ <div id="content">
+
+ <?php do_atomic( 'open_content' ); // picturesque_open_content ?>
+
+ <div class="hfeed">
+
+ <?php if ( have_posts() ) : ?>
+
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <?php do_atomic( 'before_entry' ); // picturesque_before_entry ?>
+
+ <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
+
+ <?php do_atomic( 'open_entry' ); // picturesque_open_entry ?>
+
+ <?php echo apply_atomic_shortcode( 'entry_title', the_title( '<h1 class="entry-title">', '</h1>', false ) ); ?>
+
+ <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . sprintf( __( 'Sizes: %s', 'my-life' ), picturesque_get_image_size_links() ) . '</div>' ); ?>
+
+ <div class="entry-content">
+
+ <?php if ( has_excerpt() ) {
+ $src = wp_get_attachment_image_src( get_the_ID(), 'full' );
+ echo do_shortcode( '[caption align="aligncenter" width="' . esc_attr( $src[1] ) . '" caption="' . get_the_excerpt() . '"]' . wp_get_attachment_image( get_the_ID(), 'full', false ) . '[/caption]' );
+ } else {
+ echo wp_get_attachment_image( get_the_ID(), 'full', false, array( 'class' => 'aligncenter' ) );
+ } ?>
+
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'my-life' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'my-life' ), 'after' => '</p>' ) ); ?>
+
+
+ </div><!-- .entry-content -->
+
+ <?php do_atomic( 'close_entry' ); // picturesque_close_entry ?>
+
+ </div><!-- .hentry -->
+
+ <?php do_atomic( 'after_entry' ); // picturesque_after_entry ?>
+ <?php if ( wp_attachment_is_image( get_the_ID() ) ) { // Only show attachment meta for images for now. ?>
+
+ <div class="attachment-meta">
+
+ <?php retro_fitted_image_info(); ?>
+
+ <?php $gallery = do_shortcode( sprintf( '[gallery id="%1$s" exclude="%2$s" columns="5" numberposts="10" orderby="rand"]', $post->post_parent, get_the_ID() ) ); ?>
+
+ <?php if ( !empty( $gallery ) ) { ?>
+ <div class="image-gallery">
+ <h3><?php _e( 'Gallery', 'picturesque' ); ?></h3>
+ <?php echo $gallery; ?>
+ </div>
+ <?php } ?>
+
+ </div><!-- .attachment-meta -->
+
+ <?php } ?>
+
+ <?php do_atomic( 'after_singular' ); // picturesque_after_singular ?>
+
+ <?php comments_template( '/comments.php', true ); // Loads the comments.php template. ?>
+
+ <?php endwhile; ?>
+
+ <?php endif; ?>
+
+ </div><!-- .hfeed -->
+
+ <?php do_atomic( 'close_content' ); // picturesque_close_content ?>
+
+ </div><!-- #content -->
+
+ <?php do_atomic( 'after_content' ); // picturesque_after_content ?>
+
+<?php get_footer(); // Loads the footer.php template. ?>
@@ -0,0 +1,35 @@
+<?php
+/**
+ * Pingback Comment Template
+ *
+ * The pingback comment template displays an individual pingback comment.
+ *
+ * @package MyLife
+ * @subpackage Template
+ * @since 0.1.0
+ * @author Justin Tadlock <justin@justintadlock.com>
+ * @copyright Copyright (c) 2011, Justin Tadlock
+ * @link http://themehybrid.com/themes/my-life
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+ */
+
+ global $post, $comment;
+?>
+
+ <li id="comment-<?php comment_ID(); ?>" class="<?php hybrid_comment_class(); ?>">
+
+ <?php do_atomic( 'before_comment' ); // picturesque_before_comment ?>
+
+ <div class="comment-wrap">
+
+ <?php do_atomic( 'open_comment' ); // picturesque_open_comment ?>
+
+ <?php echo apply_atomic_shortcode( 'comment_meta', '<div class="comment-meta">[comment-author] [comment-published] [comment-permalink before="| "] [comment-edit-link before="| "] [comment-reply-link before="| "]</div>' ); ?>
+
+ <?php do_atomic( 'close_comment' ); // picturesque_close_comment ?>
+
+ </div><!-- .comment-wrap -->
+
+ <?php do_atomic( 'after_comment' ); // picturesque_after_comment ?>
+
+ <?php /* No closing </li> is needed. WordPress will know where to add it. */ ?>
@@ -0,0 +1,49 @@
+<?php
+/**
+ * Comment Template
+ *
+ * The comment template displays an individual comment. This can be overwritten by templates specific
+ * to the comment type (comment.php, comment-{$comment_type}.php, comment-pingback.php,
+ * comment-trackback.php) in a child theme.
+ *
+ * @package MyLife
+ * @subpackage Template
+ * @since 0.1.0
+ * @author Justin Tadlock <justin@justintadlock.com>
+ * @copyright Copyright (c) 2011, Justin Tadlock
+ * @link http://themehybrid.com/themes/my-life
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+ */
+
+ global $post, $comment;
+?>
+
+ <li id="comment-<?php comment_ID(); ?>" class="<?php hybrid_comment_class(); ?>">
+
+ <?php do_atomic( 'before_comment' ); // picturesque_before_comment ?>
+
+ <div class="comment-wrap">
+
+ <?php do_atomic( 'open_comment' ); // picturesque_open_comment ?>
+
+ <?php echo hybrid_avatar(); ?>
+
+ <?php echo apply_atomic_shortcode( 'comment_meta', '<div class="comment-meta">[comment-author] [comment-published] [comment-permalink before="| "] [comment-edit-link before="| "] [comment-reply-link before="| "]</div>' ); ?>
+
+ <div class="comment-content comment-text">
+ <?php if ( '0' == $comment->comment_approved ) : ?>
+ <?php echo apply_atomic_shortcode( 'comment_moderation', '<p class="alert moderation">' . __( 'Your comment is awaiting moderation.', 'my-life' ) . '</p>' ); ?>
+ <?php endif; ?>
+
+ <?php comment_text( $comment->comment_ID ); ?>
+ </div><!-- .comment-content .comment-text -->
+
+ <?php //echo do_shortcode( '[comment-reply-link]' ); ?>
+
+ <?php do_atomic( 'close_comment' ); // picturesque_close_comment ?>
+
+ </div><!-- .comment-wrap -->
+
+ <?php do_atomic( 'after_comment' ); // picturesque_after_comment ?>
+
+ <?php /* No closing </li> is needed. WordPress will know where to add it. */ ?>
@@ -0,0 +1,70 @@
+<?php
+/**
+ * Comments Template
+ *
+ * Lists comments and calls the comment form. Individual comments have their own templates. The
+ * hierarchy for these templates is $comment_type.php, comment.php.
+ *
+ * @package MyLife
+ * @subpackage Template
+ * @since 0.1.0
+ * @author Justin Tadlock <justin@justintadlock.com>
+ * @copyright Copyright (c) 2011, Justin Tadlock
+ * @link http://themehybrid.com/themes/my-life
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+ */
+
+/* If a post password is required or no comments are given and comments/pings are closed, return. */
+if ( post_password_required() || ( !have_comments() && !comments_open() && !pings_open() ) )
+ return;
+?>
+
+<div id="comments-template">
+
+ <div class="comments-wrap">
+
+ <div id="comments">
+
+ <?php if ( have_comments() ) : ?>
+
+ <h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', 'my-life' ), __( 'One Response', 'my-life' ), __( '% Responses', 'my-life' ) ); ?></h3>
+
+ <?php if ( get_option( 'page_comments' ) ) : ?>
+ <div class="comments-nav">
+ <span class="page-numbers"><?php printf( __( 'Page %1$s of %2$s', 'my-life' ), ( get_query_var( 'cpage' ) ? absint( get_query_var( 'cpage' ) ) : 1 ), get_comment_pages_count() ); ?></span>
+ <?php previous_comments_link(); ?>
+ <?php next_comments_link(); ?>
+ </div><!-- .comments-nav -->
+ <?php endif; ?>
+
+ <?php do_atomic( 'before_comment_list' );// picturesque_before_comment_list ?>
+
+ <ol class="comment-list">
+ <?php wp_list_comments( hybrid_list_comments_args() ); ?>
+ </ol><!-- .comment-list -->
+
+ <?php do_atomic( 'after_comment_list' ); // picturesque_after_comment_list ?>
+
+ <?php endif; ?>
+
+ <?php if ( pings_open() && !comments_open() ) : ?>
+
+ <p class="comments-closed pings-open">
+ <?php printf( __( 'Comments are closed, but <a href="%s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'my-life' ), esc_url( get_trackback_url() ) ); ?>
+ </p><!-- .comments-closed .pings-open -->
+
+ <?php elseif ( !comments_open() ) : ?>
+
+ <p class="comments-closed">
+ <?php _e( 'Comments are closed.', 'my-life' ); ?>
+ </p><!-- .comments-closed -->
+
+ <?php endif; ?>
+
+ </div><!-- #comments -->
+
+ <?php comment_form(); // Loads the comment form. ?>
+
+ </div><!-- .comments-wrap -->
+
+</div><!-- #comments-template -->
@@ -0,0 +1,50 @@
+<?php
+/**
+ * Aside Content Template
+ *
+ * Template used to show posts with the 'aside' post format.
+ *
+ * @package MyLife
+ * @subpackage Template
+ * @since 0.1.0
+ * @author Justin Tadlock <justin@justintadlock.com>
+ * @copyright Copyright (c) 2011, Justin Tadlock
+ * @link http://themehybrid.com/themes/my-life
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+ */
+
+do_atomic( 'before_entry' ); // picturesque_before_entry ?>
+
+<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
+
+ <?php do_atomic( 'open_entry' ); // picturesque_open_entry ?>
+
+ <?php if ( is_singular() ) { ?>
+
+ <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
+
+ <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( '[post-format-link] published on [entry-published] [entry-edit-link before="| "]', 'my-life' ) . '</div>' ); ?>
+
+ <div class="entry-content">
+ <?php the_content(); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'my-life' ), 'after' => '</p>' ) ); ?>
+ </div><!-- .entry-content -->
+
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged "]', 'my-life' ) . '</div>' ); ?>
+
+ <?php } else { ?>
+
+ <div class="entry-content">
+ <?php the_content(); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'my-life' ), 'after' => '</p>' ) ); ?>
+ </div><!-- .entry-content -->
+
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[post-format-link] published on [entry-published] [entry-permalink before="| "] [entry-comments-link before="| "] [entry-edit-link before="| "]', 'my-life' ) . '</div>' ); ?>
+
+ <?php } ?>
+
+ <?php do_atomic( 'close_entry' ); // picturesque_close_entry ?>
+
+</div><!-- .hentry -->
+
+<?php do_atomic( 'after_entry' ); // picturesque_after_entry ?>
Oops, something went wrong.

0 comments on commit 0c01223

Please sign in to comment.