Browse Source

changed clear to clearfix

Eddie Machado 15 năm trước cách đây
mục cha
commit
069e775863
13 tập tin đã thay đổi với 47 bổ sung và 47 xóa
  1. 3 3
      404.php
  2. 4 4
      archive.php
  3. 3 3
      comments.php
  4. 1 1
      functions.php
  5. 5 5
      image.php
  6. 5 5
      index.php
  7. 1 1
      library/plugins.php
  8. 4 4
      page-custom.php
  9. 4 4
      page.php
  10. 5 5
      search.php
  11. 4 4
      single-custom_type.php
  12. 4 4
      single.php
  13. 4 4
      taxonomy-custom_cat.php

+ 3 - 3
404.php

@@ -1,10 +1,10 @@
 <?php get_header(); ?>
 			
-			<div id="content" class="clear">
+			<div id="content" class="clearfix">
 			
-				<div id="main" class="col620 clear" role="main">
+				<div id="main" class="col620 clearfix" role="main">
 
-					<article id="post-not-found" class="clear">
+					<article id="post-not-found" class="clearfix">
 						
 						<header>
 							

+ 4 - 4
archive.php

@@ -1,8 +1,8 @@
 <?php get_header(); ?>
 			
-			<div id="content" class="clear">
+			<div id="content" class="clearfix">
 			
-				<div id="main" class="col620 clear" role="main">
+				<div id="main" class="col620 clearfix" role="main">
 				
 					<?php if (is_category()) { ?>
 						<h1 class="archive_title h2">
@@ -32,7 +32,7 @@
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" class="clear">
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
 						
 						<header>
 							
@@ -64,7 +64,7 @@
 
 					<?php } else { // if it is disabled, display regular wp prev & next links ?>
 						<nav class="wp-prev-next">
-							<ul class="clear">
+							<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>

+ 3 - 3
comments.php

@@ -23,7 +23,7 @@ The comments page for Bones
 	<h3 id="comments" class="h2"><?php comments_number('<span>No</span> Responses', '<span>One</span> Response', '<span>%</span> Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h3>
 
 	<nav id="comment-nav">
-		<ul class="clear">
+		<ul class="clearfix">
 	  		<li><?php previous_comments_link() ?></li>
 	  		<li><?php next_comments_link() ?></li>
 	 	</ul>
@@ -34,7 +34,7 @@ The comments page for Bones
 	</ol>
 	
 	<nav id="comment-nav">
-		<ul class="clear">
+		<ul class="clearfix">
 	  		<li><?php previous_comments_link() ?></li>
 	  		<li><?php next_comments_link() ?></li>
 		</ul>
@@ -78,7 +78,7 @@ The comments page for Bones
 
 	<?php else : ?>
 	
-	<ul id="comment-form-elements" class="clear">
+	<ul id="comment-form-elements" class="clearfix">
 		
 		<li>
 		  <label for="author">Name <?php if ($req) echo "(required)"; ?></label>

+ 1 - 1
functions.php

@@ -123,7 +123,7 @@ function bones_comments($comment, $args, $depth) {
           		
 			<?php endif; ?>
 			
-			<section class="comment_content clear">
+			<section class="comment_content clearfix">
 				<?php comment_text() ?>
 			</section>
 

+ 5 - 5
image.php

@@ -1,18 +1,18 @@
 <?php get_header(); ?>
 
-			<div id="content" class="clear">
+			<div id="content" class="clearfix">
 			
-				<div id="main" class="clear">
+				<div id="main" class="clearfix">
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" <?php post_class('clear'); ?>>
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
       
       					<header>
         					<h1 class="h2"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php the_title(); ?></h2>
       					</header>
       
-      					<section class="post_content clear">
+      					<section class="post_content clearfix">
       						<p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
       						<p class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></p>
 
@@ -21,7 +21,7 @@
       					
       					<footer>
 							<nav class="prev-next-links">
-								<ul class="clear">
+								<ul class="clearfix">
         							<li><?php previous_image_link() ?></li>
         							<li><?php next_image_link() ?></li>
         						</ul>

+ 5 - 5
index.php

@@ -1,12 +1,12 @@
 <?php get_header(); ?>
 			
-			<div id="content" class="clear">
+			<div id="content" class="clearfix">
 			
-				<div id="main" class="col620 clear" role="main">
+				<div id="main" class="col620 clearfix" role="main">
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" <?php post_class('clear'); ?>>
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
 						
 						<header>
 							
@@ -16,7 +16,7 @@
 						
 						</header> <!-- end article header -->
 					
-						<section class="post_content clear">
+						<section class="post_content clearfix">
 							<?php the_content(_e('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>', "bonestheme")); ?>
 					
 						</section> <!-- end article section -->
@@ -39,7 +39,7 @@
 						
 					<?php } else { // if it is disabled, display regular wp prev & next links ?>
 						<nav class="wp-prev-next">
-							<ul class="clear">
+							<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>

+ 1 - 1
library/plugins.php

@@ -61,7 +61,7 @@ function page_navi($before = '', $after = '') {
 		$start_page = 1;
 	}
 
-	echo $before.'<div class="page-navigation"><ul class="bones_page_navi clear">'."";
+	echo $before.'<div class="page-navigation"><ul class="bones_page_navi clearfix">'."";
 	if ($start_page >= 2 && $pages_to_show < $max_page) {
 		$first_page_text = "First";
 		echo '<li class="bpn-first-page-link"><a href="'.get_pagenum_link().'" title="'.$first_page_text.'">'.$first_page_text.'</a></li>';

+ 4 - 4
page-custom.php

@@ -6,13 +6,13 @@ Template Name: Custom Page Example
 
 <?php get_header(); ?>
 			
-			<div id="content" class="clear">
+			<div id="content" class="clearfix">
 			
-				<div id="main" class="col620 clear" role="main">
+				<div id="main" class="col620 clearfix" role="main">
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" class="clear">
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
 						
 						<header>
 							
@@ -29,7 +29,7 @@ Template Name: Custom Page Example
 						
 						<footer>
 			
-							<p class="clear"><?php the_tags('<span class="tags">Tags: ', ', ', '</span>'); ?></p>
+							<p class="clearfix"><?php the_tags('<span class="tags">Tags: ', ', ', '</span>'); ?></p>
 							
 						</footer> <!-- end article footer -->
 					

+ 4 - 4
page.php

@@ -1,12 +1,12 @@
 <?php get_header(); ?>
 			
-			<div id="content" class="clear">
+			<div id="content" class="clearfix">
 			
-				<div id="main" class="col620 clear" role="main">
+				<div id="main" class="col620 clearfix" role="main">
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" <?php post_class('clear'); ?>>
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
 						
 						<header>
 							
@@ -16,7 +16,7 @@
 						
 						</header> <!-- end article header -->
 					
-						<section class="post_content clear">
+						<section class="post_content clearfix">
 							<?php the_content(); ?>
 					
 						</section> <!-- end article section -->

+ 5 - 5
search.php

@@ -1,14 +1,14 @@
 <?php get_header(); ?>
 			
-			<div id="content" class="clear">
+			<div id="content" class="clearfix">
 			
-				<div id="main" class="col700 clear" role="main">
+				<div id="main" class="col700 clearfix" role="main">
 				
 					<h1 class="archive_title"><span>Search Results for:</span> <?php echo esc_attr(get_search_query()); ?></h1>
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" class="clear">
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
 						
 						<header>
 							
@@ -38,7 +38,7 @@
 						
 					<?php } else { // if it is disabled, display regular wp prev & next links ?>
 						<nav class="wp-prev-next">
-							<ul class="clear">
+							<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>
@@ -64,7 +64,7 @@
 			
 				</div> <!-- end #main -->
     			
-    			<div id="sidebar1" class="col220 clear">
+    			<div id="sidebar1" class="col220">
     				
     				<?php get_search_form(); ?>
     				

+ 4 - 4
single-custom_type.php

@@ -15,13 +15,13 @@ single-bookmarks.php
 
 <?php get_header(); ?>
 			
-			<div id="content" class="clear">
+			<div id="content" class="clearfix">
 			
-				<div id="main" class="col620 clear" role="main">
+				<div id="main" class="col620 clearfix" role="main">
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" <?php post_class('clear'); ?>>
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
 						
 						<header>
 							
@@ -31,7 +31,7 @@ single-bookmarks.php
 						
 						</header> <!-- end article header -->
 					
-						<section class="post_content clear">
+						<section class="post_content clearfix">
 							
 							<?php the_content(); ?>
 					

+ 4 - 4
single.php

@@ -1,12 +1,12 @@
 <?php get_header(); ?>
 			
-			<div id="content" class="clear">
+			<div id="content" class="clearfix">
 			
-				<div id="main" class="col620 clear" role="main">
+				<div id="main" class="col620 clearfix" role="main">
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 					
-					<article id="post-<?php the_ID(); ?>" <?php post_class('clear'); ?>>
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
 						
 						<header>
 							
@@ -16,7 +16,7 @@
 						
 						</header> <!-- end article header -->
 					
-						<section class="post_content clear">
+						<section class="post_content clearfix">
 							<?php the_content(); ?>
 							
 					

+ 4 - 4
taxonomy-custom_cat.php

@@ -15,15 +15,15 @@ taxonomy-shoes.php
 
 <?php get_header(); ?>
 			
-			<div id="content" class="clear">
+			<div id="content" class="clearfix">
 			
-				<div id="main" class="col620 clear" role="main">
+				<div id="main" class="col620 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(); ?>" class="clear">
+					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
 						
 						<header>
 							
@@ -55,7 +55,7 @@ taxonomy-shoes.php
 
 					<?php } else { // if it is disabled, display regular wp prev & next links ?>
 						<nav class="wp-prev-next">
-							<ul class="clear">
+							<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>