Bladeren bron

added tags for easy translation

Eddie Machado 15 jaren geleden
bovenliggende
commit
19f4c83156
9 gewijzigde bestanden met toevoegingen van 48 en 44 verwijderingen
  1. 24 12
      archive.php
  2. 9 5
      footer.php
  3. 4 4
      index.php
  4. 1 1
      page-custom.php
  5. 1 1
      page.php
  6. 3 3
      search.php
  7. 1 1
      single-custom_type.php
  8. 1 1
      single.php
  9. 4 16
      taxonomy-custom_cat.php

+ 24 - 12
archive.php

@@ -5,17 +5,29 @@
 				<div id="main" class="col620 clear" role="main">
 				
 					<?php if (is_category()) { ?>
-						<h1 class="archive_title h2"><span>Posts Categorized:</span> <?php single_cat_title(); ?></h1>
+						<h1 class="archive_title h2">
+							<span><?php _e("Posts Categorized:", "bonestheme"); ?></span> <?php single_cat_title(); ?>
+						</h1>
 					<?php } elseif (is_tag()) { ?> 
-						<h1 class="archive_title h2"><span>Posts Tagged:</span> <?php single_tag_title(); ?></h1>
+						<h1 class="archive_title h2">
+							<span><?php _e("Posts Tagged:", "bonestheme"); ?></span> <?php single_tag_title(); ?>
+						</h1>
 					<?php } elseif (is_author()) { ?>
-						<h1 class="archive_title h2"><span>Posts By:</span> <?php get_the_author_meta('display_name'); ?></h1>
+						<h1 class="archive_title h2">
+							<span><?php _e("Posts By:", "bonestheme"); ?></span> <?php get_the_author_meta('display_name'); ?>
+						</h1>
 					<?php } elseif (is_day()) { ?>
-						<h1 class="archive_title h2"><span>Daily Archives:</span> <?php the_time('l, F j, Y'); ?></h1>
+						<h1 class="archive_title h2">
+							<span><?php _e("Daily Archives:", "bonestheme"); ?></span> <?php the_time('l, F j, Y'); ?>
+						</h1>
 					<?php } elseif (is_month()) { ?>
-					    <h1 class="archive_title h2"><span>Monthly Archives:</span> <?php the_time('F Y'); ?></h1>
+					    <h1 class="archive_title h2">
+					    	<span><?php _e("Monthly Archives:", "bonestheme"); ?>:</span> <?php the_time('F Y'); ?>
+					    </h1>
 					<?php } elseif (is_year()) { ?>
-					    <h1 class="archive_title h2"><span>Yearly Archives:</span> <?php the_time('Y'); ?></h1>
+					    <h1 class="archive_title h2">
+					    	<span><?php _e("Yearly Archives:", "bonestheme"); ?>:</span> <?php the_time('Y'); ?>
+					    </h1>
 					<?php } ?>
 
 					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
@@ -26,7 +38,7 @@
 							
 							<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
 							
-							<p class="meta">Posted <time><?php the_time('F jS, Y'); ?></time> by <?php the_author_posts_link(); ?> <span class="amp">&</span> filed under <?php the_category(', '); ?>.</p>
+							<p class="meta"><?php _e("Posted", "bonestheme"); ?> <time><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?> <span class="amp">&</span> <?php _e("filed under", "bonestheme"); ?> <?php the_category(', '); ?>.</p>
 						
 						</header> <!-- end article header -->
 					
@@ -34,7 +46,7 @@
 						
 							<?php the_post_thumbnail( 'bones-thumb-300' ); ?>
 						
-							<?php the_excerpt('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>'); ?>
+							<?php the_excerpt(_e('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>', "bonestheme")); ?>
 					
 						</section> <!-- end article section -->
 						
@@ -53,8 +65,8 @@
 					<?php } else { // if it is disabled, display regular wp prev & next links ?>
 						<nav class="wp-prev-next">
 							<ul class="clear">
-								<li class="prev-link"><?php next_posts_link('&laquo; Older Entries') ?></li>
-								<li class="next-link"><?php previous_posts_link('Newer Entries &raquo;') ?></li>
+								<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 } ?>
@@ -64,10 +76,10 @@
 					
 					<article id="post-not-found">
 					    <header>
-					    	<h1>No Posts Yet</h1>
+					    	<h1><?php _e("No Posts Yet", "bonestheme"); ?></h1>
 					    </header>
 					    <section class="post_content">
-					    	<p>Sorry, but the requested resource was not found on this site.</p>
+					    	<p><?php _e("Sorry, What you were looking for is not here.", "bonestheme"); ?></p>
 					    </section>
 					    <footer>
 					    </footer>

+ 9 - 5
footer.php

@@ -6,23 +6,27 @@
 						<?php bones_footer_links(); // Adjust using Menus in Wordpress Admin ?>
 					</nav>
 			
-					<p class="attribution">&copy; <?php bloginfo('name'); ?> is powered by <a href="http://wordpress.org/" title="WordPress">Wordpress</a> <span class="amp">&</span> <a rel="nofollow" href="http://www.themble.com/bones" title="Bones" class="footer_bones_link">Bones</a>.</p>
+					<p class="attribution">&copy; <?php bloginfo('name'); ?> <?php _e("is powered by", "bonestheme"); ?> <a href="http://wordpress.org/" title="WordPress">Wordpress</a> <span class="amp">&</span> <a rel="nofollow" href="http://www.themble.com/bones" title="Bones" class="footer_bones_link">Bones</a>.</p>
 				
 				</div> <!-- end #inner-footer -->
 				
 			</footer> <!-- end footer -->
 		
 		</div> <!-- end #container -->
-		
-		<?php wp_footer(); // js scripts are inserted using this function ?>
 
 		<!-- custom scripts -->
 		<script src="<?php echo get_template_directory_uri(); ?>/library/js/scripts.js"></script>
 		
+		<!--[if lt IE 9]>
+			<script src="<?php echo get_template_directory_uri(); ?>/library/js/libs/ie/selectivizr.js"></script>
+		<![endif]-->		
+		
 		<!--[if lt IE 7 ]>
     		<script src="<?php echo get_template_directory_uri(); ?>/library/js/libs/ie/dd_belatedpng.js"></script>
-    		<script> DD_belatedPNG.fix('img, .png_bg'); </script>
-		<![endif]-->		
+    		<script>DD_belatedPNG.fix("img, .png_bg");</script>
+  		<![endif]-->
+		
+		<?php wp_footer(); // js scripts are inserted using this function ?>
 		
 		<!-- Insert Analytics -->
 		

+ 4 - 4
index.php

@@ -12,12 +12,12 @@
 							
 							<h1 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
 							
-							<p class="meta">Posted <time><?php the_time('F jS, Y'); ?></time> by <?php the_author(); ?> <span class="amp">&</span> filed under <?php the_category(', '); ?>.</p>
+							<p class="meta"><?php _e("Posted", "bonestheme"); ?> <time><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?> <span class="amp">&</span> <?php _e("filed under", "bonestheme"); ?> <?php the_category(', '); ?>.</p>
 						
 						</header> <!-- end article header -->
 					
 						<section class="post_content clear">
-							<?php the_content('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>'); ?>
+							<?php the_content(_e('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>', "bonestheme")); ?>
 					
 						</section> <!-- end article section -->
 						
@@ -40,8 +40,8 @@
 					<?php } else { // if it is disabled, display regular wp prev & next links ?>
 						<nav class="wp-prev-next">
 							<ul class="clear">
-								<li class="prev-link"><?php next_posts_link('&laquo; Older Entries') ?></li>
-								<li class="next-link"><?php previous_posts_link('Newer Entries &raquo;') ?></li>
+								<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 } ?>		

+ 1 - 1
page-custom.php

@@ -18,7 +18,7 @@ Template Name: Custom Page Example
 							
 							<h1><?php the_title(); ?></h1>
 							
-							<p class="meta">Posted <time><?php the_time('F jS, Y'); ?></time> by <?php the_author(); ?> <span class="amp">&</span> filed under <?php the_category(', '); ?>.</p>
+							<p class="meta"><?php _e("Posted", "bonestheme"); ?> <time><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?>.</p>
 						
 						</header> <!-- end article header -->
 					

+ 1 - 1
page.php

@@ -12,7 +12,7 @@
 							
 							<h1 class="page-title"><?php the_title(); ?></h1>
 							
-							<p class="meta">Posted <time><?php the_time('F jS, Y'); ?></time> by <?php the_author(); ?> <span class="amp">&</span> filed under <?php the_category(', '); ?>.</p>
+							<p class="meta"><?php _e("Posted", "bonestheme"); ?> <time><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?>.</p>
 						
 						</header> <!-- end article header -->
 					

+ 3 - 3
search.php

@@ -14,7 +14,7 @@
 							
 							<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
 							
-							<p class="meta">Posted <time><?php the_time('F jS, Y'); ?></time> by <?php the_author(); ?> <span class="amp">&</span> filed under <?php the_category(', '); ?>.</p>
+							<p class="meta"><?php _e("Posted", "bonestheme"); ?> <time><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?> <span class="amp">&</span> <?php _e("filed under", "bonestheme"); ?> <?php the_category(', '); ?>.</p>
 						
 						</header> <!-- end article header -->
 					
@@ -39,8 +39,8 @@
 					<?php } else { // if it is disabled, display regular wp prev & next links ?>
 						<nav class="wp-prev-next">
 							<ul class="clear">
-								<li class="prev-link"><?php next_posts_link('&laquo; Older Entries') ?></li>
-								<li class="next-link"><?php previous_posts_link('Newer Entries &raquo;') ?></li>
+								<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 } ?>			

+ 1 - 1
single-custom_type.php

@@ -27,7 +27,7 @@ single-bookmarks.php
 							
 							<h1><?php the_title(); ?></h1>
 							
-							<p class="meta">Posted <time><?php the_time('F jS, Y'); ?></time> by <?php the_author_posts_link(); ?> <span class="amp">&</span> filed under <?php echo get_the_term_list( get_the_ID(), 'custom_cat', "" ) ?>.</p>
+							<p class="meta"><?php _e("Posted", "bonestheme"); ?> <time><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?> <span class="amp">&</span> <?php _e("filed under", "bonestheme"); ?> <?php echo get_the_term_list( get_the_ID(), 'custom_cat', "" ) ?>.</p>
 						
 						</header> <!-- end article header -->
 					

+ 1 - 1
single.php

@@ -12,7 +12,7 @@
 							
 							<h1><?php the_title(); ?></h1>
 							
-							<p class="meta">Posted <time><?php the_time('F jS, Y'); ?></time> by <?php the_author_posts_link(); ?> <span class="amp">&</span> filed under <?php the_category(', '); ?>.</p>
+							<p class="meta"><?php _e("Posted", "bonestheme"); ?> <time><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?> <span class="amp">&</span> <?php _e("filed under", "bonestheme"); ?> <?php the_category(', '); ?>.</p>
 						
 						</header> <!-- end article header -->
 					

+ 4 - 16
taxonomy-custom_cat.php

@@ -19,19 +19,7 @@ taxonomy-shoes.php
 			
 				<div id="main" class="col620 clear" role="main">
 				
-					<?php if (is_category()) { ?>
-						<h1 class="archive_title h2"><span>Posts Categorized:</span> <?php single_cat_title(); ?></h1>
-					<?php } elseif (is_tag()) { ?> 
-						<h1 class="archive_title h2"><span>Posts Tagged:</span> <?php single_tag_title(); ?></h1>
-					<?php } elseif (is_author()) { ?>
-						<h1 class="archive_title h2"><span>Posts By:</span> <?php get_the_author_meta('display_name'); ?></h1>
-					<?php } elseif (is_day()) { ?>
-						<h1 class="archive_title h2"><span>Daily Archives:</span> <?php the_time('l, F j, Y'); ?></h1>
-					<?php } elseif (is_month()) { ?>
-					    <h1 class="archive_title h2"><span>Monthly Archives:</span> <?php the_time('F Y'); ?></h1>
-					<?php } elseif (is_year()) { ?>
-					    <h1 class="archive_title h2"><span>Yearly Archives:</span> <?php the_time('Y'); ?></h1>
-					<?php } ?>
+					<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(); ?>
 					
@@ -41,7 +29,7 @@ taxonomy-shoes.php
 							
 							<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
 							
-							<p class="meta">Posted <time><?php the_time('F jS, Y'); ?></time> by <?php the_author(); ?> <span class="amp">&</span> filed under <?php the_category(', '); ?>.</p>
+							<p class="meta"><?php _e("Posted", "bonestheme"); ?> <time><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?> <span class="amp">&</span> <?php _e("filed under", "bonestheme"); ?> <?php echo get_the_term_list( get_the_ID(), 'custom_cat', "" ) ?>.</p>
 						
 						</header> <!-- end article header -->
 					
@@ -68,8 +56,8 @@ taxonomy-shoes.php
 					<?php } else { // if it is disabled, display regular wp prev & next links ?>
 						<nav class="wp-prev-next">
 							<ul class="clear">
-								<li class="prev-link"><?php next_posts_link('&laquo; Older Entries') ?></li>
-								<li class="next-link"><?php previous_posts_link('Newer Entries &raquo;') ?></li>
+								<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 } ?>