-
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.
Cleaned up the code significantly. Added additional post formats, and…
… we are almost there for Wordpress Theme Review.
- Loading branch information
1 parent
02fa215
commit 83e94d1
Showing
22 changed files
with
1,253 additions
and
1,436 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,36 @@ | ||
<?php | ||
/** | ||
* The template for displaying 404 pages (Not Found). | ||
**/ | ||
|
||
get_header(); | ||
?> | ||
|
||
<div id="wrap"> | ||
<div id="left-column"> | ||
<?php get_sidebar(); ?> | ||
</div> | ||
<div id="right-column"> | ||
|
||
<div class="type-post"> | ||
|
||
<header> | ||
<h2>Woops, an error occurred.</h2> | ||
</header> | ||
|
||
<div class="post-text"> | ||
<p>Unfortunately the content you are looking for is not here. Sorry about that! Go to | ||
<a href="<?php echo esc_url(home_url('/')); ?>" | ||
title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" | ||
rel="home"> | ||
<?php bloginfo('name'); ?> | ||
</a>. | ||
</p> | ||
</div> | ||
|
||
</div> | ||
|
||
</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,56 @@ | ||
<?php | ||
/** | ||
* The template for displaying Archive pages. | ||
* Also see tag.php,author.php and category.php for those | ||
* specific archive pages. | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<div id="wrap"> | ||
<!-- Post Loop --> | ||
|
||
<div id="left-column"> | ||
<?php get_sidebar(); ?> | ||
</div> | ||
|
||
<div id="right-column"> | ||
|
||
<?php if (have_posts()) : ?> | ||
<header> | ||
<h1 class="archive-title"> | ||
<?php | ||
if (is_day()) : | ||
printf(__('Daily Archives: %s', 'rebar'), '<span>' . get_the_date() . '</span>'); | ||
elseif (is_month()) : | ||
printf(__('Monthly Archives: %s', 'rebar'), '<span>' . get_the_date(_x('F Y', 'monthly archives date format', 'rebar')) . '</span>'); | ||
elseif (is_year()) : | ||
printf(__('Yearly Archives: %s', 'rebar'), '<span>' . get_the_date(_x('Y', 'yearly archives date format', 'rebar')) . '</span>'); | ||
else : | ||
_e('Archives', 'rebar'); | ||
endif; | ||
?> | ||
</h1> | ||
</header><!-- .archive-header --> | ||
|
||
<?php | ||
/* Start the Loop */ | ||
while (have_posts()) : the_post(); | ||
|
||
get_template_part('content', 'post'); | ||
|
||
endwhile; | ||
|
||
?> | ||
|
||
<?php else : ?> | ||
<?php get_template_part('content', 'noresults'); ?> | ||
<?php endif; ?> | ||
|
||
</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,63 @@ | ||
<?php | ||
/** | ||
* The template for displaying Author Archive pages. | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<div id="wrap"> | ||
<!-- Post Loop --> | ||
|
||
<div id="left-column"> | ||
<?php get_sidebar(); ?> | ||
</div> | ||
|
||
<div id="right-column"> | ||
|
||
|
||
<?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> | ||
<h1 class="archive-title"> | ||
<?php printf(translate | ||
('Author Archives: %s', 'rebar'), | ||
'<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>'); | ||
?> | ||
</h1> | ||
</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 /* Start the Loop */ ?> | ||
<?php while (have_posts()) : the_post(); ?> | ||
<?php get_template_part('content', 'post'); ?> | ||
<?php endwhile; ?> | ||
|
||
<?php rebar_content_nav(); ?> | ||
|
||
<?php else : ?> | ||
<?php get_template_part('content', 'noresults'); ?> | ||
<?php endif; ?> | ||
|
||
</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,44 @@ | ||
<?php get_header(); ?> | ||
|
||
<div id="wrap"> | ||
<!-- Post Loop --> | ||
|
||
<div id="left-column"> | ||
<?php get_sidebar(); ?> | ||
</div> | ||
|
||
<div id="right-column"> | ||
|
||
<?php if (have_posts()) : ?> | ||
<header> | ||
<h1 class="archive-title"> | ||
<?php printf(__('Category Archives: %s', 'rebar'), '<span>' . single_cat_title('', false) . '</span>'); ?> | ||
</h1> | ||
|
||
<?php if (category_description()) : // Show an optional category description ?> | ||
<div class="archive-meta"> | ||
<?php echo category_description(); ?> | ||
</div> | ||
<?php endif; ?> | ||
|
||
</header> | ||
<?php | ||
/* Start the Loop */ | ||
while (have_posts()) : the_post(); | ||
|
||
get_template_part('content', 'post'); | ||
|
||
endwhile; | ||
|
||
rebar_content_nav(); | ||
?> | ||
|
||
<?php else : ?> | ||
<?php get_template_part('content', 'noresults'); ?> | ||
<?php endif; ?> | ||
|
||
</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
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,7 @@ | ||
<div class="type-post"> | ||
<br/><br/> | ||
<div class="post-text"> | ||
Sorry, but nothing was found for your query. | ||
</div> | ||
</div> |
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,36 @@ | ||
<article> | ||
<div <?php post_class(); ?>> | ||
|
||
<?php if (has_post_thumbnail()): ?> | ||
<?php the_post_thumbnail(); ?> | ||
<?php endif; ?> | ||
|
||
<h2> | ||
<?php echo (the_title('', '', false) == '' ? 'Read More' : the_title('', '', false)); ?> | ||
</h2> | ||
|
||
<?php if (is_archive() || is_search()) : // Only display excerpts for archives and search. ?> | ||
<div class="post-text"> | ||
<?php the_excerpt(); ?> | ||
</div> | ||
<?php else : ?> | ||
|
||
<div class="post-text"> | ||
<?php the_content('Read More'); ?> | ||
</div> | ||
|
||
<div class="post-text clearfix"> | ||
<?php edit_post_link('Edit Page'); ?> | ||
</div> | ||
|
||
<div class="link-pages"> | ||
<?php wp_link_pages(); ?> | ||
</div> | ||
|
||
<?php endif; ?> | ||
|
||
<?php rebar_post_meta(); ?> | ||
|
||
|
||
</div> | ||
</article> |
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,32 @@ | ||
<div class="status-wrapper"> | ||
|
||
<div class="status-author-wrapper"> | ||
<div class="avatar-box "> | ||
<a href="<?php the_permalink(); ?>"> | ||
<?php echo get_avatar($post->post_author, 60); | ||
?> | ||
</a> | ||
</div> | ||
|
||
</div> | ||
|
||
<article <?php post_class("status-box"); ?>> | ||
|
||
<div class="status-details"> | ||
Posted by | ||
<?php echo '<span class="bypostauthor">' . get_the_author_link() . '</span>'; ?> | ||
on | ||
|
||
<span><?php echo get_the_date(); ?></span> | ||
(<a href="<?php the_permalink(); ?>">Reply</a>) | ||
|
||
</div> | ||
|
||
<div class="status-text"> | ||
<?php the_content(__('Continue reading <span class="meta-nav">→</span>', 'rebar')); ?> | ||
</div> | ||
|
||
<?php rebar_post_meta(); ?> | ||
|
||
</article> | ||
</div> |
Oops, something went wrong.