Permalink
Browse files

Add the initial files and folders.

  • Loading branch information...
justintadlock committed Feb 25, 2013
1 parent d6a620a commit 9021e1a32320dceb89d367000327e6b9a483137f
View
36 404.php
@@ -0,0 +1,36 @@
+<?php @header( 'HTTP/1.1 404 Not found', true, 404 );
+
+get_header(); // Loads the header.php template. ?>
+
+ <div id="content">
+
+ <div class="hfeed">
+
+ <article id="post-0" class="<?php hybrid_entry_class(); ?>">
+
+ <header class="entry-header">
+ <h1 class="entry-title"><?php _e( 'Whoah! You broke something!', 'hybrid-base' ); ?></h1>
+ </header><!-- .entry-header -->
+
+ <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.", 'hybrid-base' ), '<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.", 'hybrid-base' ); ?>
+ </p>
+
+ <ul>
+ <?php wp_get_archives( array( 'limit' => 20, 'type' => 'postbypost' ) ); ?>
+ </ul>
+
+ </div><!-- .entry-content -->
+
+ </article><!-- .hentry -->
+
+ </div><!-- .hfeed -->
+
+ </div><!-- #content -->
+
+<?php get_footer(); // Loads the footer.php template. ?>
View
@@ -0,0 +1 @@
+<?php /* The grass is always greener. */ ?>
View
@@ -0,0 +1,59 @@
+<?php get_header(); // Loads the header.php template. ?>
+
+ <div id="content">
+
+ <div class="hfeed">
+
+ <?php if ( have_posts() ) : ?>
+
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
+
+ <header class="entry-header">
+ <?php echo apply_atomic_shortcode( 'entry_title', the_title( '<h1 class="entry-title">', '</h1>', false ) ); ?>
+ <?php echo apply_atomic_shortcode( 'entry_byline', '<div class="entry-byline">' . sprintf( __( 'Sizes: %s', 'hybrid-base' ), chun_get_image_size_links() ) . '</div>' ); ?>
+ </header><!-- .entry-header -->
+
+ <div class="entry-content">
+
+ <?php if ( has_excerpt() ) {
+ $src = wp_get_attachment_image_src( get_the_ID(), 'full' );
+ echo do_shortcode( sprintf( '[caption align="aligncenter" width="%1$s"]%3$s %2$s[/caption]', esc_attr( $src[1] ), get_the_excerpt(), wp_get_attachment_image( get_the_ID(), 'full', false ) ) );
+ } 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>', 'hybrid-base' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'hybrid-base' ), 'after' => '</p>' ) ); ?>
+
+ </div><!-- .entry-content -->
+
+ </article><!-- .hentry -->
+
+ <div class="attachment-meta">
+
+ <?php chun_image_info(); ?>
+
+ <?php $gallery = gallery_shortcode( array( 'columns' => 4, 'numberposts' => 8, 'id' => $post->post_parent, 'exclude' => get_the_ID() ) ); ?>
+
+ <?php if ( !empty( $gallery ) ) { ?>
+ <div class="image-gallery">
+ <h3><?php _e( 'Gallery', 'hybrid-base' ); ?></h3>
+ <?php echo $gallery; ?>
+ </div>
+ <?php } ?>
+
+ </div><!-- .attachment-meta -->
+
+ <?php comments_template(); // Loads the comments.php template. ?>
+
+ <?php endwhile; ?>
+
+ <?php endif; ?>
+
+ </div><!-- .hfeed -->
+
+ </div><!-- #content -->
+
+<?php get_footer(); // Loads the footer.php template. ?>
View
@@ -0,0 +1,13 @@
+<li id="comment-<?php comment_ID(); ?>" class="<?php hybrid_comment_class(); ?>">
+
+ <?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="| "]</div>' ); ?>
+
+ <div class="comment-content">
+ <?php comment_text(); ?>
+ </div><!-- .comment-content -->
+
+ <?php echo hybrid_comment_reply_link_shortcode( array() ); ?>
+
+<?php /* No closing </li> is needed. WordPress will know where to add it. */ ?>
View
@@ -0,0 +1,13 @@
+<?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.', 'hybrid-base' ), esc_url( get_trackback_url() ) ); ?>
+ </p><!-- .comments-closed .pings-open -->
+
+<?php } elseif ( !comments_open() ) { ?>
+
+ <p class="comments-closed">
+ <?php _e( 'Comments are closed.', 'hybrid-base' ); ?>
+ </p><!-- .comments-closed -->
+
+<?php } ?>
View
@@ -0,0 +1,9 @@
+<?php if ( get_option( 'page_comments' ) && 1 < get_comment_pages_count() ) { ?>
+
+ <div class="comments-nav">
+ <?php previous_comments_link( __( '&larr; Previous', 'hybrid-base' ) ); ?>
+ <span class="page-numbers"><?php printf( __( 'Page %1$s of %2$s', 'hybrid-base' ), ( get_query_var( 'cpage' ) ? absint( get_query_var( 'cpage' ) ) : 1 ), get_comment_pages_count() ); ?></span>
+ <?php next_comments_link( __( 'Next &rarr;', 'hybrid-base' ) ); ?>
+ </div><!-- .comments-nav -->
+
+<?php } ?>
View
@@ -0,0 +1,13 @@
+<?php if ( have_comments() ) { ?>
+
+ <h2 id="comments-number"><?php comments_number( '', __( 'One Response', 'hybrid-base' ), __( '% Responses', 'hybrid-base' ) ); ?></h2>
+
+ <?php get_template_part( 'comments-loop-nav' ); // Loads the comment-loop-nav.php template. ?>
+
+ <ol class="comment-list">
+ <?php wp_list_comments( hybrid_list_comments_args() ); ?>
+ </ol><!-- .comment-list -->
+
+<?php } // End check for comments. ?>
+
+<?php get_template_part( 'comments-loop-error' ); // Loads the comments-loop-error.php template. ?>
View
@@ -0,0 +1,13 @@
+<?php
+/* 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;
+?>
+
+<section id="comments">
+
+ <?php get_template_part( 'comments-loop' ); // Loads the comments-loop.php template. ?>
+
+ <?php comment_form(); // Loads the comment form. ?>
+
+</section><!-- #comments -->
View
@@ -0,0 +1,28 @@
+<article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
+
+ <?php if ( is_singular( get_post_type() ) ) { ?>
+
+ <header class="entry-header">
+ <h1 class="entry-title"><?php single_post_title(); ?></h1>
+ <?php echo apply_atomic_shortcode( 'entry_byline', '<div class="entry-byline">' . __( '[post-format-link] published on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'hybrid-base' ) . '</div>' ); ?>
+ </header><!-- .entry-header -->
+
+ <div class="entry-content">
+ <?php the_content(); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . '<span class="before">' . __( 'Pages:', 'hybrid-base' ) . '</span>', 'after' => '</p>' ) ); ?>
+ </div><!-- .entry-content -->
+
+ <footer class="entry-footer">
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms before="Tagged "]', 'hybrid-base' ) . '</div>' ); ?>
+ </footer><!-- .entry-footer -->
+
+ <?php } else { ?>
+
+ <div class="entry-content">
+ <?php the_content( __( 'Read more &rarr;', 'hybrid-base' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . '<span class="before">' . __( 'Pages:', 'hybrid-base' ) . '</span>', 'after' => '</p>' ) ); ?>
+ </div><!-- .entry-content -->
+
+ <?php } ?>
+
+</article><!-- .hentry -->
View
@@ -0,0 +1,33 @@
+<article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
+
+ <?php if ( is_singular( get_post_type() ) ) { ?>
+
+ <header class="entry-header">
+ <h1 class="entry-title"><?php single_post_title(); ?></h1>
+ </header><!-- .entry-header -->
+
+ <div class="entry-content">
+ <?php hybrid_attachment(); // Function for handling non-image attachments. ?>
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'hybrid-base' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . '<span class="before">' . __( 'Pages:', 'hybrid-base' ) . '</span>', 'after' => '</p>' ) ); ?>
+ </div><!-- .entry-content -->
+
+ <footer class="entry-footer">
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( 'Published on [entry-published] [entry-edit-link before="| "]', 'hybrid-base' ) . '</div>' ); ?>
+ </footer><!-- .entry-footer -->
+
+ <?php } else { ?>
+
+ <header class="entry-header">
+ <?php the_title( '<h2 class="entry-title"><a href="' . get_permalink() . '">', '</a></h2>' ); ?>
+ </header><!-- .entry-header -->
+
+ <div class="entry-summary">
+ <?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image(); ?>
+ <?php the_excerpt(); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . '<span class="before">' . __( 'Pages:', 'hybrid-base' ) . '</span>', 'after' => '</p>' ) ); ?>
+ </div><!-- .entry-summary -->
+
+ <?php } ?>
+
+</article><!-- .hentry -->
View
@@ -0,0 +1,46 @@
+<article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
+
+ <?php if ( is_singular( get_post_type() ) ) { ?>
+
+ <header class="entry-header">
+ <h1 class="entry-title"><?php single_post_title(); ?></h1>
+ <?php echo apply_atomic_shortcode( 'entry_byline', '<div class="entry-byline">' . __( '[post-format-link] file published on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before="| "]', 'hybrid-base' ) . '</div>' ); ?>
+ </header><!-- .entry-header -->
+
+ <div class="entry-content">
+ <?php the_content(); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . '<span class="before">' . __( 'Pages:', 'hybrid-base' ) . '</span>', 'after' => '</p>' ) ); ?>
+ </div><!-- .entry-content -->
+
+ <footer class="entry-footer">
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged "]', 'hybrid-base' ) . '</div>' ); ?>
+ </footer><!-- .entry-footer -->
+
+ <?php } else { ?>
+
+ <header class="entry-header">
+ <?php the_title( '<h2 class="entry-title"><a href="' . get_permalink() . '">', '</a></h2>' ); ?>
+ </header><!-- .entry-header -->
+
+ <?php if ( has_excerpt() ) { ?>
+
+ <div class="entry-summary">
+ <?php the_excerpt(); ?>
+ </div><!-- .entry-summary -->
+
+ <?php } else { ?>
+
+ <div class="entry-content">
+ <?php the_content( __( 'Read more &rarr;', 'hybrid-base' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . '<span class="before">' . __( 'Pages:', 'hybrid-base' ) . '</span>', 'after' => '</p>' ) ); ?>
+ </div><!-- .entry-content -->
+
+ <?php } ?>
+
+ <footer class="entry-footer">
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[post-format-link] file published on [entry-published] [entry-permalink before="| "] [entry-comments-link before="| "] [entry-edit-link before="| "]', 'hybrid-base' ) . '</div>' ); ?>
+ </footer>
+
+ <?php } ?>
+
+</article><!-- .hentry -->
View
@@ -0,0 +1,52 @@
+<article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
+
+ <?php if ( is_singular( get_post_type() ) ) { ?>
+
+ <header class="entry-header">
+ <h1 class="entry-title"><?php single_post_title(); ?></h1>
+ <?php echo apply_atomic_shortcode( 'entry_byline', '<div class="entry-byline">' . __( '[post-format-link] published on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before="| "]', 'hybrid-base' ) . '</div>' ); ?>
+ </header><!-- .entry-header -->
+
+ <?php if ( has_excerpt() ) { ?>
+ <div class="entry-summary">
+ <?php the_excerpt(); ?>
+ </div><!-- .entry-summary -->
+ <?php } ?>
+
+ <div class="entry-content">
+ <?php the_content(); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . '<span class="before">' . __( 'Pages:', 'hybrid-base' ) . '</span>', 'after' => '</p>' ) ); ?>
+ </div><!-- .entry-content -->
+
+ <footer class="entry-footer">
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged "]', 'hybrid-base' ) . '</div>' ); ?>
+ </footer><!-- .entry-footer -->
+
+ <?php } else { ?>
+
+ <header class="entry-header">
+ <?php the_title( '<h2 class="entry-title"><a href="' . get_permalink() . '">', '</a></h2>' ); ?>
+ </header><!-- .entry-header -->
+
+ <?php if ( has_excerpt() ) { ?>
+
+ <div class="entry-summary">
+ <?php the_excerpt(); ?>
+ </div><!-- .entry-summary -->
+
+ <?php } else { ?>
+
+ <div class="entry-content">
+ <?php the_content( __( 'Read more &rarr;', 'hybrid-base' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . '<span class="before">' . __( 'Pages:', 'hybrid-base' ) . '</span>', 'after' => '</p>' ) ); ?>
+ </div><!-- .entry-content -->
+
+ <?php } ?>
+
+ <footer class="entry-footer">
+ <?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="| "]', 'hybrid-base' ) . '</div>' ); ?>
+ </footer>
+
+ <?php } ?>
+
+</article><!-- .hentry -->
View
@@ -0,0 +1,45 @@
+<article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
+
+ <?php if ( is_singular( get_post_type() ) ) { ?>
+
+ <header class="entry-header">
+ <h1 class="entry-title"><?php single_post_title(); ?></h1>
+ <?php echo apply_atomic_shortcode( 'entry_byline', '<div class="entry-byline">' . __( '[post-format-link] published on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'hybrid-base' ) . '</div>' ); ?>
+ </header><!-- .entry-header -->
+
+ <div class="entry-content">
+ <?php the_content(); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . '<span class="before">' . __( 'Pages:', 'hybrid-base' ) . '</span>', 'after' => '</p>' ) ); ?>
+ </div><!-- .entry-content -->
+
+ <footer class="entry-footer">
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged "]', 'hybrid-base' ) . '</div>' ); ?>
+ </footer><!-- .entry-footer -->
+
+ <?php } else { ?>
+
+ <header class="entry-header">
+ <?php the_title( '<h2 class="entry-title"><a href="' . get_permalink() . '">', '</a></h2>' ); ?>
+ </header><!-- .entry-header -->
+
+ <div class="entry-summary">
+
+ <?php get_the_image(); ?>
+
+ <?php if ( has_excerpt() ) {
+ the_excerpt();
+ wp_link_pages( array( 'before' => '<p class="page-links">' . '<span class="before">' . __( 'Pages:', 'hybrid-base' ) . '</span>', 'after' => '</p>' ) );
+ } ?>
+
+ <?php $count = post_format_tools_get_image_attachment_count(); ?>
+ <p class="image-count"><?php printf( _n( 'This gallery contains %d image.', 'This gallery contains %d images.', $count, 'hybrid-base' ), $count ); ?></p>
+
+ </div><!-- .entry-summary -->
+
+ <footer class="entry-footer">
+ <?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="| "]', 'hybrid-base' ) . '</div>' ); ?>
+ </footer><!-- .entry-footer -->
+
+ <?php } ?>
+
+</article><!-- .hentry -->
Oops, something went wrong.

0 comments on commit 9021e1a

Please sign in to comment.