瀏覽代碼

removed erroneously commented php markup

eddiemachado 13 年之前
父節點
當前提交
d883718071
共有 12 個文件被更改,包括 58 次插入67 次删除
  1. 10 12
      archive-custom_type.php
  2. 4 6
      archive.php
  3. 3 2
      footer.php
  4. 4 2
      functions.php
  5. 1 1
      header.php
  6. 10 12
      index.php
  7. 1 1
      page-custom.php
  8. 2 4
      page.php
  9. 9 11
      search.php
  10. 2 2
      single-custom_type.php
  11. 2 2
      single.php
  12. 10 12
      taxonomy-custom_cat.php

+ 10 - 12
archive-custom_type.php

@@ -34,17 +34,15 @@
 					
 					
 					    <?php endwhile; ?>	
 					    <?php endwhile; ?>	
 					
 					
-					        <?php if (function_exists('bones_page_navi')) { // page_navi is active ?>
-						
-						        <?php bones_page_navi(); // use the page navi function ?>
-
-					        <?php } else { // if it is disabled, display regular wp prev & next links ?>
-						        <nav class="wp-prev-next">
-							        <ul class="clearfix">
-								        <li class="prev-link"><?php next_posts_link(_e('&laquo; Older Entries', "bonestheme")) ?></li>
-								        <li class="next-link"><?php previous_posts_link(_e('Newer Entries &raquo;', "bonestheme")) ?></li>
-							        </ul>
-					    	    </nav>
+					        <?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(_e('&laquo; Older Entries', "bonestheme")) ?></li>
+					        	        <li class="next-link"><?php previous_posts_link(_e('Newer Entries &raquo;', "bonestheme")) ?></li>
+					                </ul>
+					            </nav>
 					        <?php } ?>
 					        <?php } ?>
 					
 					
 					    <?php else : ?>
 					    <?php else : ?>
@@ -65,7 +63,7 @@
 			
 			
     				</div> <!-- end #main -->
     				</div> <!-- end #main -->
     
     
-	    			<?php get_sidebar(); // sidebar 1 ?>
+	    			<?php get_sidebar(); ?>
                 
                 
                 </div> <!-- end #inner-content -->
                 </div> <!-- end #inner-content -->
                 
                 

+ 4 - 6
archive.php

@@ -67,11 +67,9 @@
 					
 					
 					    <?php endwhile; ?>	
 					    <?php endwhile; ?>	
 					
 					
-					        <?php if (function_exists('bones_page_navi')) { // if experimental feature is active ?>
-						
-						        <?php bones_page_navi(); // use the page navi function ?>
-
-					        <?php } else { // if it is disabled, display regular wp prev & next links ?>
+					        <?php if (function_exists('bones_page_navi')) { ?>
+						        <?php bones_page_navi(); ?>
+					        <?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(_e('&laquo; Older Entries', "bonestheme")) ?></li>
 								        <li class="prev-link"><?php next_posts_link(_e('&laquo; Older Entries', "bonestheme")) ?></li>
@@ -98,7 +96,7 @@
 			
 			
     				</div> <!-- end #main -->
     				</div> <!-- end #main -->
     
     
-	    			<?php get_sidebar(); // sidebar 1 ?>
+	    			<?php get_sidebar(); ?>
                 
                 
                 </div> <!-- end #inner-content -->
                 </div> <!-- end #inner-content -->
                 
                 

+ 3 - 2
footer.php

@@ -3,7 +3,7 @@
 				<div id="inner-footer" class="wrap clearfix">
 				<div id="inner-footer" class="wrap clearfix">
 					
 					
 					<nav role="navigation">
 					<nav role="navigation">
-    					<?php bones_footer_links(); // Adjust using Menus in Wordpress Admin ?>
+    					<?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>
@@ -14,7 +14,8 @@
 		
 		
 		</div> <!-- end #container -->
 		</div> <!-- end #container -->
 		
 		
-		<?php wp_footer(); // js scripts are inserted using this function ?>
+		<!-- all js scripts are loaded in library/bones.php -->
+		<?php wp_footer(); ?>
 
 
 	</body>
 	</body>
 
 

+ 4 - 2
functions.php

@@ -118,10 +118,12 @@ function bones_comments($comment, $args, $depth) {
 	<li <?php comment_class(); ?>>
 	<li <?php comment_class(); ?>>
 		<article id="comment-<?php comment_ID(); ?>" class="clearfix">
 		<article id="comment-<?php comment_ID(); ?>" class="clearfix">
 			<header class="comment-author vcard">
 			<header class="comment-author vcard">
-			    <?php /*
+			    <?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:
 			        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>' );
 			        echo get_avatar($comment,$size='32',$default='<path_to_url>' );
-			    */ ?>
+			    */ 
+			    ?>
 			    <!-- custom gravatar call -->
 			    <!-- custom gravatar call -->
 			    <?php
 			    <?php
 			    	// create variable
 			    	// create variable

+ 1 - 1
header.php

@@ -48,7 +48,7 @@
 					
 					
 					
 					
 					<nav role="navigation">
 					<nav role="navigation">
-						<?php bones_main_nav(); // Adjust using Menus in Wordpress Admin ?>
+						<?php bones_main_nav(); ?>
 					</nav>
 					</nav>
 				
 				
 				</div> <!-- end #inner-header -->
 				</div> <!-- end #inner-header -->

+ 10 - 12
index.php

@@ -34,17 +34,15 @@
 					
 					
 					    <?php endwhile; ?>	
 					    <?php endwhile; ?>	
 					
 					
-					        <?php if (function_exists('bones_page_navi')) { // if experimental feature is active ?>
-						
-						        <?php bones_page_navi(); // use the page navi function ?>
-						
-					        <?php } else { // if it is disabled, display regular wp prev & next links ?>
-						        <nav class="wp-prev-next">
-							        <ul class="clearfix">
-								        <li class="prev-link"><?php next_posts_link(_e('&laquo; Older Entries', 'bonestheme')) ?></li>
-								        <li class="next-link"><?php previous_posts_link(_e('Newer Entries &raquo;', 'bonestheme')) ?></li>
-							        </ul>
-						        </nav>
+					        <?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(_e('&laquo; Older Entries', "bonestheme")) ?></li>
+					        	        <li class="next-link"><?php previous_posts_link(_e('Newer Entries &raquo;', "bonestheme")) ?></li>
+					                </ul>
+					            </nav>
 					        <?php } ?>		
 					        <?php } ?>		
 					
 					
 					    <?php else : ?>
 					    <?php else : ?>
@@ -65,7 +63,7 @@
 			
 			
 				    </div> <!-- end #main -->
 				    </div> <!-- end #main -->
     
     
-				    <?php get_sidebar(); // sidebar 1 ?>
+				    <?php get_sidebar(); ?>
 				    
 				    
 				</div> <!-- end #inner-content -->
 				</div> <!-- end #inner-content -->
     
     

+ 1 - 1
page-custom.php

@@ -58,7 +58,7 @@ Template Name: Custom Page Example
 			
 			
 				    </div> <!-- end #main -->
 				    </div> <!-- end #main -->
     
     
-				    <?php get_sidebar(); // sidebar 1 ?>
+				    <?php get_sidebar(); ?>
 				    
 				    
 				</div> <!-- end #inner-content -->
 				</div> <!-- end #inner-content -->
     
     

+ 2 - 4
page.php

@@ -32,9 +32,7 @@
 					
 					
 					    </article> <!-- end article -->
 					    </article> <!-- end article -->
 					
 					
-					    <?php endwhile; ?>		
-					
-					    <?php else : ?>
+					    <?php endwhile; else : ?>
 					
 					
     					    <article id="post-not-found" class="hentry clearfix">
     					    <article id="post-not-found" class="hentry clearfix">
     					    	<header class="article-header">
     					    	<header class="article-header">
@@ -52,7 +50,7 @@
 			
 			
     				</div> <!-- end #main -->
     				</div> <!-- end #main -->
     
     
-				    <?php get_sidebar(); // sidebar 1 ?>
+				    <?php get_sidebar(); ?>
 				    
 				    
 				</div> <!-- end #inner-content -->
 				</div> <!-- end #inner-content -->
     
     

+ 9 - 11
search.php

@@ -33,18 +33,16 @@
 					
 					
 						<?php endwhile; ?>	
 						<?php endwhile; ?>	
 					
 					
-						    <?php if (function_exists('bones_page_navi')) { // if expirimental feature is active ?>
-						
-						        <?php bones_page_navi(); // use the page navi function ?>
-						
-					        <?php } else { // if it is disabled, display regular wp prev & next links ?>
+						    <?php if (function_exists('bones_page_navi')) { ?>
+						        <?php bones_page_navi(); ?>
+						    <?php } else { ?>
 						        <nav class="wp-prev-next">
 						        <nav class="wp-prev-next">
-							        <ul class="clearfix">
-								        <li class="prev-link"><?php next_posts_link(_e('&laquo; Older Entries', "bonestheme")) ?></li>
-								        <li class="next-link"><?php previous_posts_link(_e('Newer Entries &raquo;', "bonestheme")) ?></li>
-							        </ul>
+						            <ul class="clearfix">
+						    	        <li class="prev-link"><?php next_posts_link(_e('&laquo; Older Entries', "bonestheme")) ?></li>
+						    	        <li class="next-link"><?php previous_posts_link(_e('Newer Entries &raquo;', "bonestheme")) ?></li>
+						            </ul>
 						        </nav>
 						        </nav>
-					        <?php } ?>			
+						    <?php } ?>		
 					
 					
 					    <?php else : ?>
 					    <?php else : ?>
 					
 					
@@ -64,7 +62,7 @@
 			
 			
 				    </div> <!-- end #main -->
 				    </div> <!-- end #main -->
     			
     			
-    			    <?php get_sidebar(); // sidebar 1 ?>
+    			    <?php get_sidebar(); ?>
     			
     			
     			</div> <!-- end #inner-content -->
     			</div> <!-- end #inner-content -->
     
     

+ 2 - 2
single-custom_type.php

@@ -45,7 +45,7 @@ single-bookmarks.php
 							
 							
 						    </footer> <!-- end article footer -->
 						    </footer> <!-- end article footer -->
 						
 						
-						    <?php comments_template(); // you may not need this ?>
+						    <?php comments_template(); ?>
 					
 					
 					    </article> <!-- end article -->
 					    </article> <!-- end article -->
 					
 					
@@ -69,7 +69,7 @@ single-bookmarks.php
 			
 			
 				    </div> <!-- end #main -->
 				    </div> <!-- end #main -->
     
     
-				    <?php get_sidebar(); // sidebar 1 ?>
+				    <?php get_sidebar(); ?>
 				    
 				    
 				</div> <!-- end #inner-content -->
 				</div> <!-- end #inner-content -->
     
     

+ 2 - 2
single.php

@@ -28,7 +28,7 @@
 							
 							
 								</footer> <!-- end article footer -->
 								</footer> <!-- end article footer -->
 					
 					
-								<?php comments_template(); // comments should go inside the article element ?>
+								<?php comments_template(); ?>
 					
 					
 							</article> <!-- end article -->
 							</article> <!-- end article -->
 					
 					
@@ -52,7 +52,7 @@
 			
 			
 					</div> <!-- end #main -->
 					</div> <!-- end #main -->
     
     
-					<?php get_sidebar(); // sidebar 1 ?>
+					<?php get_sidebar(); ?>
 
 
 				</div> <!-- end #inner-content -->
 				</div> <!-- end #inner-content -->
     
     

+ 10 - 12
taxonomy-custom_cat.php

@@ -49,17 +49,15 @@ taxonomy-shoes.php
 					
 					
 					    <?php endwhile; ?>	
 					    <?php endwhile; ?>	
 					
 					
-					        <?php if (function_exists('bones_page_navi')) { // if expirimental feature is active ?>
-						
-						        <?php bones_page_navi(); // use the page navi function ?>
-
-					        <?php } else { // if it is disabled, display regular wp prev & next links ?>
-						        <nav class="wp-prev-next">
-							        <ul class="clearfix">
-								        <li class="prev-link"><?php next_posts_link(_e('&laquo; Older Entries', "bonestheme")) ?></li>
-								        <li class="next-link"><?php previous_posts_link(_e('Newer Entries &raquo;', "bonestheme")) ?></li>
-							        </ul>
-						        </nav>
+					        <?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(_e('&laquo; Older Entries', "bonestheme")) ?></li>
+					        	        <li class="next-link"><?php previous_posts_link(_e('Newer Entries &raquo;', "bonestheme")) ?></li>
+					                </ul>
+					            </nav>
 					        <?php } ?>
 					        <?php } ?>
 					        
 					        
 					    <?php else : ?>
 					    <?php else : ?>
@@ -80,7 +78,7 @@ taxonomy-shoes.php
 			
 			
 				    </div> <!-- end #main -->
 				    </div> <!-- end #main -->
     
     
-				    <?php get_sidebar(); // sidebar 1 ?>
+				    <?php get_sidebar(); ?>
 				    
 				    
 				</div> <!-- end #inner-content -->
 				</div> <!-- end #inner-content -->