Skip to content

Commit

Permalink
Formatting. Spaces over Tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
grayghostvisuals committed Dec 26, 2014
1 parent 409dde4 commit 3122609
Show file tree
Hide file tree
Showing 40 changed files with 1,410 additions and 1,441 deletions.
14 changes: 6 additions & 8 deletions 404.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<?php get_header(); ?>
<main class="clearfix" id="content" role="main">
<h2>Error 404 - Page Not Found</h2>
</main>

<main class="clearfix" id="content" role="main">
<h2>Error 404 - Page Not Found</h2>
</main>

<aside id="sidebar" role="complementary">
<?php get_sidebar(); ?>
</aside>

<aside id="sidebar" role="complementary">
<?php get_sidebar(); ?>
</aside>
<?php get_footer(); ?>
92 changes: 46 additions & 46 deletions archive.php
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
<?php get_header(); ?>

<?php
/* Queue the first post, that way we know
* what date 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().
*/
if ( have_posts() ) the_post();

/* 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();
/* Queue the first post, that way we know
* what date 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().
*/
if ( have_posts() ) the_post();

/* 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();
?>

<main id="content" class="clearfix" role="main">
<h1 class="page-title">
<?php if ( is_day() ) : ?>
<?php printf( 'Daily Archives: <span>%s</span>', get_the_date() ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( 'Monthly Archives: <span>%s</span>', get_the_date( 'F Y' ) ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( 'Yearly Archives: <span>%s</span>', get_the_date( 'Y' ) ); ?>
<?php elseif ( is_tag() ) : ?>
<?php printf( single_tag_title( 'Tag Archives : ' ) . ' ' . '<span>%s</span>', get_the_date( 'F Y' ) ); ?>
<?php else : ?>
<?php echo ( 'The Archives' ); ?>
<?php endif; ?>
</h1>

<?php if( have_posts() ) : while( have_posts() ) : the_post()?>
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<header>
<h1 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark tag" title="<?php the_title(); ?> blog post entry"><?php the_title(); ?></a></h1>
<?php get_template_part( 'inc/meta' ); ?>
</header>

<div class="entry-content">
<?php the_content(); ?>
</div>

<?php get_template_part( 'inc/entry-footer' ); ?>
</article>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'inc/error-msg' ); ?>
<?php endif; ?>

<?php get_template_part( 'inc/pagination-posts' ); ?>
<h1 class="page-title">
<?php if ( is_day() ) : ?>
<?php printf( 'Daily Archives: <span>%s</span>', get_the_date() ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( 'Monthly Archives: <span>%s</span>', get_the_date( 'F Y' ) ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( 'Yearly Archives: <span>%s</span>', get_the_date( 'Y' ) ); ?>
<?php elseif ( is_tag() ) : ?>
<?php printf( single_tag_title( 'Tag Archives : ' ) . ' ' . '<span>%s</span>', get_the_date( 'F Y' ) ); ?>
<?php else : ?>
<?php echo ( 'The Archives' ); ?>
<?php endif; ?>
</h1>

<?php if( have_posts() ) : while( have_posts() ) : the_post()?>
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<header>
<h1 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark tag" title="<?php the_title(); ?> blog post entry"><?php the_title(); ?></a></h1>
<?php get_template_part( 'inc/meta' ); ?>
</header>

<div class="entry-content">
<?php the_content(); ?>
</div>

<?php get_template_part( 'inc/entry-footer' ); ?>
</article>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'inc/error-msg' ); ?>
<?php endif; ?>

<?php get_template_part( 'inc/pagination-posts' ); ?>
</main>

<?php get_template_part( 'inc/widget-sidebar' ); ?>
Expand Down
34 changes: 17 additions & 17 deletions category.php
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<?php get_header(); ?>

<main id="content" class="clearfix" role="main">
<h1 class="page-title"><?php printf( 'Category Archives: %s', '<span>' . single_cat_title( '', false ) . '</span>' );?></h1>
<h1 class="page-title"><?php printf( 'Category Archives: %s', '<span>' . single_cat_title( '', false ) . '</span>' );?></h1>

<?php if ( have_posts() ) : while ( have_posts() ) : the_post()?>
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post()?>
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">

<header>
<h1 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark tag" title="<?php the_title(); ?> blog post entry"><?php the_title(); ?></a></h1>
<?php get_template_part( 'inc/meta' ); ?>
</header>
<header>
<h1 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark tag" title="<?php the_title(); ?> blog post entry"><?php the_title(); ?></a></h1>
<?php get_template_part( 'inc/meta' ); ?>
</header>

<div class="entry-content">
<?php the_content(); ?>
</div>
<div class="entry-content">
<?php the_content(); ?>
</div>

<?php get_template_part( 'inc/entry-footer' ); ?>
</article>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'inc/error-msg' ); ?>
<?php endif; ?>
<?php get_template_part( 'inc/entry-footer' ); ?>
</article>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'inc/error-msg' ); ?>
<?php endif; ?>

<?php get_template_part( 'inc/pagination-posts' ); ?>
<?php get_template_part( 'inc/pagination-posts' ); ?>
</main>

<?php get_template_part( 'inc/widget-sidebar' ); ?>
Expand Down
102 changes: 51 additions & 51 deletions comments.php
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
<?php
if( ! empty( $_SERVER[ 'SCRIPT_FILENAME' ] ) && 'comments.php' == basename( $_SERVER[ 'SCRIPT_FILENAME' ] ) )
die('please do not load this page directly kind sir');
if( ! empty( $_SERVER[ 'SCRIPT_FILENAME' ] ) && 'comments.php' == basename( $_SERVER[ 'SCRIPT_FILENAME' ] ) )
die('please do not load this page directly kind sir');
?>

<div class="comments">
<?php if ( post_password_required() ) : ?>
<p class="nopassword"><?php echo( 'This post is password protected. Enter the password to view any comments.' ); ?></p>
<?php return; ?>
<?php endif; ?>
<?php if ( post_password_required() ) : ?>
<p class="nopassword"><?php echo( 'This post is password protected. Enter the password to view any comments.' ); ?></p>
<?php return; ?>
<?php endif; ?>

<div id="comment-count">
<?php if ( have_comments() ) : ?>
<h3><a href="<?php the_permalink(); ?>#respond">Leave a Comment</a></h3>
<div id="comment-count">
<?php if ( have_comments() ) : ?>
<h3><a href="<?php the_permalink(); ?>#respond">Leave a Comment</a></h3>

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // check if there comments to navigate through ?>
<div class="pagination comment-pagination">
<span class="prev-comments-link"><?php previous_comments_link( '<span>&larr; older comments</span>' ); ?></span>
<span class="nxt-comments-link"><?php next_comments_link( '<span>newer comments &rarr;</span>' ); ?></span>
</div>
<?php endif; ?>
</div>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // check if there comments to navigate through ?>
<div class="pagination comment-pagination">
<span class="prev-comments-link"><?php previous_comments_link( '<span>&larr; older comments</span>' ); ?></span>
<span class="nxt-comments-link"><?php next_comments_link( '<span>newer comments &rarr;</span>' ); ?></span>
</div>
<?php endif; ?>
</div>

<ol class="comment-list">
<?php
$wpflex_comment_array = array(
'walker' => null,
'max_depth' => '',
'style' => 'ol',
'callback' => 'wpflex_comments',
'end-callback' => null,
'type' => 'comment',
'reply_text' => 'reply',
'page' => '',
'per_page' => '',
'reverse_top_level' => false,
'reverse_children' => false,
);
?>
<ol class="comment-list">
<?php
$wpflex_comment_array = array(
'walker' => null,
'max_depth' => '',
'style' => 'ol',
'callback' => 'wpflex_comments',
'end-callback' => null,
'type' => 'comment',
'reply_text' => 'reply',
'page' => '',
'per_page' => '',
'reverse_top_level' => false,
'reverse_children' => false,
);
?>

<?php wp_list_comments( $wpflex_comment_array ); ?>
</ol>
<?php wp_list_comments( $wpflex_comment_array ); ?>
</ol>

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<div class="pagination comment-pagination">
<span class="prev-comments-link"><?php previous_comments_link( '<span>&larr; older comments</span>' ); ?></span>
<span class="nxt-comments-link"><?php next_comments_link( '<span>newer comments &rarr;</span>' ); ?></span>
</div>
<?php endif; ?>
<?php else :
if ( ! comments_open() ) : ?>
<p class="nocomments"><?php echo( 'Comments are closed' ); ?></p>
<?php endif; ?>
<?php endif; ?>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<div class="pagination comment-pagination">
<span class="prev-comments-link"><?php previous_comments_link( '<span>&larr; older comments</span>' ); ?></span>
<span class="nxt-comments-link"><?php next_comments_link( '<span>newer comments &rarr;</span>' ); ?></span>
</div>
<?php endif; ?>
<?php else :
if ( ! comments_open() ) : ?>
<p class="nocomments"><?php echo( 'Comments are closed' ); ?></p>
<?php endif; ?>
<?php endif; ?>

<?php if ( comments_open() ) : ?>
<?php
$commentform_args = array( 'comment_notes_after' => '<p class="form-allowed-tags">You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:<pre><code class="language-markup">&lt;a href="" title=""&gt; &lt;abbr title=""&gt; &lt;acronym title=""&gt; &lt;b&gt; &lt;blockquote cite=""&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=""&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=""&gt; &lt;strike&gt; &lt;strong&gt;</code></pre></p>' );
?>
<?php comment_form($commentform_args); ?>
<?php endif; ?>
<?php if ( comments_open() ) : ?>
<?php
$commentform_args = array( 'comment_notes_after' => '<p class="form-allowed-tags">You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:<pre><code class="language-markup">&lt;a href="" title=""&gt; &lt;abbr title=""&gt; &lt;acronym title=""&gt; &lt;b&gt; &lt;blockquote cite=""&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=""&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=""&gt; &lt;strike&gt; &lt;strong&gt;</code></pre></p>' );
?>
<?php comment_form($commentform_args); ?>
<?php endif; ?>
</div>
Loading

0 comments on commit 3122609

Please sign in to comment.