This repository has been archived by the owner. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
andrewmbacon
committed
Aug 25, 2014
1 parent
ba93110
commit 729c634
Showing
83 changed files
with
12,049 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
/** | ||
* The template for displaying 404 pages (Not Found). | ||
* | ||
* @package WordPress | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<div class="row"> | ||
<div class="span12"> | ||
<div class="post content clearfix"> | ||
<h2 class="page-title">Page Not Found</h2> | ||
|
||
<div class="entry"> | ||
<p>The page you are looking for has either moved or is no longer available.</p> | ||
<ul> | ||
<li>Click on <a href="<?php echo home_url(); ?>">Home</a> to go to the site homepage</li> | ||
<li>Remember to update any saved links</li> | ||
</ul> | ||
</div><!-- .page-content --> | ||
</div><!-- .page-wrapper --> | ||
|
||
</div><!-- #content --> | ||
</div><!-- #primary --> | ||
|
||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?php | ||
get_header(); | ||
?> | ||
<div class="row" id="primary"> | ||
<div class="span9 posts"> | ||
<div class="content"> | ||
<?php if (have_posts()) : ?> | ||
|
||
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> | ||
<?php /* If this is a category archive */ if (is_category()) { ?> | ||
<h2 class="pagetitle">Archive for the ‘<?php single_cat_title(); ?>’ Category</h2> | ||
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> | ||
<h2 class="pagetitle">Posts Tagged ‘<?php single_tag_title(); ?>’</h2> | ||
<?php /* If this is a daily archive */ } elseif (is_day()) { ?> | ||
<h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2> | ||
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?> | ||
<h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2> | ||
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?> | ||
<h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2> | ||
<?php /* If this is an author archive */ } elseif (is_author()) { ?> | ||
<h2 class="pagetitle">Author Archive for <?php the_author(); ?> </h2> | ||
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> | ||
<h2 class="pagetitle">Blog Archives</h2> | ||
<?php } ?> | ||
|
||
</div> | ||
|
||
|
||
<?php while (have_posts()) : the_post(); ?> | ||
<div class="post content clearfix"> | ||
<div class="post-header"> | ||
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> | ||
</div> | ||
<div class="post-content"> | ||
<?php the_content(); ?> | ||
</div> | ||
<div class="post-meta"> | ||
<?php the_date( 'F j, Y', '<span class="post-date"><i class="icon-calendar"></i>', '</span>' ); ?> | ||
<span class="post-author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><i class="icon-user"></i><?php the_author_meta( 'display_name' ); ?></a></span> | ||
<?php | ||
// PHP Request: If the_tags is empty, do not generate the HTML. I don't want the labels and markup making empty space when there are no tags. | ||
the_tags( '<span class="post-tags"><i class="icon-tags"></i>', ', ', '</span>' ); | ||
?> | ||
</div> | ||
</div> | ||
<?php endwhile; ?> | ||
|
||
<div class="navigation clearfix"> | ||
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> | ||
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> | ||
</div> | ||
<?php else : | ||
|
||
if ( is_category() ) { // If this is a category archive | ||
printf("<h3 class='center'>Sorry, but there aren't any posts in the %s category yet.</h3>", single_cat_title('',false)); | ||
} else if ( is_date() ) { // If this is a date archive | ||
echo("<h3>Sorry, but there aren't any posts with this date.</h3>"); | ||
} else if ( is_author() ) { // If this is a category archive | ||
$userdata = get_userdatabylogin(get_query_var('author_name')); | ||
printf("<h3 class='center'>Sorry, but there aren't any posts by %s yet.</h3>", $userdata->display_name); | ||
} else { | ||
echo("<h3 class='center'>No posts found.</h3>"); | ||
} | ||
get_search_form(); | ||
|
||
endif; | ||
?> | ||
|
||
</div> | ||
<div class="span3"> | ||
<?php get_sidebar('Sidebar'); ?> | ||
</div> | ||
</div> | ||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?php get_header(); ?> | ||
|
||
<div class="row" id="primary"> | ||
<div class="span9 posts"> | ||
|
||
<?php if ( have_posts() ) : ?> | ||
|
||
<?php | ||
/* Queue the first post, that way we know | ||
* what author 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(). | ||
*/ | ||
the_post(); | ||
?> | ||
|
||
<header class="archive-header content"> | ||
<h2 class="archive-title"><?php printf( __( 'Author Archives: %s', '' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h2> | ||
</header><!-- .archive-header --> | ||
|
||
<?php | ||
/* Since we called the_post() above, we need to | ||
* rewind the loop back to the beginning that way | ||
* we can run the loop properly, in full. | ||
*/ | ||
rewind_posts(); | ||
?> | ||
|
||
|
||
<?php | ||
// If a user has filled out their description, show a bio on their entries. | ||
if ( get_the_author_meta( 'description' ) ) : ?> | ||
<div class="author-info content"> | ||
|
||
<div class="author-description"> | ||
<h2><?php printf( __( 'About %s', '' ), get_the_author() ); ?></h2> | ||
<p><?php the_author_meta( 'description' ); ?></p> | ||
</div><!-- .author-description --> | ||
</div><!-- .author-info --> | ||
<?php endif; ?> | ||
|
||
<?php /* Start the Loop */ ?> | ||
<?php while ( have_posts() ) : the_post(); ?> | ||
<div class="post content clearfix"> | ||
<div class="post-header"> | ||
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> | ||
</div> | ||
<div class="post-content"> | ||
<?php the_content(); ?> | ||
</div> | ||
<div class="post-meta"> | ||
<?php the_date( 'F j, Y', '<span class="post-date"><i class="icon-calendar"></i>', '</span>' ); ?> | ||
<span class="post-author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><i class="icon-user"></i><?php the_author_meta( 'display_name' ); ?></a></span> | ||
<?php | ||
// PHP Request: If the_tags is empty, do not generate the HTML. I don't want the labels and markup making empty space when there are no tags. | ||
the_tags( '<span class="post-tags"><i class="icon-tags"></i>', ', ', '</span>' ); | ||
?> | ||
<?php comments_number( '', '<span class="post-comments"><i class="icon-comment"></i>1</span>', '<span class="post-comments"><i class="icon-comment"></i>%</span>' ); ?> | ||
</div> | ||
</div> | ||
<?php endwhile; ?> | ||
<div class="navigation clearfix"> | ||
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> | ||
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> | ||
</div> | ||
|
||
<?php else : ?> | ||
<?php get_template_part( 'content', 'none' ); ?> | ||
<?php endif; ?> | ||
|
||
</div> | ||
|
||
<div class="span3"> | ||
<?php get_sidebar(); ?> | ||
</div> | ||
</div> | ||
<?php get_footer(); ?> |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
|
||
<div id="comment-block" class="content"> | ||
<?php | ||
/** | ||
* @package WordPress | ||
* @subpackage Default_Theme | ||
*/ | ||
|
||
// Do not delete these lines | ||
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) | ||
die ('Please do not load this page directly. Thanks!'); | ||
|
||
if ( post_password_required() ) { ?> | ||
<p class="nocomments">This post is password protected. Enter the password to view comments.</p></div> | ||
<?php | ||
return; | ||
} | ||
?> | ||
|
||
<!-- You can start editing here. --> | ||
<?php if ( have_comments() ) : ?> | ||
<ol class="commentlist"> | ||
<?php wp_list_comments(); ?> | ||
</ol> | ||
<div class="navigation"> | ||
<div class="alignleft"> | ||
<?php previous_comments_link() ?> | ||
</div> | ||
<div class="alignright"> | ||
<?php next_comments_link() ?> | ||
</div> | ||
</div> | ||
<?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 : // comments are closed ?> | ||
<!-- If comments are closed. --> | ||
<p class="nocomments">Comments are closed.</p> | ||
<?php endif; ?> | ||
<?php endif; ?> | ||
<?php if ( comments_open() ) : ?> | ||
<h2 id="postcomment"> | ||
<?php _e('Leave a comment'); ?> | ||
</h2> | ||
|
||
<?php if ( get_option('comment_registration') && !$user_ID ) : ?> | ||
<p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), get_option('siteurl')."/wp-login.php?redirect_to=".urlencode(get_permalink()));?></p> | ||
<?php else : ?> | ||
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> | ||
<?php if ( $user_ID ) : ?> | ||
<p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account') ?>"> | ||
<?php _e('Log out »'); ?> | ||
</a></p> | ||
<?php else : ?> | ||
<p> | ||
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> | ||
<label for="author"><small> | ||
<?php _e('Name'); ?> | ||
<?php if ($req) _e('(required)'); ?> | ||
</small></label> | ||
</p> | ||
<p> | ||
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> | ||
<label for="email"><small> | ||
<?php _e('Mail (will not be published)');?> | ||
<?php if ($req) _e('(required)'); ?> | ||
</small></label> | ||
</p> | ||
<!--<p> | ||
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> | ||
<label for="url"><small> | ||
<?php _e('Website'); ?> | ||
</small></label> | ||
</p> | ||
--> | ||
<?php endif; ?> | ||
|
||
<!--<p><small><strong>XHTML:</strong> <?php printf(__('You can use these tags: %s'), allowed_tags()); ?></small></p>--> | ||
|
||
<p> | ||
<textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea> | ||
</p> | ||
<p> | ||
<input name="submit" type="submit" id="submit" tabindex="5" value="<?php echo esc_attr(__('Submit Comment')); ?>" /> | ||
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> | ||
</p> | ||
<?php do_action('comment_form', $post->ID); ?> | ||
</form> | ||
<?php endif; // If registration required and not logged in ?> | ||
<?php else : // Comments are closed ?> | ||
<?php endif; ?> | ||
</div> |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.