Przeglądaj źródła

spacing corrections to comply better with wp php coding standards

Christian Foellmann 12 lat temu
rodzic
commit
3721cb79ad
17 zmienionych plików z 174 dodań i 172 usunięć
  1. 3 3
      404.php
  2. 8 8
      archive-custom_type.php
  3. 14 14
      archive.php
  4. 19 19
      comments.php
  5. 2 2
      footer.php
  6. 17 17
      functions.php
  7. 9 9
      index.php
  8. 21 21
      library/admin.php
  9. 26 24
      library/bones.php
  10. 14 14
      library/custom-post-type.php
  11. 6 6
      page-custom.php
  12. 6 6
      page.php
  13. 8 8
      search.php
  14. 1 1
      sidebar.php
  15. 5 5
      single-custom_type.php
  16. 5 5
      single.php
  17. 10 10
      taxonomy-custom_cat.php

+ 3 - 3
404.php

@@ -10,13 +10,13 @@
 
 
 							<header class="article-header">
 							<header class="article-header">
 
 
-								<h1><?php _e("Epic 404 - Article Not Found", "bonestheme"); ?></h1>
+								<h1><?php _e( 'Epic 404 - Article Not Found', 'bonestheme' ); ?></h1>
 
 
 							</header> <!-- end article header -->
 							</header> <!-- end article header -->
 
 
 							<section class="entry-content">
 							<section class="entry-content">
 
 
-								<p><?php _e("The article you were looking for was not found, but maybe try looking again!", "bonestheme"); ?></p>
+								<p><?php _e( 'The article you were looking for was not found, but maybe try looking again!', 'bonestheme' ); ?></p>
 
 
 							</section> <!-- end article section -->
 							</section> <!-- end article section -->
 
 
@@ -28,7 +28,7 @@
 
 
 							<footer class="article-footer">
 							<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 -->
 							</footer> <!-- end article footer -->
 
 

+ 8 - 8
archive-custom_type.php

@@ -10,13 +10,13 @@
 
 
 							<?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>
 									<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
 									<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());
+										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>
 									?></p>
 
 
 								</header> <!-- end article header -->
 								</header> <!-- end article header -->
@@ -35,13 +35,13 @@
 
 
 							<?php endwhile; ?>
 							<?php endwhile; ?>
 
 
-									<?php if (function_exists('bones_page_navi')) { ?>
+									<?php if ( function_exists( 'bones_page_navi' ) ) { ?>
 											<?php bones_page_navi(); ?>
 											<?php bones_page_navi(); ?>
 									<?php } else { ?>
 									<?php } else { ?>
 											<nav class="wp-prev-next">
 											<nav class="wp-prev-next">
 													<ul class="clearfix">
 													<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>
+														<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>
 													</ul>
 											</nav>
 											</nav>
 									<?php } ?>
 									<?php } ?>
@@ -50,13 +50,13 @@
 
 
 									<article id="post-not-found" class="hentry clearfix">
 									<article id="post-not-found" class="hentry clearfix">
 										<header class="article-header">
 										<header class="article-header">
-											<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+											<h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
 										</header>
 										</header>
 										<section class="entry-content">
 										<section class="entry-content">
-											<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+											<p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
 										</section>
 										</section>
 										<footer class="article-footer">
 										<footer class="article-footer">
-												<p><?php _e("This is the error message in the custom posty type archive template.", "bonestheme"); ?></p>
+												<p><?php _e( 'This is the error message in the custom posty type archive template.', 'bonestheme' ); ?></p>
 										</footer>
 										</footer>
 									</article>
 									</article>
 
 

+ 14 - 14
archive.php

@@ -8,12 +8,12 @@
 
 
 							<?php if (is_category()) { ?>
 							<?php if (is_category()) { ?>
 								<h1 class="archive-title h2">
 								<h1 class="archive-title h2">
-									<span><?php _e("Posts Categorized:", "bonestheme"); ?></span> <?php single_cat_title(); ?>
+									<span><?php _e( 'Posts Categorized:', 'bonestheme' ); ?></span> <?php single_cat_title(); ?>
 								</h1>
 								</h1>
 
 
 							<?php } elseif (is_tag()) { ?>
 							<?php } elseif (is_tag()) { ?>
 								<h1 class="archive-title h2">
 								<h1 class="archive-title h2">
-									<span><?php _e("Posts Tagged:", "bonestheme"); ?></span> <?php single_tag_title(); ?>
+									<span><?php _e( 'Posts Tagged:', 'bonestheme' ); ?></span> <?php single_tag_title(); ?>
 								</h1>
 								</h1>
 
 
 							<?php } elseif (is_author()) {
 							<?php } elseif (is_author()) {
@@ -22,34 +22,34 @@
 							?>
 							?>
 								<h1 class="archive-title h2">
 								<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>
 								</h1>
 							<?php } elseif (is_day()) { ?>
 							<?php } elseif (is_day()) { ?>
 								<h1 class="archive-title h2">
 								<h1 class="archive-title h2">
-									<span><?php _e("Daily Archives:", "bonestheme"); ?></span> <?php the_time('l, F j, Y'); ?>
+									<span><?php _e( 'Daily Archives:', 'bonestheme' ); ?></span> <?php the_time('l, F j, Y'); ?>
 								</h1>
 								</h1>
 
 
 							<?php } elseif (is_month()) { ?>
 							<?php } elseif (is_month()) { ?>
 									<h1 class="archive-title h2">
 									<h1 class="archive-title h2">
-										<span><?php _e("Monthly Archives:", "bonestheme"); ?></span> <?php the_time('F Y'); ?>
+										<span><?php _e( 'Monthly Archives:', 'bonestheme' ); ?></span> <?php the_time('F Y'); ?>
 									</h1>
 									</h1>
 
 
 							<?php } elseif (is_year()) { ?>
 							<?php } elseif (is_year()) { ?>
 									<h1 class="archive-title h2">
 									<h1 class="archive-title h2">
-										<span><?php _e("Yearly Archives:", "bonestheme"); ?></span> <?php the_time('Y'); ?>
+										<span><?php _e( 'Yearly Archives:', 'bonestheme' ); ?></span> <?php the_time('Y'); ?>
 									</h1>
 									</h1>
 							<?php } ?>
 							<?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>
 									<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
 									<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(', '));
+										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>
 
 
 								</header> <!-- end article header -->
 								</header> <!-- end article header -->
@@ -70,13 +70,13 @@
 
 
 							<?php endwhile; ?>
 							<?php endwhile; ?>
 
 
-									<?php if (function_exists('bones_page_navi')) { ?>
+									<?php if ( function_exists( 'bones_page_navi' ) ) { ?>
 										<?php bones_page_navi(); ?>
 										<?php bones_page_navi(); ?>
 									<?php } else { ?>
 									<?php } else { ?>
 										<nav class="wp-prev-next">
 										<nav class="wp-prev-next">
 											<ul class="clearfix">
 											<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>
+												<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>
 											</ul>
 										</nav>
 										</nav>
 									<?php } ?>
 									<?php } ?>
@@ -85,13 +85,13 @@
 
 
 									<article id="post-not-found" class="hentry clearfix">
 									<article id="post-not-found" class="hentry clearfix">
 										<header class="article-header">
 										<header class="article-header">
-											<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+											<h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
 										</header>
 										</header>
 										<section class="entry-content">
 										<section class="entry-content">
-											<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+											<p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
 										</section>
 										</section>
 										<footer class="article-footer">
 										<footer class="article-footer">
-												<p><?php _e("This is the error message in the archive.php template.", "bonestheme"); ?></p>
+												<p><?php _e( 'This is the error message in the archive.php template.', 'bonestheme' ); ?></p>
 										</footer>
 										</footer>
 									</article>
 									</article>
 
 

+ 19 - 19
comments.php

@@ -4,12 +4,12 @@ The comments page for Bones
 */
 */
 
 
 // Do not delete these lines
 // Do not delete these lines
-	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
+	if ( ! empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) )
 		die ('Please do not load this page directly. Thanks!');
 		die ('Please do not load this page directly. Thanks!');
 
 
 	if ( post_password_required() ) { ?>
 	if ( post_password_required() ) { ?>
 		<div class="alert alert-help">
 		<div class="alert alert-help">
-			<p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments.", "bonestheme"); ?></p>
+			<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.', 'bonestheme' ); ?></p>
 		</div>
 		</div>
 	<?php
 	<?php
 		return;
 		return;
@@ -19,7 +19,7 @@ The comments page for Bones
 <!-- You can start editing here. -->
 <!-- You can start editing here. -->
 
 
 <?php if ( have_comments() ) : ?>
 <?php if ( have_comments() ) : ?>
-	<h3 id="comments" class="h2"><?php comments_number(__('<span>No</span> Responses', 'bonestheme'), __('<span>One</span> Response', 'bonestheme'), _n('<span>%</span> Response', '<span>%</span> Responses', get_comments_number(),'bonestheme') );?> to &#8220;<?php the_title(); ?>&#8221;</h3>
+	<h3 id="comments" class="h2"><?php comments_number( __( '<span>No</span> Responses', 'bonestheme' ), __( '<span>One</span> Response', 'bonestheme' ), _n( '<span>%</span> Response', '<span>%</span> Responses', get_comments_number(), 'bonestheme' ) );?> to &#8220;<?php the_title(); ?>&#8221;</h3>
 
 
 	<nav id="comment-nav">
 	<nav id="comment-nav">
 		<ul class="clearfix">
 		<ul class="clearfix">
@@ -29,7 +29,7 @@ The comments page for Bones
 	</nav>
 	</nav>
 
 
 	<ol class="commentlist">
 	<ol class="commentlist">
-		<?php wp_list_comments('type=comment&callback=bones_comments'); ?>
+		<?php wp_list_comments( 'type=comment&callback=bones_comments' ); ?>
 	</ol>
 	</ol>
 
 
 	<nav id="comment-nav">
 	<nav id="comment-nav">
@@ -47,7 +47,7 @@ The comments page for Bones
 	<?php else : // comments are closed ?>
 	<?php else : // comments are closed ?>
 
 
 	<!-- If comments are closed. -->
 	<!-- If comments are closed. -->
-	<!--p class="nocomments"><?php _e("Comments are closed.", "bonestheme"); ?></p-->
+	<!--p class="nocomments"><?php _e( 'Comments are closed.', 'bonestheme' ); ?></p-->
 
 
 	<?php endif; ?>
 	<?php endif; ?>
 
 
@@ -58,7 +58,7 @@ The comments page for Bones
 
 
 <section id="respond" class="respond-form">
 <section id="respond" class="respond-form">
 
 
-	<h3 id="comment-form-title" class="h2"><?php comment_form_title( __('Leave a Reply', 'bonestheme'), __('Leave a Reply to %s', 'bonestheme' )); ?></h3>
+	<h3 id="comment-form-title" class="h2"><?php comment_form_title( __( 'Leave a Reply', 'bonestheme' ), __( 'Leave a Reply to %s', 'bonestheme' )); ?></h3>
 
 
 	<div id="cancel-comment-reply">
 	<div id="cancel-comment-reply">
 		<p class="small"><?php cancel_comment_reply_link(); ?></p>
 		<p class="small"><?php cancel_comment_reply_link(); ?></p>
@@ -66,7 +66,7 @@ The comments page for Bones
 
 
 	<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
 	<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
 		<div class="alert alert-help">
 		<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>
+			<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>
 	<?php else : ?>
 	<?php else : ?>
 
 
@@ -74,44 +74,44 @@ The comments page for Bones
 
 
 	<?php if ( is_user_logged_in() ) : ?>
 	<?php if ( is_user_logged_in() ) : ?>
 
 
-	<p class="comments-logged-in-as"><?php _e("Logged in as", "bonestheme"); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e("Log out of this account", "bonestheme"); ?>"><?php _e("Log out", "bonestheme"); ?> <?php _e("&raquo;", "bonestheme"); ?></a></p>
+	<p class="comments-logged-in-as"><?php _e( 'Logged in as', 'bonestheme' ); ?> <a href="<?php echo get_option( 'siteurl' ); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e( 'Log out of this account', 'bonestheme' ); ?>"><?php _e( 'Log out', 'bonestheme' ); ?> <?php _e( '&raquo;', 'bonestheme' ); ?></a></p>
 
 
 	<?php else : ?>
 	<?php else : ?>
 
 
 	<ul id="comment-form-elements" class="clearfix">
 	<ul id="comment-form-elements" class="clearfix">
 
 
 		<li>
 		<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>
 
 
 		<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>
 
 
 		<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>
 		</li>
 
 
 	</ul>
 	</ul>
 
 
 	<?php endif; ?>
 	<?php endif; ?>
 
 
-	<p><textarea name="comment" id="comment" placeholder="<?php _e('Your Comment here...', 'bonestheme'); ?>" tabindex="4"></textarea></p>
+	<p><textarea name="comment" id="comment" placeholder="<?php _e( 'Your Comment here...', 'bonestheme' ); ?>" tabindex="4"></textarea></p>
 
 
 	<p>
 	<p>
-		<input name="submit" type="submit" id="submit" class="button" tabindex="5" value="<?php _e('Submit', 'bonestheme'); ?>" />
+		<input name="submit" type="submit" id="submit" class="button" tabindex="5" value="<?php _e( 'Submit', 'bonestheme' ); ?>" />
 		<?php comment_id_fields(); ?>
 		<?php comment_id_fields(); ?>
 	</p>
 	</p>
 
 
 	<div class="alert alert-info">
 	<div class="alert alert-info">
-		<p id="allowed_tags" class="small"><strong>XHTML:</strong> <?php _e('You can use these tags', 'bonestheme'); ?>: <code><?php echo allowed_tags(); ?></code></p>
+		<p id="allowed_tags" class="small"><strong>XHTML:</strong> <?php _e( 'You can use these tags', 'bonestheme' ); ?>: <code><?php echo allowed_tags(); ?></code></p>
 	</div>
 	</div>
 
 
-	<?php do_action('comment_form', $post->ID); ?>
+	<?php do_action( 'comment_form', $post->ID ); ?>
 
 
 	</form>
 	</form>
 
 

+ 2 - 2
footer.php

@@ -4,9 +4,9 @@
 
 
 					<nav role="navigation">
 					<nav role="navigation">
 							<?php bones_footer_links(); ?>
 							<?php bones_footer_links(); ?>
-									</nav>
+					</nav>
 
 
-					<p class="source-org copyright">&copy; <?php echo date('Y'); ?> <?php bloginfo('name'); ?>.</p>
+					<p class="source-org copyright">&copy; <?php echo date('Y'); ?> <?php bloginfo( 'name' ); ?>.</p>
 
 
 				</div> <!-- end #inner-footer -->
 				</div> <!-- end #inner-footer -->
 
 

+ 17 - 17
functions.php

@@ -23,14 +23,14 @@ sidebars, comments, ect.
 	- custom google+ integration
 	- custom google+ integration
 	- adding custom fields to user profiles
 	- adding custom fields to user profiles
 */
 */
-require_once('library/bones.php'); // if you remove this, bones will break
+require_once( 'library/bones.php' ); // if you remove this, bones will break
 /*
 /*
 2. library/custom-post-type.php
 2. library/custom-post-type.php
 	- an example custom post type
 	- an example custom post type
 	- example custom taxonomy (like categories)
 	- example custom taxonomy (like categories)
 	- example custom taxonomy (like tags)
 	- example custom taxonomy (like tags)
 */
 */
-require_once('library/custom-post-type.php'); // you can disable this if you like
+require_once( 'library/custom-post-type.php' ); // you can disable this if you like
 /*
 /*
 3. library/admin.php
 3. library/admin.php
 	- removing some default WordPress dashboard widgets
 	- removing some default WordPress dashboard widgets
@@ -38,12 +38,12 @@ require_once('library/custom-post-type.php'); // you can disable this if you lik
 	- adding custom login css
 	- adding custom login css
 	- changing text in footer of admin
 	- changing text in footer of admin
 */
 */
-// require_once('library/admin.php'); // this comes turned off by default
+// require_once( 'library/admin.php' ); // this comes turned off by default
 /*
 /*
 4. library/translation/translation.php
 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
+// require_once( 'library/translation/translation.php' ); // this comes turned off by default
 
 
 /************* THUMBNAIL SIZE OPTIONS *************/
 /************* THUMBNAIL SIZE OPTIONS *************/
 
 
@@ -76,8 +76,8 @@ you like. Enjoy!
 function bones_register_sidebars() {
 function bones_register_sidebars() {
 	register_sidebar(array(
 	register_sidebar(array(
 		'id' => 'sidebar1',
 		'id' => 'sidebar1',
-		'name' => __('Sidebar 1', 'bonestheme'),
-		'description' => __('The first (primary) sidebar.', 'bonestheme'),
+		'name' => __( 'Sidebar 1', 'bonestheme' ),
+		'description' => __( 'The first (primary) sidebar.', 'bonestheme' ),
 		'before_widget' => '<div id="%1$s" class="widget %2$s">',
 		'before_widget' => '<div id="%1$s" class="widget %2$s">',
 		'after_widget' => '</div>',
 		'after_widget' => '</div>',
 		'before_title' => '<h4 class="widgettitle">',
 		'before_title' => '<h4 class="widgettitle">',
@@ -94,8 +94,8 @@ function bones_register_sidebars() {
 
 
 	register_sidebar(array(
 	register_sidebar(array(
 		'id' => 'sidebar2',
 		'id' => 'sidebar2',
-		'name' => __('Sidebar 2', 'bonestheme'),
-		'description' => __('The second (secondary) sidebar.', 'bonestheme'),
+		'name' => __( 'Sidebar 2', 'bonestheme' ),
+		'description' => __( 'The second (secondary) sidebar.', 'bonestheme' ),
 		'before_widget' => '<div id="%1$s" class="widget %2$s">',
 		'before_widget' => '<div id="%1$s" class="widget %2$s">',
 		'after_widget' => '</div>',
 		'after_widget' => '</div>',
 		'before_title' => '<h4 class="widgettitle">',
 		'before_title' => '<h4 class="widgettitle">',
@@ -113,7 +113,7 @@ function bones_register_sidebars() {
 /************* COMMENT LAYOUT *********************/
 /************* COMMENT LAYOUT *********************/
 
 
 // Comment Layout
 // Comment Layout
-function bones_comments($comment, $args, $depth) {
+function bones_comments( $comment, $args, $depth ) {
    $GLOBALS['comment'] = $comment; ?>
    $GLOBALS['comment'] = $comment; ?>
 	<li <?php comment_class(); ?>>
 	<li <?php comment_class(); ?>>
 		<article id="comment-<?php comment_ID(); ?>" class="clearfix">
 		<article id="comment-<?php comment_ID(); ?>" class="clearfix">
@@ -129,15 +129,15 @@ function bones_comments($comment, $args, $depth) {
 					// create variable
 					// create variable
 					$bgauthemail = get_comment_author_email();
 					$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" />
+				<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 -->
 				<!-- 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'),'  ','') ?>
+				<?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>
 			</header>
 			<?php if ($comment->comment_approved == '0') : ?>
 			<?php if ($comment->comment_approved == '0') : ?>
 				<div class="alert alert-info">
 				<div class="alert alert-info">
-					<p><?php _e('Your comment is awaiting moderation.', 'bonestheme') ?></p>
+					<p><?php _e( 'Your comment is awaiting moderation.', 'bonestheme' ) ?></p>
 				</div>
 				</div>
 			<?php endif; ?>
 			<?php endif; ?>
 			<section class="comment_content clearfix">
 			<section class="comment_content clearfix">
@@ -154,9 +154,9 @@ function bones_comments($comment, $args, $depth) {
 // Search Form
 // Search Form
 function bones_wpsearch($form) {
 function bones_wpsearch($form) {
 	$form = '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" >
 	$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') .'" />
+	<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>';
 	</form>';
 	return $form;
 	return $form;
 } // don't remove this bracket!
 } // don't remove this bracket!

+ 9 - 9
index.php

@@ -8,13 +8,13 @@
 
 
 							<?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="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
 									<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
 									<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(', '));
+										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>
 									?></p>
 
 
 								</header> <!-- end article header -->
 								</header> <!-- end article header -->
@@ -24,7 +24,7 @@
 								</section> <!-- end article section -->
 								</section> <!-- end article section -->
 
 
 								<footer class="article-footer">
 								<footer class="article-footer">
-									<p class="tags"><?php the_tags('<span class="tags-title">' . __('Tags:', 'bonestheme') . '</span> ', ', ', ''); ?></p>
+									<p class="tags"><?php the_tags( '<span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '' ); ?></p>
 
 
 								</footer> <!-- end article footer -->
 								</footer> <!-- end article footer -->
 
 
@@ -34,13 +34,13 @@
 
 
 							<?php endwhile; ?>
 							<?php endwhile; ?>
 
 
-									<?php if (function_exists('bones_page_navi')) { ?>
+									<?php if ( function_exists( 'bones_page_navi' ) ) { ?>
 											<?php bones_page_navi(); ?>
 											<?php bones_page_navi(); ?>
 									<?php } else { ?>
 									<?php } else { ?>
 											<nav class="wp-prev-next">
 											<nav class="wp-prev-next">
 													<ul class="clearfix">
 													<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>
+														<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>
 													</ul>
 											</nav>
 											</nav>
 									<?php } ?>
 									<?php } ?>
@@ -49,13 +49,13 @@
 
 
 									<article id="post-not-found" class="hentry clearfix">
 									<article id="post-not-found" class="hentry clearfix">
 											<header class="article-header">
 											<header class="article-header">
-												<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+												<h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
 										</header>
 										</header>
 											<section class="entry-content">
 											<section class="entry-content">
-												<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+												<p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
 										</section>
 										</section>
 										<footer class="article-footer">
 										<footer class="article-footer">
-												<p><?php _e("This is the error message in the index.php template.", "bonestheme"); ?></p>
+												<p><?php _e( 'This is the error message in the index.php template.', 'bonestheme' ); ?></p>
 										</footer>
 										</footer>
 									</article>
 									</article>
 
 

+ 21 - 21
library/admin.php

@@ -19,18 +19,18 @@ Digging into WP - http://digwp.com/2010/10/customize-wordpress-dashboard/
 
 
 // disable default dashboard widgets
 // disable default dashboard widgets
 function disable_default_dashboard_widgets() {
 function disable_default_dashboard_widgets() {
-	// remove_meta_box('dashboard_right_now', 'dashboard', 'core');    // Right Now Widget
-	remove_meta_box('dashboard_recent_comments', 'dashboard', 'core'); // Comments Widget
-	remove_meta_box('dashboard_incoming_links', 'dashboard', 'core');  // Incoming Links Widget
-	remove_meta_box('dashboard_plugins', 'dashboard', 'core');         // Plugins Widget
+	// remove_meta_box( 'dashboard_right_now', 'dashboard', 'core' );    // Right Now Widget
+	remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'core' ); // Comments Widget
+	remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'core' );  // Incoming Links Widget
+	remove_meta_box( 'dashboard_plugins', 'dashboard', 'core' );         // Plugins Widget
 
 
-	// remove_meta_box('dashboard_quick_press', 'dashboard', 'core');  // Quick Press Widget
-	remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core');   // Recent Drafts Widget
-	remove_meta_box('dashboard_primary', 'dashboard', 'core');         //
-	remove_meta_box('dashboard_secondary', 'dashboard', 'core');       //
+	// remove_meta_box('dashboard_quick_press', 'dashboard', 'core' );  // Quick Press Widget
+	remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'core' );   // Recent Drafts Widget
+	remove_meta_box( 'dashboard_primary', 'dashboard', 'core' );         //
+	remove_meta_box( 'dashboard_secondary', 'dashboard', 'core' );       //
 
 
 	// removing plugin dashboard boxes
 	// removing plugin dashboard boxes
-	remove_meta_box('yoast_db_widget', 'dashboard', 'normal');         // Yoast's SEO Plugin Widget
+	remove_meta_box( 'yoast_db_widget', 'dashboard', 'normal' );         // Yoast's SEO Plugin Widget
 
 
 	/*
 	/*
 	have more plugin widgets you'd like to remove?
 	have more plugin widgets you'd like to remove?
@@ -53,9 +53,9 @@ http://digwp.com/2010/10/customize-wordpress-dashboard/
 
 
 // RSS Dashboard Widget
 // RSS Dashboard Widget
 function bones_rss_dashboard_widget() {
 function bones_rss_dashboard_widget() {
-	if(function_exists('fetch_feed')) {
-		include_once(ABSPATH . WPINC . '/feed.php');               // include the required file
-		$feed = fetch_feed('http://themble.com/feed/rss/');        // specify the source feed
+	if ( function_exists( 'fetch_feed' ) ) {
+		include_once( ABSPATH . WPINC . '/feed.php' );               // include the required file
+		$feed = fetch_feed( 'http://themble.com/feed/rss/' );        // specify the source feed
 		$limit = $feed->get_item_quantity(7);                      // specify number of items
 		$limit = $feed->get_item_quantity(7);                      // specify number of items
 		$items = $feed->get_items(0, $limit);                      // create an array of items
 		$items = $feed->get_items(0, $limit);                      // create an array of items
 	}
 	}
@@ -63,7 +63,7 @@ function bones_rss_dashboard_widget() {
 	else foreach ($items as $item) { ?>
 	else foreach ($items as $item) { ?>
 
 
 	<h4 style="margin-bottom: 0;">
 	<h4 style="margin-bottom: 0;">
-		<a href="<?php echo $item->get_permalink(); ?>" title="<?php echo mysql2date(__('j F Y @ g:i a', 'bonestheme'), $item->get_date('Y-m-d H:i:s')); ?>" target="_blank">
+		<a href="<?php echo $item->get_permalink(); ?>" title="<?php echo mysql2date( __( 'j F Y @ g:i a', 'bonestheme' ), $item->get_date( 'Y-m-d H:i:s' ) ); ?>" target="_blank">
 			<?php echo $item->get_title(); ?>
 			<?php echo $item->get_title(); ?>
 		</a>
 		</a>
 	</h4>
 	</h4>
@@ -75,7 +75,7 @@ function bones_rss_dashboard_widget() {
 
 
 // calling all custom dashboard widgets
 // calling all custom dashboard widgets
 function bones_custom_dashboard_widgets() {
 function bones_custom_dashboard_widgets() {
-	wp_add_dashboard_widget('bones_rss_dashboard_widget', __('Recently on Themble (Customize on admin.php)', 'bonestheme'), 'bones_rss_dashboard_widget');
+	wp_add_dashboard_widget( 'bones_rss_dashboard_widget', __( 'Recently on Themble (Customize on admin.php)', 'bonestheme' ), 'bones_rss_dashboard_widget' );
 	/*
 	/*
 	Be sure to drop any other created Dashboard Widgets
 	Be sure to drop any other created Dashboard Widgets
 	in this function and they will all load.
 	in this function and they will all load.
@@ -84,9 +84,9 @@ function bones_custom_dashboard_widgets() {
 
 
 
 
 // removing the dashboard widgets
 // removing the dashboard widgets
-add_action('admin_menu', 'disable_default_dashboard_widgets');
+add_action( 'admin_menu', 'disable_default_dashboard_widgets' );
 // adding any custom widgets
 // adding any custom widgets
-add_action('wp_dashboard_setup', 'bones_custom_dashboard_widgets');
+add_action( 'wp_dashboard_setup', 'bones_custom_dashboard_widgets' );
 
 
 
 
 /************* CUSTOM LOGIN PAGE *****************/
 /************* CUSTOM LOGIN PAGE *****************/
@@ -103,12 +103,12 @@ function bones_login_css() {
 function bones_login_url() {  return home_url(); }
 function bones_login_url() {  return home_url(); }
 
 
 // changing the alt text on the logo to show your site name
 // changing the alt text on the logo to show your site name
-function bones_login_title() { return get_option('blogname'); }
+function bones_login_title() { return get_option( 'blogname' ); }
 
 
 // calling it only on the login page
 // calling it only on the login page
 add_action( 'login_enqueue_scripts', 'bones_login_css', 10 );
 add_action( 'login_enqueue_scripts', 'bones_login_css', 10 );
-add_filter('login_headerurl', 'bones_login_url');
-add_filter('login_headertitle', 'bones_login_title');
+add_filter( 'login_headerurl', 'bones_login_url' );
+add_filter( 'login_headertitle', 'bones_login_title' );
 
 
 
 
 /************* CUSTOMIZE ADMIN *******************/
 /************* CUSTOMIZE ADMIN *******************/
@@ -122,10 +122,10 @@ you like.
 
 
 // Custom Backend Footer
 // Custom Backend Footer
 function bones_custom_admin_footer() {
 function bones_custom_admin_footer() {
-	_e('<span id="footer-thankyou">Developed by <a href="http://yoursite.com" target="_blank">Your Site Name</a></span>. Built using <a href="http://themble.com/bones" target="_blank">Bones</a>.', 'bonestheme');
+	_e( '<span id="footer-thankyou">Developed by <a href="http://yoursite.com" target="_blank">Your Site Name</a></span>. Built using <a href="http://themble.com/bones" target="_blank">Bones</a>.', 'bonestheme' );
 }
 }
 
 
 // adding it to the admin area
 // adding it to the admin area
-add_filter('admin_footer_text', 'bones_custom_admin_footer');
+add_filter( 'admin_footer_text', 'bones_custom_admin_footer' );
 
 
 ?>
 ?>

+ 26 - 24
library/bones.php

@@ -17,23 +17,23 @@ right up top and clean.
 *********************/
 *********************/
 
 
 // we're firing all out initial functions at the start
 // we're firing all out initial functions at the start
-add_action('after_setup_theme','bones_ahoy', 16);
+add_action( 'after_setup_theme', 'bones_ahoy', 16 );
 
 
 function bones_ahoy() {
 function bones_ahoy() {
 
 
     // launching operation cleanup
     // launching operation cleanup
-    add_action('init', 'bones_head_cleanup');
+    add_action( 'init', 'bones_head_cleanup' );
     // remove WP version from RSS
     // remove WP version from RSS
-    add_filter('the_generator', 'bones_rss_version');
+    add_filter( 'the_generator', 'bones_rss_version' );
     // remove pesky injected css for recent comments widget
     // remove pesky injected css for recent comments widget
     add_filter( 'wp_head', 'bones_remove_wp_widget_recent_comments_style', 1 );
     add_filter( 'wp_head', 'bones_remove_wp_widget_recent_comments_style', 1 );
     // clean up comment styles in the head
     // clean up comment styles in the head
-    add_action('wp_head', 'bones_remove_recent_comments_style', 1);
+    add_action( 'wp_head', 'bones_remove_recent_comments_style', 1 );
     // clean up gallery output in wp
     // clean up gallery output in wp
-    add_filter('gallery_style', 'bones_gallery_style');
+    add_filter( 'gallery_style', 'bones_gallery_style' );
 
 
     // enqueue base scripts and styles
     // enqueue base scripts and styles
-    add_action('wp_enqueue_scripts', 'bones_scripts_and_styles', 999);
+    add_action( 'wp_enqueue_scripts', 'bones_scripts_and_styles', 999 );
     // ie conditional wrapper
     // ie conditional wrapper
 
 
     // launching this stuff after theme setup
     // launching this stuff after theme setup
@@ -45,9 +45,9 @@ function bones_ahoy() {
     add_filter( 'get_search_form', 'bones_wpsearch' );
     add_filter( 'get_search_form', 'bones_wpsearch' );
 
 
     // cleaning up random code around images
     // cleaning up random code around images
-    add_filter('the_content', 'bones_filter_ptags_on_images');
+    add_filter( 'the_content', 'bones_filter_ptags_on_images' );
     // cleaning up excerpt
     // cleaning up excerpt
-    add_filter('excerpt_more', 'bones_excerpt_more');
+    add_filter( 'excerpt_more', 'bones_excerpt_more' );
 
 
 } /* end bones ahoy */
 } /* end bones ahoy */
 
 
@@ -78,10 +78,10 @@ function bones_head_cleanup() {
 	remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
 	remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
 	// WP version
 	// WP version
 	remove_action( 'wp_head', 'wp_generator' );
 	remove_action( 'wp_head', 'wp_generator' );
-  // remove WP version from css
-  add_filter( 'style_loader_src', 'bones_remove_wp_ver_css_js', 9999 );
-  // remove Wp version from scripts
-  add_filter( 'script_loader_src', 'bones_remove_wp_ver_css_js', 9999 );
+	// remove WP version from css
+	add_filter( 'style_loader_src', 'bones_remove_wp_ver_css_js', 9999 );
+	// remove Wp version from scripts
+	add_filter( 'script_loader_src', 'bones_remove_wp_ver_css_js', 9999 );
 
 
 } /* end bones head cleanup */
 } /* end bones head cleanup */
 
 
@@ -97,8 +97,8 @@ function bones_remove_wp_ver_css_js( $src ) {
 
 
 // remove injected CSS for recent comments widget
 // remove injected CSS for recent comments widget
 function bones_remove_wp_widget_recent_comments_style() {
 function bones_remove_wp_widget_recent_comments_style() {
-   if ( has_filter('wp_head', 'wp_widget_recent_comments_style') ) {
-      remove_filter('wp_head', 'wp_widget_recent_comments_style' );
+   if ( has_filter( 'wp_head', 'wp_widget_recent_comments_style' ) ) {
+      remove_filter( 'wp_head', 'wp_widget_recent_comments_style' );
    }
    }
 }
 }
 
 
@@ -106,13 +106,13 @@ function bones_remove_wp_widget_recent_comments_style() {
 function bones_remove_recent_comments_style() {
 function bones_remove_recent_comments_style() {
   global $wp_widget_factory;
   global $wp_widget_factory;
   if (isset($wp_widget_factory->widgets['WP_Widget_Recent_Comments'])) {
   if (isset($wp_widget_factory->widgets['WP_Widget_Recent_Comments'])) {
-    remove_action('wp_head', array($wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style'));
+    remove_action( 'wp_head', array($wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style') );
   }
   }
 }
 }
 
 
 // remove injected CSS from gallery
 // remove injected CSS from gallery
 function bones_gallery_style($css) {
 function bones_gallery_style($css) {
-  return preg_replace("!<style type='text/css'>(.*?)</style>!s", '', $css);
+  return preg_replace( "!<style type='text/css'>(.*?)</style>!s", '', $css );
 }
 }
 
 
 
 
@@ -136,7 +136,7 @@ function bones_scripts_and_styles() {
 
 
     // comment reply script for threaded comments
     // comment reply script for threaded comments
     if ( is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) {
     if ( is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) {
-      wp_enqueue_script( 'comment-reply' );
+		wp_enqueue_script( 'comment-reply' );
     }
     }
 
 
     //adding scripts file in the footer
     //adding scripts file in the footer
@@ -145,7 +145,7 @@ function bones_scripts_and_styles() {
     // enqueue styles and scripts
     // enqueue styles and scripts
     wp_enqueue_script( 'bones-modernizr' );
     wp_enqueue_script( 'bones-modernizr' );
     wp_enqueue_style( 'bones-stylesheet' );
     wp_enqueue_style( 'bones-stylesheet' );
-    wp_enqueue_style('bones-ie-only');
+    wp_enqueue_style( 'bones-ie-only' );
 
 
     $wp_styles->add_data( 'bones-ie-only', 'conditional', 'lt IE 9' ); // add conditional wrapper around ie stylesheet
     $wp_styles->add_data( 'bones-ie-only', 'conditional', 'lt IE 9' ); // add conditional wrapper around ie stylesheet
 
 
@@ -168,7 +168,7 @@ THEME SUPPORT
 function bones_theme_support() {
 function bones_theme_support() {
 
 
 	// wp thumbnails (sizes handled in functions.php)
 	// wp thumbnails (sizes handled in functions.php)
-	add_theme_support('post-thumbnails');
+	add_theme_support( 'post-thumbnails' );
 
 
 	// default thumb size
 	// default thumb size
 	set_post_thumbnail_size(125, 125, true);
 	set_post_thumbnail_size(125, 125, true);
@@ -283,17 +283,19 @@ RELATED POSTS FUNCTION
 function bones_related_posts() {
 function bones_related_posts() {
 	echo '<ul id="bones-related-posts">';
 	echo '<ul id="bones-related-posts">';
 	global $post;
 	global $post;
-	$tags = wp_get_post_tags($post->ID);
+	$tags = wp_get_post_tags( $post->ID );
 	if($tags) {
 	if($tags) {
-		foreach($tags as $tag) { $tag_arr .= $tag->slug . ','; }
+		foreach( $tags as $tag ) { 
+			$tag_arr .= $tag->slug . ',';
+		}
         $args = array(
         $args = array(
         	'tag' => $tag_arr,
         	'tag' => $tag_arr,
         	'numberposts' => 5, /* you can change this to show more */
         	'numberposts' => 5, /* you can change this to show more */
         	'post__not_in' => array($post->ID)
         	'post__not_in' => array($post->ID)
      	);
      	);
-        $related_posts = get_posts($args);
+        $related_posts = get_posts( $args );
         if($related_posts) {
         if($related_posts) {
-        	foreach ($related_posts as $post) : setup_postdata($post); ?>
+        	foreach ( $related_posts as $post ) : setup_postdata( $post ); ?>
 	           	<li class="related_post"><a class="entry-unrelated" href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
 	           	<li class="related_post"><a class="entry-unrelated" href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
 	        <?php endforeach; }
 	        <?php endforeach; }
 	    else { ?>
 	    else { ?>
@@ -377,7 +379,7 @@ function bones_filter_ptags_on_images($content){
 function bones_excerpt_more($more) {
 function bones_excerpt_more($more) {
 	global $post;
 	global $post;
 	// edit here if you like
 	// edit here if you like
-return '...  <a class="excerpt-read-more" href="'. get_permalink($post->ID) . '" title="'. __('Read', 'bonestheme') . get_the_title($post->ID).'">'. __('Read more &raquo;', 'bonestheme') .'</a>';
+return '...  <a class="excerpt-read-more" href="'. get_permalink($post->ID) . '" title="'. __( 'Read', 'bonestheme' ) . get_the_title($post->ID).'">'. __( 'Read more &raquo;', 'bonestheme' ) .'</a>';
 }
 }
 
 
 /*
 /*

+ 14 - 14
library/custom-post-type.php

@@ -20,19 +20,19 @@ function custom_post_example() {
 	// creating (registering) the custom type 
 	// creating (registering) the custom type 
 	register_post_type( 'custom_type', /* (http://codex.wordpress.org/Function_Reference/register_post_type) */
 	register_post_type( 'custom_type', /* (http://codex.wordpress.org/Function_Reference/register_post_type) */
 	 	// let's now add all the options for this post type
 	 	// let's now add all the options for this post type
-		array('labels' => array(
-			'name' => __('Custom Types', 'bonestheme'), /* This is the Title of the Group */
-			'singular_name' => __('Custom Post', 'bonestheme'), /* This is the individual type */
-			'all_items' => __('All Custom Posts', 'bonestheme'), /* the all items menu item */
-			'add_new' => __('Add New', 'bonestheme'), /* The add new menu item */
-			'add_new_item' => __('Add New Custom Type', 'bonestheme'), /* Add New Display Title */
+		array( 'labels' => array(
+			'name' => __( 'Custom Types', 'bonestheme' ), /* This is the Title of the Group */
+			'singular_name' => __( 'Custom Post', 'bonestheme' ), /* This is the individual type */
+			'all_items' => __( 'All Custom Posts', 'bonestheme' ), /* the all items menu item */
+			'add_new' => __( 'Add New', 'bonestheme' ), /* The add new menu item */
+			'add_new_item' => __( 'Add New Custom Type', 'bonestheme' ), /* Add New Display Title */
 			'edit' => __( 'Edit', 'bonestheme' ), /* Edit Dialog */
 			'edit' => __( 'Edit', 'bonestheme' ), /* Edit Dialog */
-			'edit_item' => __('Edit Post Types', 'bonestheme'), /* Edit Display Title */
-			'new_item' => __('New Post Type', 'bonestheme'), /* New Display Title */
-			'view_item' => __('View Post Type', 'bonestheme'), /* View Display Title */
-			'search_items' => __('Search Post Type', 'bonestheme'), /* Search Custom Type Title */ 
-			'not_found' =>  __('Nothing found in the Database.', 'bonestheme'), /* This displays if there are no entries yet */ 
-			'not_found_in_trash' => __('Nothing found in Trash', 'bonestheme'), /* This displays if there is nothing in the trash */
+			'edit_item' => __( 'Edit Post Types', 'bonestheme' ), /* Edit Display Title */
+			'new_item' => __( 'New Post Type', 'bonestheme' ), /* New Display Title */
+			'view_item' => __( 'View Post Type', 'bonestheme' ), /* View Display Title */
+			'search_items' => __( 'Search Post Type', 'bonestheme' ), /* Search Custom Type Title */ 
+			'not_found' =>  __( 'Nothing found in the Database.', 'bonestheme' ), /* This displays if there are no entries yet */ 
+			'not_found_in_trash' => __( 'Nothing found in Trash', 'bonestheme' ), /* This displays if there is nothing in the trash */
 			'parent_item_colon' => ''
 			'parent_item_colon' => ''
 			), /* end of arrays */
 			), /* end of arrays */
 			'description' => __( 'This is the example custom post type', 'bonestheme' ), /* Custom Type Description */
 			'description' => __( 'This is the example custom post type', 'bonestheme' ), /* Custom Type Description */
@@ -53,9 +53,9 @@ function custom_post_example() {
 	); /* end of register post type */
 	); /* end of register post type */
 	
 	
 	/* this adds your post categories to your custom post type */
 	/* this adds your post categories to your custom post type */
-	register_taxonomy_for_object_type('category', 'custom_type');
+	register_taxonomy_for_object_type( 'category', 'custom_type' );
 	/* this adds your post tags to your custom post type */
 	/* this adds your post tags to your custom post type */
-	register_taxonomy_for_object_type('post_tag', 'custom_type');
+	register_taxonomy_for_object_type( 'post_tag', 'custom_type' );
 	
 	
 } 
 } 
 
 

+ 6 - 6
page-custom.php

@@ -14,13 +14,13 @@ Template Name: Custom Page Example
 
 
 							<?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" itemscope itemtype="http://schema.org/BlogPosting">
+							<article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
 
 
 								<header class="article-header">
 								<header class="article-header">
 
 
 									<h1 class="page-title"><?php the_title(); ?></h1>
 									<h1 class="page-title"><?php the_title(); ?></h1>
 									<p class="byline vcard"><?php
 									<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());
+										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>
 									?></p>
 
 
 
 
@@ -31,7 +31,7 @@ Template Name: Custom Page Example
 								</section> <!-- end article section -->
 								</section> <!-- end article section -->
 
 
 								<footer class="article-footer">
 								<footer class="article-footer">
-									<p class="clearfix"><?php the_tags('<span class="tags">' . __('Tags:', 'bonestheme') . '</span> ', ', ', ''); ?></p>
+									<p class="clearfix"><?php the_tags( '<span class="tags">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '' ); ?></p>
 
 
 								</footer> <!-- end article footer -->
 								</footer> <!-- end article footer -->
 
 
@@ -43,13 +43,13 @@ Template Name: Custom Page Example
 
 
 									<article id="post-not-found" class="hentry clearfix">
 									<article id="post-not-found" class="hentry clearfix">
 											<header class="article-header">
 											<header class="article-header">
-												<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+												<h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
 										</header>
 										</header>
 											<section class="entry-content">
 											<section class="entry-content">
-												<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+												<p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
 										</section>
 										</section>
 										<footer class="article-footer">
 										<footer class="article-footer">
-												<p><?php _e("This is the error message in the page-custom.php template.", "bonestheme"); ?></p>
+												<p><?php _e( 'This is the error message in the page-custom.php template.', 'bonestheme' ); ?></p>
 										</footer>
 										</footer>
 									</article>
 									</article>
 
 

+ 6 - 6
page.php

@@ -8,13 +8,13 @@
 
 
 							<?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" itemscope itemtype="http://schema.org/BlogPosting">
+							<article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
 
 
 								<header class="article-header">
 								<header class="article-header">
 
 
 									<h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
 									<h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
 									<p class="byline vcard"><?php
 									<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());
+										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>
 									?></p>
 
 
 
 
@@ -25,7 +25,7 @@
 							</section> <!-- end article section -->
 							</section> <!-- end article section -->
 
 
 								<footer class="article-footer">
 								<footer class="article-footer">
-									<?php the_tags('<span class="tags">' . __('Tags:', 'bonestheme') . '</span> ', ', ', ''); ?>
+									<?php the_tags( '<span class="tags">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '' ); ?>
 
 
 								</footer> <!-- end article footer -->
 								</footer> <!-- end article footer -->
 
 
@@ -37,13 +37,13 @@
 
 
 									<article id="post-not-found" class="hentry clearfix">
 									<article id="post-not-found" class="hentry clearfix">
 										<header class="article-header">
 										<header class="article-header">
-											<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+											<h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
 										</header>
 										</header>
 										<section class="entry-content">
 										<section class="entry-content">
-											<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+											<p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
 										</section>
 										</section>
 										<footer class="article-footer">
 										<footer class="article-footer">
-												<p><?php _e("This is the error message in the page.php template.", "bonestheme"); ?></p>
+												<p><?php _e( 'This is the error message in the page.php template.', 'bonestheme' ); ?></p>
 										</footer>
 										</footer>
 									</article>
 									</article>
 
 

+ 8 - 8
search.php

@@ -5,7 +5,7 @@
 				<div id="inner-content" class="wrap clearfix">
 				<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"><span><?php _e('Search Results for:', 'bonestheme'); ?></span> <?php echo esc_attr(get_search_query()); ?></h1>
+						<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(); ?>
 						<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 
 
@@ -15,13 +15,13 @@
 
 
 									<h3 class="search-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
 									<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
 									<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(', '));
+										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>
 
 
 								</header> <!-- end article header -->
 								</header> <!-- end article header -->
 
 
 								<section class="entry-content">
 								<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 -->
 								</section> <!-- end article section -->
 
 
@@ -38,8 +38,8 @@
 								<?php } else { ?>
 								<?php } else { ?>
 										<nav class="wp-prev-next">
 										<nav class="wp-prev-next">
 												<ul class="clearfix">
 												<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>
+													<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>
 												</ul>
 										</nav>
 										</nav>
 								<?php } ?>
 								<?php } ?>
@@ -48,13 +48,13 @@
 
 
 									<article id="post-not-found" class="hentry clearfix">
 									<article id="post-not-found" class="hentry clearfix">
 										<header class="article-header">
 										<header class="article-header">
-											<h1><?php _e("Sorry, No Results.", "bonestheme"); ?></h1>
+											<h1><?php _e( 'Sorry, No Results.', 'bonestheme' ); ?></h1>
 										</header>
 										</header>
 										<section class="entry-content">
 										<section class="entry-content">
-											<p><?php _e("Try your search again.", "bonestheme"); ?></p>
+											<p><?php _e( 'Try your search again.', 'bonestheme' ); ?></p>
 										</section>
 										</section>
 										<footer class="article-footer">
 										<footer class="article-footer">
-												<p><?php _e("This is the error message in the search.php template.", "bonestheme"); ?></p>
+												<p><?php _e( 'This is the error message in the search.php template.', 'bonestheme' ); ?></p>
 										</footer>
 										</footer>
 									</article>
 									</article>
 
 

+ 1 - 1
sidebar.php

@@ -9,7 +9,7 @@
 						<!-- This content shows up if there are no widgets defined in the backend. -->
 						<!-- This content shows up if there are no widgets defined in the backend. -->
 
 
 						<div class="alert alert-help">
 						<div class="alert alert-help">
-							<p><?php _e("Please activate some Widgets.", "bonestheme");  ?></p>
+							<p><?php _e( 'Please activate some Widgets.', 'bonestheme' );  ?></p>
 						</div>
 						</div>
 
 
 					<?php endif; ?>
 					<?php endif; ?>

+ 5 - 5
single-custom_type.php

@@ -29,7 +29,7 @@ single-bookmarks.php
 
 
 									<h1 class="single-title custom-post-type-title"><?php the_title(); ?></h1>
 									<h1 class="single-title custom-post-type-title"><?php the_title(); ?></h1>
 									<p class="byline vcard"><?php
 									<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', ' ', ', ', '' ));
+										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>
 									?></p>
 
 
 								</header> <!-- end article header -->
 								</header> <!-- end article header -->
@@ -41,7 +41,7 @@ single-bookmarks.php
 								</section> <!-- end article section -->
 								</section> <!-- end article section -->
 
 
 								<footer class="article-header">
 								<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>
+									<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 -->
 
 
@@ -55,13 +55,13 @@ single-bookmarks.php
 
 
 									<article id="post-not-found" class="hentry clearfix">
 									<article id="post-not-found" class="hentry clearfix">
 										<header class="article-header">
 										<header class="article-header">
-											<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+											<h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
 										</header>
 										</header>
 										<section class="entry-content">
 										<section class="entry-content">
-											<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+											<p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
 										</section>
 										</section>
 										<footer class="article-footer">
 										<footer class="article-footer">
-												<p><?php _e("This is the error message in the single-custom_type.php template.", "bonestheme"); ?></p>
+												<p><?php _e( 'This is the error message in the single-custom_type.php template.', 'bonestheme' ); ?></p>
 										</footer>
 										</footer>
 									</article>
 									</article>
 
 

+ 5 - 5
single.php

@@ -14,7 +14,7 @@
 
 
 									<h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 									<h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 									<p class="byline vcard"><?php
 									<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(', '));
+										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>
 
 
 								</header> <!-- end article header -->
 								</header> <!-- end article header -->
@@ -24,7 +24,7 @@
 								</section> <!-- end article section -->
 								</section> <!-- end article section -->
 
 
 								<footer class="article-footer">
 								<footer class="article-footer">
-									<?php the_tags('<p class="tags"><span class="tags-title">' . __('Tags:', 'bonestheme') . '</span> ', ', ', '</p>'); ?>
+									<?php the_tags( '<p class="tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?>
 
 
 								</footer> <!-- end article footer -->
 								</footer> <!-- end article footer -->
 
 
@@ -38,13 +38,13 @@
 
 
 							<article id="post-not-found" class="hentry clearfix">
 							<article id="post-not-found" class="hentry clearfix">
 									<header class="article-header">
 									<header class="article-header">
-										<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+										<h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
 									</header>
 									</header>
 									<section class="entry-content">
 									<section class="entry-content">
-										<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+										<p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
 									</section>
 									</section>
 									<footer class="article-footer">
 									<footer class="article-footer">
-											<p><?php _e("This is the error message in the single.php template.", "bonestheme"); ?></p>
+											<p><?php _e( 'This is the error message in the single.php template.', 'bonestheme' ); ?></p>
 									</footer>
 									</footer>
 							</article>
 							</article>
 
 

+ 10 - 10
taxonomy-custom_cat.php

@@ -21,23 +21,23 @@ taxonomy-shoes.php
 
 
 						<div id="main" class="eightcol first clearfix" role="main">
 						<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>
+							<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(); ?>
 							<?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>
 									<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
 									<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', "" ));
+										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>
 									?></p>
 
 
 								</header> <!-- end article header -->
 								</header> <!-- end article header -->
 
 
 								<section class="entry-content">
 								<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 -->
 								</section> <!-- end article section -->
 
 
@@ -49,13 +49,13 @@ taxonomy-shoes.php
 
 
 							<?php endwhile; ?>
 							<?php endwhile; ?>
 
 
-									<?php if (function_exists('bones_page_navi')) { ?>
+									<?php if ( function_exists( 'bones_page_navi' ) ) { ?>
 											<?php bones_page_navi(); ?>
 											<?php bones_page_navi(); ?>
 									<?php } else { ?>
 									<?php } else { ?>
 											<nav class="wp-prev-next">
 											<nav class="wp-prev-next">
 													<ul class="clearfix">
 													<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>
+														<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>
 													</ul>
 											</nav>
 											</nav>
 									<?php } ?>
 									<?php } ?>
@@ -64,13 +64,13 @@ taxonomy-shoes.php
 
 
 									<article id="post-not-found" class="hentry clearfix">
 									<article id="post-not-found" class="hentry clearfix">
 										<header class="article-header">
 										<header class="article-header">
-											<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
+											<h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
 										</header>
 										</header>
 										<section class="entry-content">
 										<section class="entry-content">
-											<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
+											<p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
 										</section>
 										</section>
 										<footer class="article-footer">
 										<footer class="article-footer">
-												<p><?php _e("This is the error message in the taxonomy-custom_cat.php template.", "bonestheme"); ?></p>
+												<p><?php _e( 'This is the error message in the taxonomy-custom_cat.php template.', 'bonestheme' ); ?></p>
 										</footer>
 										</footer>
 									</article>
 									</article>