Permalink
Browse files

Initial commit

  • Loading branch information...
lacymorrow committed Mar 20, 2014
1 parent b17ffb8 commit 207c883d17b1b53c3d455d86b0447e41903e057c
Showing with 2,303 additions and 0 deletions.
  1. +56 βˆ’0 404.php
  2. +105 βˆ’0 archive.php
  3. +69 βˆ’0 comments.php
  4. +33 βˆ’0 content-none.php
  5. +24 βˆ’0 content-page.php
  6. +62 βˆ’0 content-single.php
  7. +63 βˆ’0 content.php
  8. +25 βˆ’0 footer.php
  9. +122 βˆ’0 functions.php
  10. +38 βˆ’0 header.php
  11. +126 βˆ’0 inc/custom-header.php
  12. +26 βˆ’0 inc/customizer.php
  13. +89 βˆ’0 inc/extras.php
  14. +19 βˆ’0 inc/jetpack.php
  15. +131 βˆ’0 inc/template-tags.php
  16. +46 βˆ’0 index.php
  17. +36 βˆ’0 js/customizer.js
  18. +34 βˆ’0 js/navigation.js
  19. +19 βˆ’0 js/skip-link-focus-fix.js
  20. +326 βˆ’0 languages/casper.pot
  21. +6 βˆ’0 languages/readme.txt
  22. +22 βˆ’0 layouts/content-sidebar.css
  23. +22 βˆ’0 layouts/sidebar-content.css
  24. +35 βˆ’0 page.php
  25. +17 βˆ’0 rtl.css
  26. BIN screenshot.png
  27. +38 βˆ’0 search.php
  28. +32 βˆ’0 sidebar.php
  29. +32 βˆ’0 single.php
  30. +650 βˆ’0 style.css
View
56 404.php
@@ -0,0 +1,56 @@
+<?php
+/**
+ * The template for displaying 404 pages (Not Found).
+ *
+ * @package Casper
+ */
+
+get_header(); ?>
+
+ <div id="primary" class="content-area">
+ <main id="main" class="site-main" role="main">
+
+ <section class="error-404 not-found">
+ <header class="page-header">
+ <h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'casper' ); ?></h1>
+ </header><!-- .page-header -->
+
+ <div class="page-content">
+ <p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'casper' ); ?></p>
+
+ <?php get_search_form(); ?>
+
+ <?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
+
+ <?php if ( casper_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
+ <div class="widget widget_categories">
+ <h2 class="widgettitle"><?php _e( 'Most Used Categories', 'casper' ); ?></h2>
+ <ul>
+ <?php
+ wp_list_categories( array(
+ 'orderby' => 'count',
+ 'order' => 'DESC',
+ 'show_count' => 1,
+ 'title_li' => '',
+ 'number' => 10,
+ ) );
+ ?>
+ </ul>
+ </div><!-- .widget -->
+ <?php endif; ?>
+
+ <?php
+ /* translators: %1$s: smiley */
+ $archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'casper' ), convert_smilies( ':)' ) ) . '</p>';
+ the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
+ ?>
+
+ <?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>
+
+ </div><!-- .page-content -->
+ </section><!-- .error-404 -->
+
+ </main><!-- #main -->
+ </div><!-- #primary -->
+
+<?php get_footer(); ?>
View
@@ -0,0 +1,105 @@
+<?php
+/**
+ * The template for displaying Archive pages.
+ *
+ * Learn more: http://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package Casper
+ */
+
+get_header(); ?>
+
+ <section id="primary" class="content-area">
+ <main id="main" class="site-main" role="main">
+
+ <?php if ( have_posts() ) : ?>
+
+ <header class="page-header">
+ <h1 class="page-title">
+ <?php
+ if ( is_category() ) :
+ single_cat_title();
+
+ elseif ( is_tag() ) :
+ single_tag_title();
+
+ elseif ( is_author() ) :
+ printf( __( 'Author: %s', 'casper' ), '<span class="vcard">' . get_the_author() . '</span>' );
+
+ elseif ( is_day() ) :
+ printf( __( 'Day: %s', 'casper' ), '<span>' . get_the_date() . '</span>' );
+
+ elseif ( is_month() ) :
+ printf( __( 'Month: %s', 'casper' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'casper' ) ) . '</span>' );
+
+ elseif ( is_year() ) :
+ printf( __( 'Year: %s', 'casper' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'casper' ) ) . '</span>' );
+
+ elseif ( is_tax( 'post_format', 'post-format-aside' ) ) :
+ _e( 'Asides', 'casper' );
+
+ elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) :
+ _e( 'Galleries', 'casper');
+
+ elseif ( is_tax( 'post_format', 'post-format-image' ) ) :
+ _e( 'Images', 'casper');
+
+ elseif ( is_tax( 'post_format', 'post-format-video' ) ) :
+ _e( 'Videos', 'casper' );
+
+ elseif ( is_tax( 'post_format', 'post-format-quote' ) ) :
+ _e( 'Quotes', 'casper' );
+
+ elseif ( is_tax( 'post_format', 'post-format-link' ) ) :
+ _e( 'Links', 'casper' );
+
+ elseif ( is_tax( 'post_format', 'post-format-status' ) ) :
+ _e( 'Statuses', 'casper' );
+
+ elseif ( is_tax( 'post_format', 'post-format-audio' ) ) :
+ _e( 'Audios', 'casper' );
+
+ elseif ( is_tax( 'post_format', 'post-format-chat' ) ) :
+ _e( 'Chats', 'casper' );
+
+ else :
+ _e( 'Archives', 'casper' );
+
+ endif;
+ ?>
+ </h1>
+ <?php
+ // Show an optional term description.
+ $term_description = term_description();
+ if ( ! empty( $term_description ) ) :
+ printf( '<div class="taxonomy-description">%s</div>', $term_description );
+ endif;
+ ?>
+ </header><!-- .page-header -->
+
+ <?php /* Start the Loop */ ?>
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <?php
+ /* Include the Post-Format-specific template for the content.
+ * If you want to override 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 casper_paging_nav(); ?>
+
+ <?php else : ?>
+
+ <?php get_template_part( 'content', 'none' ); ?>
+
+ <?php endif; ?>
+
+ </main><!-- #main -->
+ </section><!-- #primary -->
+
+<?php get_sidebar(); ?>
+<?php get_footer(); ?>
View
@@ -0,0 +1,69 @@
+<?php
+/**
+ * The template for displaying Comments.
+ *
+ * The area of the page that contains both current comments
+ * and the comment form.
+ *
+ * @package Casper
+ */
+
+/*
+ * If the current post is protected by a password and
+ * the visitor has not yet entered the password we will
+ * return early without loading the comments.
+ */
+if ( post_password_required() ) {
+ return;
+}
+?>
+
+<div id="comments" class="comments-area">
+
+ <?php // You can start editing here -- including this comment! ?>
+
+ <?php if ( have_comments() ) : ?>
+ <h2 class="comments-title">
+ <?php
+ printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'casper' ),
+ number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
+ ?>
+ </h2>
+
+ <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
+ <nav id="comment-nav-above" class="comment-navigation" role="navigation">
+ <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'casper' ); ?></h1>
+ <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'casper' ) ); ?></div>
+ <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'casper' ) ); ?></div>
+ </nav><!-- #comment-nav-above -->
+ <?php endif; // check for comment navigation ?>
+
+ <ol class="comment-list">
+ <?php
+ wp_list_comments( array(
+ 'style' => 'ol',
+ 'short_ping' => true,
+ ) );
+ ?>
+ </ol><!-- .comment-list -->
+
+ <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
+ <nav id="comment-nav-below" class="comment-navigation" role="navigation">
+ <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'casper' ); ?></h1>
+ <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'casper' ) ); ?></div>
+ <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'casper' ) ); ?></div>
+ </nav><!-- #comment-nav-below -->
+ <?php endif; // check for comment navigation ?>
+
+ <?php endif; // have_comments() ?>
+
+ <?php
+ // If comments are closed and there are comments, let's leave a little note, shall we?
+ if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
+ ?>
+ <p class="no-comments"><?php _e( 'Comments are closed.', 'casper' ); ?></p>
+ <?php endif; ?>
+
+ <?php comment_form(); ?>
+
+</div><!-- #comments -->
View
@@ -0,0 +1,33 @@
+<?php
+/**
+ * The template part for displaying a message that posts cannot be found.
+ *
+ * Learn more: http://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package Casper
+ */
+?>
+
+<section class="no-results not-found">
+ <header class="page-header">
+ <h1 class="page-title"><?php _e( 'Nothing Found', 'casper' ); ?></h1>
+ </header><!-- .page-header -->
+
+ <div class="page-content">
+ <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
+
+ <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'casper' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
+
+ <?php elseif ( is_search() ) : ?>
+
+ <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'casper' ); ?></p>
+ <?php get_search_form(); ?>
+
+ <?php else : ?>
+
+ <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'casper' ); ?></p>
+ <?php get_search_form(); ?>
+
+ <?php endif; ?>
+ </div><!-- .page-content -->
+</section><!-- .no-results -->
View
@@ -0,0 +1,24 @@
+<?php
+/**
+ * The template used for displaying page content in page.php
+ *
+ * @package Casper
+ */
+?>
+
+<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+ <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( array(
+ 'before' => '<div class="page-links">' . __( 'Pages:', 'casper' ),
+ 'after' => '</div>',
+ ) );
+ ?>
+ </div><!-- .entry-content -->
+ <?php edit_post_link( __( 'Edit', 'casper' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer>' ); ?>
+</article><!-- #post-## -->
View
@@ -0,0 +1,62 @@
+<?php
+/**
+ * @package Casper
+ */
+?>
+
+<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+ <header class="entry-header">
+ <h1 class="entry-title"><?php the_title(); ?></h1>
+
+ <div class="entry-meta">
+ <?php casper_posted_on(); ?>
+ </div><!-- .entry-meta -->
+ </header><!-- .entry-header -->
+
+ <div class="entry-content">
+ <?php the_content(); ?>
+ <?php
+ wp_link_pages( array(
+ 'before' => '<div class="page-links">' . __( 'Pages:', 'casper' ),
+ 'after' => '</div>',
+ ) );
+ ?>
+ </div><!-- .entry-content -->
+
+ <footer class="entry-footer">
+ <?php
+ /* translators: used between list items, there is a space after the comma */
+ $category_list = get_the_category_list( __( ', ', 'casper' ) );
+
+ /* translators: used between list items, there is a space after the comma */
+ $tag_list = get_the_tag_list( '', __( ', ', 'casper' ) );
+
+ if ( ! casper_categorized_blog() ) {
+ // This blog only has 1 category so we just need to worry about tags in the meta text
+ if ( '' != $tag_list ) {
+ $meta_text = __( 'This entry was tagged %2$s. Bookmark the <a href="%3$s" rel="bookmark">permalink</a>.', 'casper' );
+ } else {
+ $meta_text = __( 'Bookmark the <a href="%3$s" rel="bookmark">permalink</a>.', 'casper' );
+ }
+
+ } else {
+ // But this blog has loads of categories so we should probably display them here
+ if ( '' != $tag_list ) {
+ $meta_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" rel="bookmark">permalink</a>.', 'casper' );
+ } else {
+ $meta_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" rel="bookmark">permalink</a>.', 'casper' );
+ }
+
+ } // end check for categories on this blog
+
+ printf(
+ $meta_text,
+ $category_list,
+ $tag_list,
+ get_permalink()
+ );
+ ?>
+
+ <?php edit_post_link( __( 'Edit', 'casper' ), '<span class="edit-link">', '</span>' ); ?>
+ </footer><!-- .entry-footer -->
+</article><!-- #post-## -->
Oops, something went wrong.

0 comments on commit 207c883

Please sign in to comment.