Permalink
Browse files

cleaned up indentation and whitespace and added a few TODO notes

  • Loading branch information...
1 parent 9f2b57a commit 70b1be9baeb874398a755d0e25eba3200ff5962a @curtismchale committed Dec 3, 2011
Showing with 170 additions and 160 deletions.
  1. +10 −10 404.php
  2. +37 −37 archive.php
  3. +8 −8 footer.php
  4. +4 −3 header.php
  5. +20 −19 index.php
  6. +22 −17 loop-blog.php
  7. +13 −13 page-custom.php
  8. +29 −26 page.php
  9. +6 −6 searchform.php
  10. +4 −4 sidebar.php
  11. +17 −17 single.php
View
20 404.php
@@ -1,29 +1,29 @@
<?php
/**
* 404 page
- *
+ *
* 404 page template. Any 404 errors on the site will be rendered here.
- *
+ *
* @package Comienzo
* @copyright Copyright (C) 2011 Curtis McHale
* @license http://www.gnu.org/copyleft/gpl.html GPL
- *
+ *
* @since 1.0
*/
?>
<?php get_header(); ?>
- <div id="four-o-four">
+ <div id="four-o-four">
- <div id="content-wrapper">
+ <div id="content-wrapper">
- <h2>Error 404 - Not Found</h2>
- <!-- TODO add default contact information here -->
+ <h2>Error 404 - Not Found</h2>
+ <!-- TODO add default contact information here -->
- </div><!-- /#content-wrapper -->
+ </div><!-- /#content-wrapper -->
- <?php get_sidebar(); ?>
+ <?php get_sidebar(); ?>
- </div><!-- /#four-o-four -->
+ </div><!-- /#four-o-four -->
<?php get_footer(); ?>
View
@@ -1,64 +1,64 @@
<?php
/**
* The archive page template
- *
+ *
* By default this deals with any taxonomies (tags, categories) that are requested from WordPress
- *
+ *
* @package Comienzo
* @copyright Copyright (C) 2011 Curtis McHale
* @license http://www.gnu.org/copyleft/gpl.html GPL
- *
+ *
* @since 1.0
*/
?>
<?php get_header(); ?>
- <div id="archive">
+ <div id="archive">
- <div id="content-wrapper">
+ <div id="content-wrapper">
- <?php if (have_posts()) : ?>
+ <?php if (have_posts()) : ?>
- <div id="archive-title">
- <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
- <?php /* If this is a category archive */ if (is_category()) { ?>
- <h1>Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h1>
- <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
- <h1>Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h1>
- <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
- <h1>Archive for <?php the_time( get_option('date_format') ); ?></h1>
- <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
- <h1>Archive for <?php the_time('F, Y'); ?></h1>
- <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
- <h1>Archive for <?php the_time('Y'); ?></h1>
- <?php /* If this is an author archive */ } elseif (is_author()) { ?>
- <h1>Author Archive</h1>
- <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
- <h1>Blog Archives</h1>
- <?php } ?>
- </div><!-- /#archive-title -->
+ <div id="archive-title">
+ <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
+ <?php /* If this is a category archive */ if (is_category()) { ?>
+ <h1>Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h1>
+ <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
+ <h1>Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h1>
+ <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
+ <h1>Archive for <?php the_time( get_option('date_format') ); ?></h1>
+ <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
+ <h1>Archive for <?php the_time('F, Y'); ?></h1>
+ <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
+ <h1>Archive for <?php the_time('Y'); ?></h1>
+ <?php /* If this is an author archive */ } elseif (is_author()) { ?>
+ <h1>Author Archive</h1>
+ <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
+ <h1>Blog Archives</h1>
+ <?php } ?>
+ </div><!-- /#archive-title -->
- <?php while (have_posts()) : the_post(); ?>
+ <?php while (have_posts()) : the_post(); ?>
- <?php get_template_part( 'loop', 'blog' ); ?>
+ <?php get_template_part( 'loop', 'blog' ); ?>
- <?php endwhile; ?>
+ <?php endwhile; ?>
- <!-- includes next previous links or post level nav -->
- <!-- TODO locate_template -->
- <?php get_template_part( 'assets/includes/post-navigation' ); ?>
+ <!-- includes next previous links or post level nav -->
+ <!-- TODO locate_template -->
+ <?php get_template_part( 'assets/includes/post-navigation' ); ?>
- <?php else : ?>
+ <?php else : ?>
- <h2>Not Found</h2>
- <?php get_search_form(); ?>
+ <h2>Not Found</h2>
+ <?php get_search_form(); ?>
- <?php endif; ?>
+ <?php endif; ?>
- </div><!-- /#content-wrapper -->
+ </div><!-- /#content-wrapper -->
- <?php get_sidebar(); ?>
+ <?php get_sidebar(); ?>
- </div><!-- /#archive -->
+ </div><!-- /#archive -->
<?php get_footer(); ?>
View
@@ -1,25 +1,25 @@
<?php
/**
* Footer template file
- *
+ *
* The default footer for the theme. Is called by get_footer in other template files
- *
+ *
* @package Comienzo
* @copyright Copyright (C) 2011 Curtis McHale
* @license http://www.gnu.org/copyleft/gpl.html GPL
- *
+ *
* @since 1.0
*/
?>
<div class="clear"></div>
- </div><!-- /#content -->
+ </div><!-- /#content -->
- <footer>
- <p class="copyright">&copy; <?php echo date("Y"); echo " "; echo bloginfo('name'); ?></p>
+ <footer>
+ <p class="copyright">&copy; <?php echo date("Y"); echo " "; echo bloginfo('name'); ?></p>
- <p class="wordpress-info"><?php bloginfo('name'); ?> is proudly powered by <a href="http://wordpress.org/">WordPress</a> | <a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a> | <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>.</p>
+ <p class="wordpress-info"><?php bloginfo('name'); ?> is proudly powered by <a href="http://wordpress.org/">WordPress</a> | <a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a> | <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>.</p>
- </footer><!-- /footer -->
+ </footer><!-- /footer -->
</div><!-- /#main-wrapper -->
View
@@ -1,13 +1,13 @@
<?php
/**
* Header file
- *
+ *
* Default header file for the theme. Rendered by get_header.php
- *
+ *
* @package Comienzo
* @copyright Copyright (C) 2011 Curtis McHale
* @license http://www.gnu.org/copyleft/gpl.html GPL
- *
+ *
* @since 2.0
*/
?>
@@ -46,6 +46,7 @@
<?php
/* We add some JavaScript to pages with the comment form
* to support sites with threaded comments (when in use).
+ * TODO enqueue this properly
*/
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
View
@@ -1,45 +1,46 @@
<?php
/**
* Default template file
- *
+ *
* All of WordPress defaults back to index.php. This is the main blog page.
- *
+ *
* @package Comienzo
* @copyright Copyright (C) 2011 Curtis McHale
* @license http://www.gnu.org/copyleft/gpl.html GPL
- *
+ *
* @since 1.0
*/
?>
<?php get_header(); ?>
- <div id="index">
+<div id="index">
- <div id="content-wrapper">
+ <div id="content-wrapper">
- <?php if (have_posts()) : ?>
+ <?php if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
+ <?php while (have_posts()) : the_post(); ?>
- <?php get_template_part( 'loop', 'blog' ); ?>
+ <?php get_template_part( 'loop', 'blog' ); ?>
- <?php endwhile; ?>
+ <?php endwhile; ?>
- <!-- includes next previous links or post level nav -->
- <?php get_template_part( 'assets/includes/post-navigation' ); ?>
+ <!-- includes next previous links or post level nav -->
+ <!-- TODO locate_template -->
+ <?php get_template_part( 'assets/includes/post-navigation' ); ?>
- <?php else : ?>
+ <?php else : ?>
- <h2>Not Found</h2>
- <p>Sorry, but you are looking for something that isn't here.</p>
- <?php get_search_form(); ?>
+ <h2>Not Found</h2>
+ <p>Sorry, but you are looking for something that isn't here.</p>
+ <?php get_search_form(); ?>
- <?php endif; ?>
+ <?php endif; ?>
- </div><!-- /#content-wrapper -->
+ </div><!-- /#content-wrapper -->
- <?php get_sidebar(); ?>
+ <?php get_sidebar(); ?>
- </div><!-- /#index -->
+</div><!-- /#index -->
<?php get_footer(); ?>
View
@@ -1,33 +1,38 @@
<?php
/**
* Generic Loop
- *
+ *
* This is the generic loop file for the site. It serves single.php search.php and index.php. Some conditioanls are included to accommodate the different template files
- *
+ *
* @package Comienzo
* @copyright Copyright (C) 2011 Curtis McHale
* @license http://www.gnu.org/copyleft/gpl.html GPL
- *
+ *
* @since 2.0
*/
?>
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
- <div class="post-heading">
- <h2 class="post-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
- <p class="post-author">by <?php the_author_posts_link(); ?></p>
- <time class="date-published"><?php the_time( get_option('date_format') ); ?></time>
- </div><!-- /.post-heading -->
-
- <?php
-
- if( is_search() || is_archive() ){
- the_excerpt();
- } else{
- the_content('Read the rest of this entry &raquo;');
- }
+
+ <div class="post-heading">
+
+ <h2 class="post-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
+ <p class="post-author">by <?php the_author_posts_link(); ?></p>
+ <time class="date-published"><?php the_time( get_option('date_format') ); ?></time>
+
+ </div><!-- /.post-heading -->
+
+ <?php
+
+ if( is_search() || is_archive() ){
+ the_excerpt();
+ } else{
+ the_content('Read the rest of this entry &raquo;');
+ }
+
?>
- <p class="post-taxonomy"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', '); ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
+ <p class="post-taxonomy"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', '); ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
+
</article><!-- /post_class(); -->
<?php if( is_single() ) comments_template(); ?>
View
@@ -1,13 +1,13 @@
<?php
/**
* Sample custom page template
- *
+ *
* This file will create a custom page template for a site. You select them from the new page on the right hand side in the dropfown
- *
+ *
* @package Comienzo
* @copyright Copyright (C) 2011 Curtis McHale
* @license http://www.gnu.org/copyleft/gpl.html GPL
- *
+ *
* @since 1.0
*/
@@ -18,18 +18,18 @@
<?php get_header(); ?>
- <div id="page-custom">
+<div id="page-custom">
- <div id="content-wrapper">
-
- <article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
- <!-- custom page loop goes here -->
- </article><!-- /post_class(); -->
-
- </div><!-- /#content-wrapper -->
+ <div id="content-wrapper">
- <?php get_sidebar(); ?>
+ <article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
+ <!-- custom page loop goes here -->
+ </article><!-- /post_class(); -->
- </div><!-- /#page-custom -->
+ </div><!-- /#content-wrapper -->
+
+ <?php get_sidebar(); ?>
+
+</div><!-- /#page-custom -->
<?php get_footer(); ?>
Oops, something went wrong.

0 comments on commit 70b1be9

Please sign in to comment.