Explorar o código

tabs not spaces

consistency ftw
Eddie Machado %!s(int64=13) %!d(string=hai) anos
pai
achega
133a77e82e
Modificáronse 14 ficheiros con 610 adicións e 610 borrados
  1. 18 18
      404.php
  2. 65 65
      archive-custom_type.php
  3. 71 71
      archive.php
  4. 28 28
      comments.php
  5. 9 9
      footer.php
  6. 67 67
      functions.php
  7. 1 1
      header.php
  8. 65 65
      index.php
  9. 55 55
      page-custom.php
  10. 52 52
      page.php
  11. 50 50
      search.php
  12. 33 33
      single-custom_type.php
  13. 31 31
      single.php
  14. 65 65
      taxonomy-custom_cat.php

+ 18 - 18
404.php

@@ -1,43 +1,43 @@
 <?php get_header(); ?>
-			
+
 			<div id="content">
 
 				<div id="inner-content" class="wrap clearfix">
-			
+
 					<div id="main" class="eightcol first clearfix" role="main">
 
 						<article id="post-not-found" class="hentry clearfix">
-						
+
 							<header class="article-header">
-							
+
 								<h1><?php _e("Epic 404 - Article Not Found", "bonestheme"); ?></h1>
-						
+
 							</header> <!-- end article header -->
-					
+
 							<section class="entry-content">
-							
+
 								<p><?php _e("The article you were looking for was not found, but maybe try looking again!", "bonestheme"); ?></p>
-					
+
 							</section> <!-- end article section -->
 
 							<section class="search">
-				
-							    <p><?php get_search_form(); ?></p>
-				
+
+									<p><?php get_search_form(); ?></p>
+
 							</section> <!-- end search section -->
-						
+
 							<footer class="article-footer">
-							
-							    <p><?php _e("This is the 404.php template.", "bonestheme"); ?></p>
-							
+
+									<p><?php _e("This is the 404.php template.", "bonestheme"); ?></p>
+
 							</footer> <!-- end article footer -->
-					
+
 						</article> <!-- end article -->
-			
+
 					</div> <!-- end #main -->
 
 				</div> <!-- end #inner-content -->
-    
+
 			</div> <!-- end #content -->
 
 <?php get_footer(); ?>

+ 65 - 65
archive-custom_type.php

@@ -1,73 +1,73 @@
 <?php get_header(); ?>
-			
+
 			<div id="content">
-			
+
 				<div id="inner-content" class="wrap clearfix">
-				
-				    <div id="main" class="eightcol first clearfix" role="main">
-				
+
+						<div id="main" class="eightcol first clearfix" role="main">
+
 						<h1 class="archive-title h2"><?php post_type_archive_title(); ?></h1>
 
-					    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
-					
-					    <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
-						
-						    <header class="article-header">
-							
-							    <h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
-                  <p class="byline vcard"><?php
-                    printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link());
-                  ?></p>
-						
-						    </header> <!-- end article header -->
-					
-						    <section class="entry-content clearfix">
-						
-							    <?php the_excerpt(); ?>
-
-						    </section> <!-- end article section -->
-						
-						    <footer class="article-footer">
-							
-						    </footer> <!-- end article footer -->
-					
-					    </article> <!-- end article -->
-					
-					    <?php endwhile; ?>	
-					
-					        <?php if (function_exists('bones_page_navi')) { ?>
-					            <?php bones_page_navi(); ?>
-					        <?php } else { ?>
-					            <nav class="wp-prev-next">
-					                <ul class="clearfix">
-					        	        <li class="prev-link"><?php next_posts_link(__('&laquo; Older Entries', "bonestheme")) ?></li>
-					        	        <li class="next-link"><?php previous_posts_link(__('Newer Entries &raquo;', "bonestheme")) ?></li>
-					                </ul>
-					            </nav>
-					        <?php } ?>
-					
-					    <?php else : ?>
-					
-    					    <article id="post-not-found" class="hentry clearfix">
-    						    <header class="article-header">
-    							    <h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
-    					    	</header>
-    						    <section class="entry-content">
-    							    <p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
-        						</section>
-    	    					<footer class="article-footer">
-    		    				    <p><?php _e("This is the error message in the custom posty type archive template.", "bonestheme"); ?></p>
-    			    			</footer>
-    				    	</article>
-					
-					    <?php endif; ?>
-			
-    				</div> <!-- end #main -->
-    
-	    			<?php get_sidebar(); ?>
-                
-                </div> <!-- end #inner-content -->
-                
+							<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+
+							<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
+
+								<header class="article-header">
+
+									<h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
+									<p class="byline vcard"><?php
+										printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link());
+									?></p>
+
+								</header> <!-- end article header -->
+
+								<section class="entry-content clearfix">
+
+									<?php the_excerpt(); ?>
+
+								</section> <!-- end article section -->
+
+								<footer class="article-footer">
+
+								</footer> <!-- end article footer -->
+
+							</article> <!-- end article -->
+
+							<?php endwhile; ?>
+
+									<?php if (function_exists('bones_page_navi')) { ?>
+											<?php bones_page_navi(); ?>
+									<?php } else { ?>
+											<nav class="wp-prev-next">
+													<ul class="clearfix">
+														<li class="prev-link"><?php next_posts_link(__('&laquo; Older Entries', "bonestheme")) ?></li>
+														<li class="next-link"><?php previous_posts_link(__('Newer Entries &raquo;', "bonestheme")) ?></li>
+													</ul>
+											</nav>
+									<?php } ?>
+
+							<?php else : ?>
+
+									<article id="post-not-found" class="hentry clearfix">
+										<header class="article-header">
+											<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+										</header>
+										<section class="entry-content">
+											<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+										</section>
+										<footer class="article-footer">
+												<p><?php _e("This is the error message in the custom posty type archive template.", "bonestheme"); ?></p>
+										</footer>
+									</article>
+
+							<?php endif; ?>
+
+						</div> <!-- end #main -->
+
+						<?php get_sidebar(); ?>
+
+								</div> <!-- end #inner-content -->
+
 			</div> <!-- end #content -->
 
 <?php get_footer(); ?>

+ 71 - 71
archive.php

@@ -4,104 +4,104 @@
 
 				<div id="inner-content" class="wrap clearfix">
 
-				    <div id="main" class="eightcol first clearfix" role="main">
+						<div id="main" class="eightcol first clearfix" role="main">
 
-					    <?php if (is_category()) { ?>
-						    <h1 class="archive-title h2">
-							    <span><?php _e("Posts Categorized:", "bonestheme"); ?></span> <?php single_cat_title(); ?>
-					    	</h1>
+							<?php if (is_category()) { ?>
+								<h1 class="archive-title h2">
+									<span><?php _e("Posts Categorized:", "bonestheme"); ?></span> <?php single_cat_title(); ?>
+								</h1>
 
-					    <?php } elseif (is_tag()) { ?>
-						    <h1 class="archive-title h2">
-							    <span><?php _e("Posts Tagged:", "bonestheme"); ?></span> <?php single_tag_title(); ?>
-						    </h1>
+							<?php } elseif (is_tag()) { ?>
+								<h1 class="archive-title h2">
+									<span><?php _e("Posts Tagged:", "bonestheme"); ?></span> <?php single_tag_title(); ?>
+								</h1>
 
-					    <?php } elseif (is_author()) {
-					    	global $post;
-					    	$author_id = $post->post_author;
-					    ?>
-						    <h1 class="archive-title h2">
+							<?php } elseif (is_author()) {
+								global $post;
+								$author_id = $post->post_author;
+							?>
+								<h1 class="archive-title h2">
 
-						    	<span><?php _e("Posts By:", "bonestheme"); ?></span> <?php the_author_meta('display_name', $author_id); ?>
+									<span><?php _e("Posts By:", "bonestheme"); ?></span> <?php the_author_meta('display_name', $author_id); ?>
 
-						    </h1>
-					    <?php } elseif (is_day()) { ?>
-						    <h1 class="archive-title h2">
-	    						<span><?php _e("Daily Archives:", "bonestheme"); ?></span> <?php the_time('l, F j, Y'); ?>
-						    </h1>
+								</h1>
+							<?php } elseif (is_day()) { ?>
+								<h1 class="archive-title h2">
+									<span><?php _e("Daily Archives:", "bonestheme"); ?></span> <?php the_time('l, F j, Y'); ?>
+								</h1>
 
-		    			<?php } elseif (is_month()) { ?>
-			    		    <h1 class="archive-title h2">
-				    	    	<span><?php _e("Monthly Archives:", "bonestheme"); ?></span> <?php the_time('F Y'); ?>
-					        </h1>
+							<?php } elseif (is_month()) { ?>
+									<h1 class="archive-title h2">
+										<span><?php _e("Monthly Archives:", "bonestheme"); ?></span> <?php the_time('F Y'); ?>
+									</h1>
 
-					    <?php } elseif (is_year()) { ?>
-					        <h1 class="archive-title h2">
-					    	    <span><?php _e("Yearly Archives:", "bonestheme"); ?></span> <?php the_time('Y'); ?>
-					        </h1>
-					    <?php } ?>
+							<?php } elseif (is_year()) { ?>
+									<h1 class="archive-title h2">
+										<span><?php _e("Yearly Archives:", "bonestheme"); ?></span> <?php the_time('Y'); ?>
+									</h1>
+							<?php } ?>
 
-					    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+							<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 
-					    <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
+							<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
 
-						    <header class="article-header">
+								<header class="article-header">
 
-							    <h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
-                  <p class="byline vcard"><?php
-                    printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link(), get_the_category_list(', '));
-                  ?></p>
+									<h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
+									<p class="byline vcard"><?php
+										printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link(), get_the_category_list(', '));
+									?></p>
 
-						    </header> <!-- end article header -->
+								</header> <!-- end article header -->
 
-						    <section class="entry-content clearfix">
+								<section class="entry-content clearfix">
 
-							    <?php the_post_thumbnail( 'bones-thumb-300' ); ?>
+									<?php the_post_thumbnail( 'bones-thumb-300' ); ?>
 
-							    <?php the_excerpt(); ?>
+									<?php the_excerpt(); ?>
 
-						    </section> <!-- end article section -->
+								</section> <!-- end article section -->
 
-						    <footer class="article-footer">
+								<footer class="article-footer">
 
-						    </footer> <!-- end article footer -->
+								</footer> <!-- end article footer -->
 
-					    </article> <!-- end article -->
+							</article> <!-- end article -->
 
-					    <?php endwhile; ?>
+							<?php endwhile; ?>
 
-					        <?php if (function_exists('bones_page_navi')) { ?>
-						        <?php bones_page_navi(); ?>
-					        <?php } else { ?>
-						        <nav class="wp-prev-next">
-							        <ul class="clearfix">
-								        <li class="prev-link"><?php next_posts_link(__('&laquo; Older Entries', "bonestheme")) ?></li>
-								        <li class="next-link"><?php previous_posts_link(__('Newer Entries &raquo;', "bonestheme")) ?></li>
-							        </ul>
-					    	    </nav>
-					        <?php } ?>
+									<?php if (function_exists('bones_page_navi')) { ?>
+										<?php bones_page_navi(); ?>
+									<?php } else { ?>
+										<nav class="wp-prev-next">
+											<ul class="clearfix">
+												<li class="prev-link"><?php next_posts_link(__('&laquo; Older Entries', "bonestheme")) ?></li>
+												<li class="next-link"><?php previous_posts_link(__('Newer Entries &raquo;', "bonestheme")) ?></li>
+											</ul>
+										</nav>
+									<?php } ?>
 
-					    <?php else : ?>
+							<?php else : ?>
 
-    					    <article id="post-not-found" class="hentry clearfix">
-    						    <header class="article-header">
-    							    <h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
-    					    	</header>
-    						    <section class="entry-content">
-    							    <p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
-        						</section>
-    	    					<footer class="article-footer">
-    		    				    <p><?php _e("This is the error message in the archive.php template.", "bonestheme"); ?></p>
-    			    			</footer>
-    				    	</article>
+									<article id="post-not-found" class="hentry clearfix">
+										<header class="article-header">
+											<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+										</header>
+										<section class="entry-content">
+											<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+										</section>
+										<footer class="article-footer">
+												<p><?php _e("This is the error message in the archive.php template.", "bonestheme"); ?></p>
+										</footer>
+									</article>
 
-					    <?php endif; ?>
+							<?php endif; ?>
 
-    				</div> <!-- end #main -->
+						</div> <!-- end #main -->
 
-	    			<?php get_sidebar(); ?>
+						<?php get_sidebar(); ?>
 
-                </div> <!-- end #inner-content -->
+								</div> <!-- end #inner-content -->
 
 			</div> <!-- end #content -->
 

+ 28 - 28
comments.php

@@ -4,16 +4,16 @@ The comments page for Bones
 */
 
 // 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() ) { ?>
-  	<div class="alert alert-help">
-    	<p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments.", "bonestheme"); ?></p>
-  	</div>
-  <?php
-    return;
-  }
+	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
+		die ('Please do not load this page directly. Thanks!');
+
+	if ( post_password_required() ) { ?>
+		<div class="alert alert-help">
+			<p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments.", "bonestheme"); ?></p>
+		</div>
+	<?php
+		return;
+	}
 ?>
 
 <!-- You can start editing here. -->
@@ -23,9 +23,9 @@ The comments page for Bones
 
 	<nav id="comment-nav">
 		<ul class="clearfix">
-	  		<li><?php previous_comments_link() ?></li>
-	  		<li><?php next_comments_link() ?></li>
-	 	</ul>
+				<li><?php previous_comments_link() ?></li>
+				<li><?php next_comments_link() ?></li>
+		</ul>
 	</nav>
 
 	<ol class="commentlist">
@@ -34,15 +34,15 @@ The comments page for Bones
 
 	<nav id="comment-nav">
 		<ul class="clearfix">
-	  		<li><?php previous_comments_link() ?></li>
-	  		<li><?php next_comments_link() ?></li>
+				<li><?php previous_comments_link() ?></li>
+				<li><?php next_comments_link() ?></li>
 		</ul>
 	</nav>
 
 	<?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. -->
+			<!-- If comments are open, but there are no comments. -->
 
 	<?php else : // comments are closed ?>
 
@@ -65,9 +65,9 @@ The comments page for Bones
 	</div>
 
 	<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
-  	<div class="alert alert-help">
-  		<p><?php printf( __('You must be %1$slogged in%2$s to post a comment.', 'bonestheme'), '<a href="<?php echo wp_login_url( get_permalink() ); ?>">', '</a>' ); ?></p>
-  	</div>
+		<div class="alert alert-help">
+			<p><?php printf( __('You must be %1$slogged in%2$s to post a comment.', 'bonestheme'), '<a href="<?php echo wp_login_url( get_permalink() ); ?>">', '</a>' ); ?></p>
+		</div>
 	<?php else : ?>
 
 	<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
@@ -81,19 +81,19 @@ The comments page for Bones
 	<ul id="comment-form-elements" class="clearfix">
 
 		<li>
-		  <label for="author"><?php _e("Name", "bonestheme"); ?> <?php if ($req) _e("(required)"); ?></label>
-		  <input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" placeholder="<?php _e('Your Name*', 'bonestheme'); ?>" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
+			<label for="author"><?php _e("Name", "bonestheme"); ?> <?php if ($req) _e("(required)"); ?></label>
+			<input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" placeholder="<?php _e('Your Name*', 'bonestheme'); ?>" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
 		</li>
 
 		<li>
-		  <label for="email"><?php _e("Mail", "bonestheme"); ?> <?php if ($req) _e("(required)"); ?></label>
-		  <input type="email" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" placeholder="<?php _e('Your E-Mail*', 'bonestheme'); ?>" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
-		  <small><?php _e("(will not be published)", "bonestheme"); ?></small>
+			<label for="email"><?php _e("Mail", "bonestheme"); ?> <?php if ($req) _e("(required)"); ?></label>
+			<input type="email" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" placeholder="<?php _e('Your E-Mail*', 'bonestheme'); ?>" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
+			<small><?php _e("(will not be published)", "bonestheme"); ?></small>
 		</li>
 
 		<li>
-		  <label for="url"><?php _e("Website", "bonestheme"); ?></label>
-		  <input type="url" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" placeholder="<?php _e('Got a website?', 'bonestheme'); ?>" tabindex="3" />
+			<label for="url"><?php _e("Website", "bonestheme"); ?></label>
+			<input type="url" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" placeholder="<?php _e('Got a website?', 'bonestheme'); ?>" tabindex="3" />
 		</li>
 
 	</ul>
@@ -103,8 +103,8 @@ The comments page for Bones
 	<p><textarea name="comment" id="comment" placeholder="<?php _e('Your Comment here...', 'bonestheme'); ?>" tabindex="4"></textarea></p>
 
 	<p>
-	  <input name="submit" type="submit" id="submit" class="button" tabindex="5" value="<?php _e('Submit', 'bonestheme'); ?>" />
-	  <?php comment_id_fields(); ?>
+		<input name="submit" type="submit" id="submit" class="button" tabindex="5" value="<?php _e('Submit', 'bonestheme'); ?>" />
+		<?php comment_id_fields(); ?>
 	</p>
 
 	<div class="alert alert-info">

+ 9 - 9
footer.php

@@ -1,19 +1,19 @@
 			<footer class="footer" role="contentinfo">
-			
+
 				<div id="inner-footer" class="wrap clearfix">
-					
+
 					<nav role="navigation">
-    					<?php bones_footer_links(); ?>
-	                </nav>
-	                		
+							<?php bones_footer_links(); ?>
+									</nav>
+
 					<p class="source-org copyright">&copy; <?php echo date('Y'); ?> <?php bloginfo('name'); ?>.</p>
-				
+
 				</div> <!-- end #inner-footer -->
-				
+
 			</footer> <!-- end footer -->
-		
+
 		</div> <!-- end #container -->
-		
+
 		<!-- all js scripts are loaded in library/bones.php -->
 		<?php wp_footer(); ?>
 

+ 67 - 67
functions.php

@@ -12,10 +12,10 @@ sidebars, comments, ect.
 
 /*
 1. library/bones.php
-    - head cleanup (remove rsd, uri links, junk css, ect)
+	- head cleanup (remove rsd, uri links, junk css, ect)
 	- enqueueing scripts & styles
 	- theme support functions
-    - custom menu output & fallbacks
+	- custom menu output & fallbacks
 	- related post function
 	- page-navi function
 	- removing <p> from around images
@@ -26,22 +26,22 @@ sidebars, comments, ect.
 require_once('library/bones.php'); // if you remove this, bones will break
 /*
 2. library/custom-post-type.php
-    - an example custom post type
-    - example custom taxonomy (like categories)
-    - example custom taxonomy (like tags)
+	- an example custom post type
+	- example custom taxonomy (like categories)
+	- example custom taxonomy (like tags)
 */
 require_once('library/custom-post-type.php'); // you can disable this if you like
 /*
 3. library/admin.php
-    - removing some default WordPress dashboard widgets
-    - an example custom dashboard widget
-    - adding custom login css
-    - changing text in footer of admin
+	- removing some default WordPress dashboard widgets
+	- an example custom dashboard widget
+	- adding custom login css
+	- changing text in footer of admin
 */
 // require_once('library/admin.php'); // this comes turned off by default
 /*
 4. library/translation/translation.php
-    - adding support for other languages
+	- adding support for other languages
 */
 // require_once('library/translation/translation.php'); // this comes turned off by default
 
@@ -74,40 +74,40 @@ you like. Enjoy!
 
 // Sidebars & Widgetizes Areas
 function bones_register_sidebars() {
-    register_sidebar(array(
-    	'id' => 'sidebar1',
-    	'name' => __('Sidebar 1', 'bonestheme'),
-    	'description' => __('The first (primary) sidebar.', 'bonestheme'),
-    	'before_widget' => '<div id="%1$s" class="widget %2$s">',
-    	'after_widget' => '</div>',
-    	'before_title' => '<h4 class="widgettitle">',
-    	'after_title' => '</h4>',
-    ));
-
-    /*
-    to add more sidebars or widgetized areas, just copy
-    and edit the above sidebar code. In order to call
-    your new sidebar just use the following code:
-
-    Just change the name to whatever your new
-    sidebar's id is, for example:
-
-    register_sidebar(array(
-    	'id' => 'sidebar2',
-    	'name' => __('Sidebar 2', 'bonestheme'),
-    	'description' => __('The second (secondary) sidebar.', 'bonestheme'),
-    	'before_widget' => '<div id="%1$s" class="widget %2$s">',
-    	'after_widget' => '</div>',
-    	'before_title' => '<h4 class="widgettitle">',
-    	'after_title' => '</h4>',
-    ));
-
-    To call the sidebar in your template, you can just copy
-    the sidebar.php file and rename it to your sidebar's name.
-    So using the above example, it would be:
-    sidebar-sidebar2.php
-
-    */
+	register_sidebar(array(
+		'id' => 'sidebar1',
+		'name' => __('Sidebar 1', 'bonestheme'),
+		'description' => __('The first (primary) sidebar.', 'bonestheme'),
+		'before_widget' => '<div id="%1$s" class="widget %2$s">',
+		'after_widget' => '</div>',
+		'before_title' => '<h4 class="widgettitle">',
+		'after_title' => '</h4>',
+	));
+
+	/*
+	to add more sidebars or widgetized areas, just copy
+	and edit the above sidebar code. In order to call
+	your new sidebar just use the following code:
+
+	Just change the name to whatever your new
+	sidebar's id is, for example:
+
+	register_sidebar(array(
+		'id' => 'sidebar2',
+		'name' => __('Sidebar 2', 'bonestheme'),
+		'description' => __('The second (secondary) sidebar.', 'bonestheme'),
+		'before_widget' => '<div id="%1$s" class="widget %2$s">',
+		'after_widget' => '</div>',
+		'before_title' => '<h4 class="widgettitle">',
+		'after_title' => '</h4>',
+	));
+
+	To call the sidebar in your template, you can just copy
+	the sidebar.php file and rename it to your sidebar's name.
+	So using the above example, it would be:
+	sidebar-sidebar2.php
+
+	*/
 } // don't remove this bracket!
 
 /************* COMMENT LAYOUT *********************/
@@ -118,34 +118,34 @@ function bones_comments($comment, $args, $depth) {
 	<li <?php comment_class(); ?>>
 		<article id="comment-<?php comment_ID(); ?>" class="clearfix">
 			<header class="comment-author vcard">
-			    <?php
-			    /*
-			        this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:
-			        echo get_avatar($comment,$size='32',$default='<path_to_url>' );
-			    */
-			    ?>
-			    <!-- custom gravatar call -->
-			    <?php
-			    	// create variable
-			    	$bgauthemail = get_comment_author_email();
-			    ?>
-			    <img data-gravatar="http://www.gravatar.com/avatar/<?php echo md5($bgauthemail); ?>?s=32" class="load-gravatar avatar avatar-48 photo" height="32" width="32" src="<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif" />
-			    <!-- end custom gravatar call -->
+				<?php
+				/*
+					this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:
+					echo get_avatar($comment,$size='32',$default='<path_to_url>' );
+				*/
+				?>
+				<!-- custom gravatar call -->
+				<?php
+					// create variable
+					$bgauthemail = get_comment_author_email();
+				?>
+				<img data-gravatar="http://www.gravatar.com/avatar/<?php echo md5($bgauthemail); ?>?s=32" class="load-gravatar avatar avatar-48 photo" height="32" width="32" src="<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif" />
+				<!-- end custom gravatar call -->
 				<?php printf(__('<cite class="fn">%s</cite>', 'bonestheme'), get_comment_author_link()) ?>
 				<time datetime="<?php echo comment_time('Y-m-j'); ?>"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php comment_time(__('F jS, Y', 'bonestheme')); ?> </a></time>
 				<?php edit_comment_link(__('(Edit)', 'bonestheme'),'  ','') ?>
 			</header>
 			<?php if ($comment->comment_approved == '0') : ?>
-       			<div class="alert alert-info">
-          			<p><?php _e('Your comment is awaiting moderation.', 'bonestheme') ?></p>
-          		</div>
+				<div class="alert alert-info">
+					<p><?php _e('Your comment is awaiting moderation.', 'bonestheme') ?></p>
+				</div>
 			<?php endif; ?>
 			<section class="comment_content clearfix">
 				<?php comment_text() ?>
 			</section>
 			<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
 		</article>
-    <!-- </li> is added by WordPress automatically -->
+	<!-- </li> is added by WordPress automatically -->
 <?php
 } // don't remove this bracket!
 
@@ -153,12 +153,12 @@ function bones_comments($comment, $args, $depth) {
 
 // Search Form
 function bones_wpsearch($form) {
-    $form = '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" >
-    <label class="screen-reader-text" for="s">' . __('Search for:', 'bonestheme') . '</label>
-    <input type="text" value="' . get_search_query() . '" name="s" id="s" placeholder="'.esc_attr__('Search the Site...','bonestheme').'" />
-    <input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" />
-    </form>';
-    return $form;
+	$form = '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" >
+	<label class="screen-reader-text" for="s">' . __('Search for:', 'bonestheme') . '</label>
+	<input type="text" value="' . get_search_query() . '" name="s" id="s" placeholder="'.esc_attr__('Search the Site...','bonestheme').'" />
+	<input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" />
+	</form>';
+	return $form;
 } // don't remove this bracket!
 
 

+ 1 - 1
header.php

@@ -28,7 +28,7 @@
 		<meta name="msapplication-TileColor" content="#f01d4f">
 		<meta name="msapplication-TileImage" content="<?php echo get_template_directory_uri(); ?>/library/images/win8-tile-icon.png">
 
-  	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
+		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
 
 		<!-- wordpress head functions -->
 		<?php wp_head(); ?>

+ 65 - 65
index.php

@@ -1,72 +1,72 @@
 <?php get_header(); ?>
-			
+
 			<div id="content">
-			
+
 				<div id="inner-content" class="wrap clearfix">
-			
-				    <div id="main" class="eightcol first clearfix" role="main">
-
-					    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
-					
-					    <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
-						
-						    <header class="article-header">
-							
-							    <h1 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
-                  <p class="byline vcard"><?php
-                    printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), bones_get_the_author_posts_link(), get_the_category_list(', '));
-                  ?></p>
-						
-						    </header> <!-- end article header -->
-					
-						    <section class="entry-content clearfix">
-							    <?php the_content(); ?>
-						    </section> <!-- end article section -->
-						
-						    <footer class="article-footer">
-    							<p class="tags"><?php the_tags('<span class="tags-title">' . __('Tags:', 'bonestheme') . '</span> ', ', ', ''); ?></p>
-
-						    </footer> <!-- end article footer -->
-						    
-						    <?php // comments_template(); // uncomment if you want to use them ?>
-					
-					    </article> <!-- end article -->
-					
-					    <?php endwhile; ?>	
-					
-					        <?php if (function_exists('bones_page_navi')) { ?>
-					            <?php bones_page_navi(); ?>
-					        <?php } else { ?>
-					            <nav class="wp-prev-next">
-					                <ul class="clearfix">
-					        	        <li class="prev-link"><?php next_posts_link(__('&laquo; Older Entries', "bonestheme")) ?></li>
-					        	        <li class="next-link"><?php previous_posts_link(__('Newer Entries &raquo;', "bonestheme")) ?></li>
-					                </ul>
-					            </nav>
-					        <?php } ?>		
-					
-					    <?php else : ?>
-					    
-					        <article id="post-not-found" class="hentry clearfix">
-					            <header class="article-header">
-					        	    <h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
-					        	</header>
-					            <section class="entry-content">
-					        	    <p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
-					        	</section>
-					        	<footer class="article-footer">
-					        	    <p><?php _e("This is the error message in the index.php template.", "bonestheme"); ?></p>
-					        	</footer>
-					        </article>
-					
-					    <?php endif; ?>
-			
-				    </div> <!-- end #main -->
-    
-				    <?php get_sidebar(); ?>
-				    
+
+						<div id="main" class="eightcol first clearfix" role="main">
+
+							<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+
+							<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
+
+								<header class="article-header">
+
+									<h1 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
+									<p class="byline vcard"><?php
+										printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), bones_get_the_author_posts_link(), get_the_category_list(', '));
+									?></p>
+
+								</header> <!-- end article header -->
+
+								<section class="entry-content clearfix">
+									<?php the_content(); ?>
+								</section> <!-- end article section -->
+
+								<footer class="article-footer">
+									<p class="tags"><?php the_tags('<span class="tags-title">' . __('Tags:', 'bonestheme') . '</span> ', ', ', ''); ?></p>
+
+								</footer> <!-- end article footer -->
+
+								<?php // comments_template(); // uncomment if you want to use them ?>
+
+							</article> <!-- end article -->
+
+							<?php endwhile; ?>
+
+									<?php if (function_exists('bones_page_navi')) { ?>
+											<?php bones_page_navi(); ?>
+									<?php } else { ?>
+											<nav class="wp-prev-next">
+													<ul class="clearfix">
+														<li class="prev-link"><?php next_posts_link(__('&laquo; Older Entries', "bonestheme")) ?></li>
+														<li class="next-link"><?php previous_posts_link(__('Newer Entries &raquo;', "bonestheme")) ?></li>
+													</ul>
+											</nav>
+									<?php } ?>
+
+							<?php else : ?>
+
+									<article id="post-not-found" class="hentry clearfix">
+											<header class="article-header">
+												<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+										</header>
+											<section class="entry-content">
+												<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+										</section>
+										<footer class="article-footer">
+												<p><?php _e("This is the error message in the index.php template.", "bonestheme"); ?></p>
+										</footer>
+									</article>
+
+							<?php endif; ?>
+
+						</div> <!-- end #main -->
+
+						<?php get_sidebar(); ?>
+
 				</div> <!-- end #inner-content -->
-    
+
 			</div> <!-- end #content -->
 
 <?php get_footer(); ?>

+ 55 - 55
page-custom.php

@@ -5,64 +5,64 @@ Template Name: Custom Page Example
 ?>
 
 <?php get_header(); ?>
-			
+
 			<div id="content">
-			
+
 				<div id="inner-content" class="wrap clearfix">
-			
-				    <div id="main" class="eightcol first clearfix" role="main">
-
-					    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
-					
-					    <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
-						
-						    <header class="article-header">
-							
-							    <h1 class="page-title"><?php the_title(); ?></h1>
-                  <p class="byline vcard"><?php
-                    printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link());
-                  ?></p>
-
-						
-						    </header> <!-- end article header -->
-					
-						    <section class="entry-content">
-							    <?php the_content(); ?>
-						    </section> <!-- end article section -->
-						
-						    <footer class="article-footer">
-							    <p class="clearfix"><?php the_tags('<span class="tags">' . __('Tags:', 'bonestheme') . '</span> ', ', ', ''); ?></p>
-							
-						    </footer> <!-- end article footer -->
-						    
-						    <?php comments_template(); ?>
-					
-					    </article> <!-- end article -->
-					
-					    <?php endwhile; ?>	
-					
-					    <?php else : ?>
-					
-        					<article id="post-not-found" class="hentry clearfix">
-        					    <header class="article-header">
-        						    <h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
-        						</header>
-        					    <section class="entry-content">
-        						    <p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
-        						</section>
-        						<footer class="article-footer">
-        						    <p><?php _e("This is the error message in the page-custom.php template.", "bonestheme"); ?></p>
-        						</footer>
-        					</article>
-					
-					    <?php endif; ?>
-			
-				    </div> <!-- end #main -->
-    
-				    <?php get_sidebar(); ?>
-				    
+
+						<div id="main" class="eightcol first clearfix" role="main">
+
+							<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+
+							<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
+
+								<header class="article-header">
+
+									<h1 class="page-title"><?php the_title(); ?></h1>
+									<p class="byline vcard"><?php
+										printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link());
+									?></p>
+
+
+								</header> <!-- end article header -->
+
+								<section class="entry-content">
+									<?php the_content(); ?>
+								</section> <!-- end article section -->
+
+								<footer class="article-footer">
+									<p class="clearfix"><?php the_tags('<span class="tags">' . __('Tags:', 'bonestheme') . '</span> ', ', ', ''); ?></p>
+
+								</footer> <!-- end article footer -->
+
+								<?php comments_template(); ?>
+
+							</article> <!-- end article -->
+
+							<?php endwhile; ?>
+
+							<?php else : ?>
+
+									<article id="post-not-found" class="hentry clearfix">
+											<header class="article-header">
+												<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+										</header>
+											<section class="entry-content">
+												<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+										</section>
+										<footer class="article-footer">
+												<p><?php _e("This is the error message in the page-custom.php template.", "bonestheme"); ?></p>
+										</footer>
+									</article>
+
+							<?php endif; ?>
+
+						</div> <!-- end #main -->
+
+						<?php get_sidebar(); ?>
+
 				</div> <!-- end #inner-content -->
-    
+
 			</div> <!-- end #content -->
 
 <?php get_footer(); ?>

+ 52 - 52
page.php

@@ -1,60 +1,60 @@
 <?php get_header(); ?>
-			
+
 			<div id="content">
-			
+
 				<div id="inner-content" class="wrap clearfix">
-			
-				    <div id="main" class="eightcol first clearfix" role="main">
-
-					    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
-					
-					    <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
-						
-						    <header class="article-header">
-							
-							    <h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
-                  <p class="byline vcard"><?php
-                    printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link());
-                  ?></p>
-
-						
-						    </header> <!-- end article header -->
-					
-						    <section class="entry-content clearfix" itemprop="articleBody">
-							    <?php the_content(); ?>
+
+						<div id="main" class="eightcol first clearfix" role="main">
+
+							<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+
+							<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
+
+								<header class="article-header">
+
+									<h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
+									<p class="byline vcard"><?php
+										printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link());
+									?></p>
+
+
+								</header> <!-- end article header -->
+
+								<section class="entry-content clearfix" itemprop="articleBody">
+									<?php the_content(); ?>
 							</section> <!-- end article section -->
-						
-						    <footer class="article-footer">
-                  <?php the_tags('<span class="tags">' . __('Tags:', 'bonestheme') . '</span> ', ', ', ''); ?>
-							
-						    </footer> <!-- end article footer -->
-						    
-						    <?php comments_template(); ?>
-					
-					    </article> <!-- end article -->
-					
-					    <?php endwhile; else : ?>
-					
-    					    <article id="post-not-found" class="hentry clearfix">
-    					    	<header class="article-header">
-    					    		<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
-    					    	</header>
-    					    	<section class="entry-content">
-    					    		<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
-    					    	</section>
-    					    	<footer class="article-footer">
-    					    	    <p><?php _e("This is the error message in the page.php template.", "bonestheme"); ?></p>
-    					    	</footer>
-    					    </article>
-					
-					    <?php endif; ?>
-			
-    				</div> <!-- end #main -->
-    
-				    <?php get_sidebar(); ?>
-				    
+
+								<footer class="article-footer">
+									<?php the_tags('<span class="tags">' . __('Tags:', 'bonestheme') . '</span> ', ', ', ''); ?>
+
+								</footer> <!-- end article footer -->
+
+								<?php comments_template(); ?>
+
+							</article> <!-- end article -->
+
+							<?php endwhile; else : ?>
+
+									<article id="post-not-found" class="hentry clearfix">
+										<header class="article-header">
+											<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+										</header>
+										<section class="entry-content">
+											<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+										</section>
+										<footer class="article-footer">
+												<p><?php _e("This is the error message in the page.php template.", "bonestheme"); ?></p>
+										</footer>
+									</article>
+
+							<?php endif; ?>
+
+						</div> <!-- end #main -->
+
+						<?php get_sidebar(); ?>
+
 				</div> <!-- end #inner-content -->
-    
+
 			</div> <!-- end #content -->
 
 <?php get_footer(); ?>

+ 50 - 50
search.php

@@ -1,71 +1,71 @@
 <?php get_header(); ?>
-			
+
 			<div id="content">
 
 				<div id="inner-content" class="wrap clearfix">
-			
+
 					<div id="main" class="eightcol first clearfix" role="main">
 						<h1 class="archive-title"><span><?php _e('Search Results for:', 'bonestheme'); ?></span> <?php echo esc_attr(get_search_query()); ?></h1>
 
 						<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
-					
+
 							<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
-						
+
 								<header class="article-header">
 
 									<h3 class="search-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
-                  <p class="byline vcard"><?php
-                    printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link(), get_the_category_list(', '));
-                  ?></p>
-						
+									<p class="byline vcard"><?php
+										printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link(), get_the_category_list(', '));
+									?></p>
+
 								</header> <!-- end article header -->
-					
+
 								<section class="entry-content">
-								    <?php the_excerpt('<span class="read-more">' . __('Read more &raquo;', 'bonestheme') . '</span>'); ?>
-					
+										<?php the_excerpt('<span class="read-more">' . __('Read more &raquo;', 'bonestheme') . '</span>'); ?>
+
 								</section> <!-- end article section -->
-						
+
 								<footer class="article-footer">
-							
+
 								</footer> <!-- end article footer -->
-					
+
 							</article> <!-- end article -->
-					
-						<?php endwhile; ?>	
-					
-						    <?php if (function_exists('bones_page_navi')) { ?>
-						        <?php bones_page_navi(); ?>
-						    <?php } else { ?>
-						        <nav class="wp-prev-next">
-						            <ul class="clearfix">
-						    	        <li class="prev-link"><?php next_posts_link(__('&laquo; Older Entries', "bonestheme")) ?></li>
-						    	        <li class="next-link"><?php previous_posts_link(__('Newer Entries &raquo;', "bonestheme")) ?></li>
-						            </ul>
-						        </nav>
-						    <?php } ?>		
-					
-					    <?php else : ?>
-					
-    					    <article id="post-not-found" class="hentry clearfix">
-    					    	<header class="article-header">
-    					    		<h1><?php _e("Sorry, No Results.", "bonestheme"); ?></h1>
-    					    	</header>
-    					    	<section class="entry-content">
-    					    		<p><?php _e("Try your search again.", "bonestheme"); ?></p>
-    					    	</section>
-    					    	<footer class="article-footer">
-    					    	    <p><?php _e("This is the error message in the search.php template.", "bonestheme"); ?></p>
-    					    	</footer>
-    					    </article>
-					
-					    <?php endif; ?>
-			
-				    </div> <!-- end #main -->
-    			
-    			    <?php get_sidebar(); ?>
-    			
-    			</div> <!-- end #inner-content -->
-    
+
+						<?php endwhile; ?>
+
+								<?php if (function_exists('bones_page_navi')) { ?>
+										<?php bones_page_navi(); ?>
+								<?php } else { ?>
+										<nav class="wp-prev-next">
+												<ul class="clearfix">
+													<li class="prev-link"><?php next_posts_link(__('&laquo; Older Entries', "bonestheme")) ?></li>
+													<li class="next-link"><?php previous_posts_link(__('Newer Entries &raquo;', "bonestheme")) ?></li>
+												</ul>
+										</nav>
+								<?php } ?>
+
+							<?php else : ?>
+
+									<article id="post-not-found" class="hentry clearfix">
+										<header class="article-header">
+											<h1><?php _e("Sorry, No Results.", "bonestheme"); ?></h1>
+										</header>
+										<section class="entry-content">
+											<p><?php _e("Try your search again.", "bonestheme"); ?></p>
+										</section>
+										<footer class="article-footer">
+												<p><?php _e("This is the error message in the search.php template.", "bonestheme"); ?></p>
+										</footer>
+									</article>
+
+							<?php endif; ?>
+
+						</div> <!-- end #main -->
+
+							<?php get_sidebar(); ?>
+
+					</div> <!-- end #inner-content -->
+
 			</div> <!-- end #content -->
 
 <?php get_footer(); ?>

+ 33 - 33
single-custom_type.php

@@ -19,57 +19,57 @@ single-bookmarks.php
 
 				<div id="inner-content" class="wrap clearfix">
 
-				    <div id="main" class="eightcol first clearfix" role="main">
+						<div id="main" class="eightcol first clearfix" role="main">
 
-					    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+							<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 
-					    <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
+							<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
 
-						    <header class="article-header">
+								<header class="article-header">
 
-							    <h1 class="single-title custom-post-type-title"><?php the_title(); ?></h1>
-                  <p class="byline vcard"><?php
-                    printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link(), get_the_term_list( $post->ID, 'custom_cat', ' ', ', ', '' ));
-                  ?></p>
+									<h1 class="single-title custom-post-type-title"><?php the_title(); ?></h1>
+									<p class="byline vcard"><?php
+										printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link(), get_the_term_list( $post->ID, 'custom_cat', ' ', ', ', '' ));
+									?></p>
 
-						    </header> <!-- end article header -->
+								</header> <!-- end article header -->
 
-						    <section class="entry-content clearfix">
+								<section class="entry-content clearfix">
 
-							    <?php the_content(); ?>
+									<?php the_content(); ?>
 
-						    </section> <!-- end article section -->
+								</section> <!-- end article section -->
 
-						    <footer class="article-header">
-							    <p class="tags"><?php echo get_the_term_list( get_the_ID(), 'custom_tag', '<span class="tags-title">' . __('Custom Tags:', 'bonestheme') . '</span> ', ', ' ) ?></p>
+								<footer class="article-header">
+									<p class="tags"><?php echo get_the_term_list( get_the_ID(), 'custom_tag', '<span class="tags-title">' . __('Custom Tags:', 'bonestheme') . '</span> ', ', ' ) ?></p>
 
-						    </footer> <!-- end article footer -->
+								</footer> <!-- end article footer -->
 
-						    <?php comments_template(); ?>
+								<?php comments_template(); ?>
 
-					    </article> <!-- end article -->
+							</article> <!-- end article -->
 
-					    <?php endwhile; ?>
+							<?php endwhile; ?>
 
-					    <?php else : ?>
+							<?php else : ?>
 
-        					<article id="post-not-found" class="hentry clearfix">
-        						<header class="article-header">
-        							<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
-        						</header>
-        						<section class="entry-content">
-        							<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
-        						</section>
-        						<footer class="article-footer">
-        						    <p><?php _e("This is the error message in the single-custom_type.php template.", "bonestheme"); ?></p>
-        						</footer>
-        					</article>
+									<article id="post-not-found" class="hentry clearfix">
+										<header class="article-header">
+											<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+										</header>
+										<section class="entry-content">
+											<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+										</section>
+										<footer class="article-footer">
+												<p><?php _e("This is the error message in the single-custom_type.php template.", "bonestheme"); ?></p>
+										</footer>
+									</article>
 
-					    <?php endif; ?>
+							<?php endif; ?>
 
-				    </div> <!-- end #main -->
+						</div> <!-- end #main -->
 
-				    <?php get_sidebar(); ?>
+						<?php get_sidebar(); ?>
 
 				</div> <!-- end #inner-content -->
 

+ 31 - 31
single.php

@@ -1,61 +1,61 @@
 <?php get_header(); ?>
-			
+
 			<div id="content">
 
 				<div id="inner-content" class="wrap clearfix">
-			
+
 					<div id="main" class="eightcol first clearfix" role="main">
 
 						<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
-					
+
 							<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
-						
+
 								<header class="article-header">
-							
+
 									<h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
-                  <p class="byline vcard"><?php
-                    printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&amp;</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), bones_get_the_author_posts_link(), get_the_category_list(', '));
-                  ?></p>
-						
+									<p class="byline vcard"><?php
+										printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&amp;</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), bones_get_the_author_posts_link(), get_the_category_list(', '));
+									?></p>
+
 								</header> <!-- end article header -->
-					
+
 								<section class="entry-content clearfix" itemprop="articleBody">
 									<?php the_content(); ?>
 								</section> <!-- end article section -->
-						
+
 								<footer class="article-footer">
 									<?php the_tags('<p class="tags"><span class="tags-title">' . __('Tags:', 'bonestheme') . '</span> ', ', ', '</p>'); ?>
-							
+
 								</footer> <!-- end article footer -->
-					
+
 								<?php comments_template(); ?>
-					
+
 							</article> <!-- end article -->
-					
-						<?php endwhile; ?>			
-					
+
+						<?php endwhile; ?>
+
 						<?php else : ?>
-					
+
 							<article id="post-not-found" class="hentry clearfix">
-					    		<header class="article-header">
-					    			<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
-					    		</header>
-					    		<section class="entry-content">
-					    			<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
-					    		</section>
-					    		<footer class="article-footer">
-					    		    <p><?php _e("This is the error message in the single.php template.", "bonestheme"); ?></p>
-					    		</footer>
+									<header class="article-header">
+										<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+									</header>
+									<section class="entry-content">
+										<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+									</section>
+									<footer class="article-footer">
+											<p><?php _e("This is the error message in the single.php template.", "bonestheme"); ?></p>
+									</footer>
 							</article>
-					
+
 						<?php endif; ?>
-			
+
 					</div> <!-- end #main -->
-    
+
 					<?php get_sidebar(); ?>
 
 				</div> <!-- end #inner-content -->
-    
+
 			</div> <!-- end #content -->
 
 <?php get_footer(); ?>

+ 65 - 65
taxonomy-custom_cat.php

@@ -14,74 +14,74 @@ taxonomy-shoes.php
 ?>
 
 <?php get_header(); ?>
-			
+
 			<div id="content">
-			
+
 				<div id="inner-content" class="wrap clearfix">
-			
-				    <div id="main" class="eightcol first clearfix" role="main">
-				
-					    <h1 class="archive-title h2"><span><?php _e("Posts Categorized:", "bonestheme"); ?></span> <?php single_cat_title(); ?></h1>
-
-					    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
-					
-					    <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
-						
-						    <header class="article-header">
-							
-							    <h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
-                  <p class="byline vcard"><?php
-                    printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link(), get_the_term_list( get_the_ID(), 'custom_cat', "" ));
-                  ?></p>
-						
-						    </header> <!-- end article header -->
-					
-						    <section class="entry-content">
-							    <?php the_excerpt('<span class="read-more">' . __('Read More &raquo;', 'bonestheme') . '</span>'); ?>
-					
-						    </section> <!-- end article section -->
-						
-						    <footer class="article-footer">
-							
-						    </footer> <!-- end article footer -->
-					
-					    </article> <!-- end article -->
-					
-					    <?php endwhile; ?>	
-					
-					        <?php if (function_exists('bones_page_navi')) { ?>
-					            <?php bones_page_navi(); ?>
-					        <?php } else { ?>
-					            <nav class="wp-prev-next">
-					                <ul class="clearfix">
-					        	        <li class="prev-link"><?php next_posts_link(__('&laquo; Older Entries', "bonestheme")) ?></li>
-					        	        <li class="next-link"><?php previous_posts_link(__('Newer Entries &raquo;', "bonestheme")) ?></li>
-					                </ul>
-					            </nav>
-					        <?php } ?>
-					        
-					    <?php else : ?>
-					
-        					<article id="post-not-found" class="hentry clearfix">
-        						<header class="article-header">
-        							<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
-        						</header>
-        						<section class="entry-content">
-        							<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
-        						</section>
-        						<footer class="article-footer">
-        						    <p><?php _e("This is the error message in the taxonomy-custom_cat.php template.", "bonestheme"); ?></p>
-        						</footer>
-        					</article>
-					
-					    <?php endif; ?>
-			
-				    </div> <!-- end #main -->
-    
-				    <?php get_sidebar(); ?>
-				    
+
+						<div id="main" class="eightcol first clearfix" role="main">
+
+							<h1 class="archive-title h2"><span><?php _e("Posts Categorized:", "bonestheme"); ?></span> <?php single_cat_title(); ?></h1>
+
+							<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+
+							<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
+
+								<header class="article-header">
+
+									<h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
+									<p class="byline vcard"><?php
+										printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F jS, Y', 'bonestheme')), bones_get_the_author_posts_link(), get_the_term_list( get_the_ID(), 'custom_cat', "" ));
+									?></p>
+
+								</header> <!-- end article header -->
+
+								<section class="entry-content">
+									<?php the_excerpt('<span class="read-more">' . __('Read More &raquo;', 'bonestheme') . '</span>'); ?>
+
+								</section> <!-- end article section -->
+
+								<footer class="article-footer">
+
+								</footer> <!-- end article footer -->
+
+							</article> <!-- end article -->
+
+							<?php endwhile; ?>
+
+									<?php if (function_exists('bones_page_navi')) { ?>
+											<?php bones_page_navi(); ?>
+									<?php } else { ?>
+											<nav class="wp-prev-next">
+													<ul class="clearfix">
+														<li class="prev-link"><?php next_posts_link(__('&laquo; Older Entries', "bonestheme")) ?></li>
+														<li class="next-link"><?php previous_posts_link(__('Newer Entries &raquo;', "bonestheme")) ?></li>
+													</ul>
+											</nav>
+									<?php } ?>
+
+							<?php else : ?>
+
+									<article id="post-not-found" class="hentry clearfix">
+										<header class="article-header">
+											<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+										</header>
+										<section class="entry-content">
+											<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+										</section>
+										<footer class="article-footer">
+												<p><?php _e("This is the error message in the taxonomy-custom_cat.php template.", "bonestheme"); ?></p>
+										</footer>
+									</article>
+
+							<?php endif; ?>
+
+						</div> <!-- end #main -->
+
+						<?php get_sidebar(); ?>
+
 				</div> <!-- end #inner-content -->
-    
+
 			</div> <!-- end #content -->
 
 <?php get_footer(); ?>