Permalink
Browse files

Version 1.3.5, tweaks and new additions

  • Loading branch information...
1 parent ef02582 commit ed216ecf6c9a28ed1ba04bb6e20513eee285055c Todd Motto committed Mar 26, 2013
Showing with 321 additions and 101 deletions.
  1. +3 −1 404.php
  2. +17 −0 CHANGELOG.md
  3. +1 −1 archive.php
  4. +1 −1 author.php
  5. +1 −1 category.php
  6. +3 −3 comments.php
  7. +27 −27 footer.php
  8. +1 −1 functions.php
  9. +62 −63 header.php
  10. +1 −1 index.php
  11. BIN languages/es_ES.mo
  12. +202 −0 languages/es_ES.po
  13. +1 −1 search.php
  14. +1 −1 tag.php
View
@@ -7,7 +7,9 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1><?php _e( 'Page not found', 'html5blank' ); ?></h1>
- <h2><a href="<?php echo home_url(); ?>"><?php _e( 'Return home?', 'html5blank' ); ?></a></h2>
+ <h2>
+ <a href="<?php echo home_url(); ?>"><?php _e( 'Return home?', 'html5blank' ); ?></a>
+ </h2>
</article>
<!-- /Article -->
View
@@ -1,6 +1,23 @@
### [HTML5 Blank](http://html5blank.com) Changelog
+## 1.3.5 (26 March, 2013)
+
+* Update jQuery CDN to use $_SERVER['SERVER_PORT'] to server HTTPS if needed
+* Edit Google Analytics string to cater for SSL/HTTPS (footer.php)
+* Added Spanish language translation file to /languages/ from Carlos Pinar
+* Indent <head> and <body> elements for better code readability
+* Add X-UA-Compatible meta tag to <head> to force Chrome Frame/latest document mode in IE (edge)
+* Format the <head> by grouping similar elements
+* Enhance footer.php indentation
+* Change footer.php fallback text
+* Removed HTML comments from comments.php and changed ID to class
+* Improve Conditionizr formatting in header.php
+* Set Conditionizr scripts/styles to _false_ by default (classes true)
+* Change pagination ID to class for better CSS
+* Improve indentation in 404.php for child element
+
## 1.3.4 (22 March, 2013)
+
* Update Conditionizr to version 2.2.0
* Replaced &lt;aside&gt; id with a class for better CSS
* Better naming conventions for search form, more class focused
View
@@ -8,7 +8,7 @@
<?php get_template_part('loop'); ?>
<!-- Pagination -->
- <div id="pagination">
+ <div class="pagination">
<?php html5wp_pagination(); ?>
</div>
<!-- /Pagination -->
View
@@ -66,7 +66,7 @@
<?php endif; ?>
<!-- Pagination -->
- <div id="pagination">
+ <div class="pagination">
<?php html5wp_pagination(); ?>
</div>
<!-- /Pagination -->
View
@@ -8,7 +8,7 @@
<?php get_template_part('loop'); ?>
<!-- Pagination -->
- <div id="pagination">
+ <div class="pagination">
<?php html5wp_pagination(); ?>
</div>
<!-- /Pagination -->
View
@@ -1,7 +1,7 @@
-<div id="comments">
+<div class="comments">
<?php if (post_password_required()) : ?>
<p><?php _e( 'Post is password protected. Enter the password to view any comments.', 'html5blank' ); ?></p>
-</div> <!-- END: comments if password protected -->
+</div>
<?php return; endif; ?>
@@ -21,4 +21,4 @@
<?php comment_form(); ?>
-</div> <!-- END: comments if not password protected -->
+</div>
View
@@ -1,31 +1,31 @@
- <!-- Footer -->
- <footer class="footer">
+ <!-- Footer -->
+ <footer class="footer">
+
+ <!-- Copyright -->
+ <p class="copyright">
+ &copy; <?php echo date("Y"); ?> Copyright <?php bloginfo('name'); ?>. <?php _e('Powered by', 'html5blank'); ?>
+ <a href="//wordpress.org" title="WordPress">WordPress</a> &amp; <a href="//html5blank.com" title="HTML5 Blank">HTML5 Blank</a>.
+ </p>
+ <!-- /Copyright -->
+
+ </footer>
+ <!-- /Footer -->
- <!-- Copyright -->
- <p class="copyright">
- &copy; <?php echo date("Y"); ?> Copyright <?php bloginfo('name'); ?>. <?php _e('Powered by', 'html5blank'); ?>
- <a href="//wordpress.org" title="WordPress">WordPress</a> &amp; <a href="//html5blank.com" title="HTML5 Blank">HTML5 Blank</a>.
- </p>
- <!-- /Copyright -->
+ </div>
+ <!-- /Wrapper -->
- </footer>
- <!-- /Footer -->
-
- </div>
- <!-- /Wrapper -->
-
- <!-- jQuery CDN Failsafe to CloudFlare CDN -->
- <script>window.jQuery || document.write('<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"><\/script>');</script>
-
- <!-- Google Analytics -->
- <script>
- var _gaq=[['_setAccount','UA-XXXXXXXX-XX'],['_trackPageview']];
- (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
- g.src='//www.google-analytics.com/ga.js';
- s.parentNode.insertBefore(g,s)})(document,'script');
- </script>
+ <!-- jQuery Fallback -->
+ <script>window.jQuery || document.write('<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"><\/script>');</script>
+
+ <!-- Analytics -->
+ <script>
+ var _gaq=[['_setAccount','UA-XXXXXXXX-XX'],['_trackPageview']];
+ (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
+ g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
+ s.parentNode.insertBefore(g,s)})(document,'script');
+ </script>
+
+ <?php wp_footer(); ?>
- <?php wp_footer(); ?>
-
-</body>
+ </body>
</html>
View
@@ -98,7 +98,7 @@ function html5blank_scripts()
{
if (!is_admin()) {
wp_deregister_script('jquery'); // Deregister WordPress jQuery
- wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', array(), '1.9.0'); // Google CDN jQuery
+ wp_register_script('jquery', 'http' . ( == 443 ? 's' : '') . '://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', array(), '1.9.1'); // Google CDN jQuery
wp_enqueue_script('jquery'); // Enqueue it!
wp_register_script('conditionizr', 'http://cdnjs.cloudflare.com/ajax/libs/conditionizr.js/2.2.0/conditionizr.js', array(), '2.2.0'); // Conditionizr
View
@@ -1,68 +1,67 @@
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
-<head>
- <meta charset="<?php bloginfo('charset'); ?>">
-
- <!-- DNS Prefetch -->
- <link rel="dns-prefetch" href="//www.google-analytics.com">
-
- <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>
-
- <!-- Meta -->
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
- <meta name="description" content="<?php bloginfo('description'); ?>">
- <link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico">
+ <head>
+ <meta charset="<?php bloginfo('charset'); ?>">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <!-- CSS + jQuery + JavaScript -->
- <?php wp_head(); ?>
- <script>
- conditionizr({
- debug : false,
- scriptSrc : '<?php echo get_template_directory_uri(); ?>/js/conditionizr/',
- styleSrc : '<?php echo get_template_directory_uri(); ?>/css/conditionizr/',
- ieLessThan : {active: true, version: '9', scripts: true, styles: true, classes: true, customScript: '//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js'},
- chrome : { scripts: true, styles: true, classes: true, customScript: false },
- safari : { scripts: true, styles: true, classes: true, customScript: false },
- opera : { scripts: true, styles: true, classes: true, customScript: false },
- firefox : { scripts: true, styles: true, classes: true, customScript: false },
- ie10 : { scripts: true, styles: true, classes: true, customScript: false },
- ie9 : { scripts: true, styles: true, classes: true, customScript: false },
- ie8 : { scripts: true, styles: true, classes: true, customScript: false },
- ie7 : { scripts: true, styles: true, classes: true, customScript: false },
- ie6 : { scripts: true, styles: true, classes: true, customScript: false },
- retina : { scripts: true, styles: true, classes: true, customScript: false },
- mac : true,
- win : true,
- x11 : true,
- linux : true
- });
- </script>
-
-</head>
-<body <?php body_class(); ?>>
-
- <!-- Wrapper -->
- <div class="wrapper">
-
- <!-- Header -->
- <header class="header">
+ <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>
+
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
+ <meta name="description" content="<?php bloginfo('description'); ?>">
+
+ <link rel="dns-prefetch" href="//www.google-analytics.com">
+ <link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico">
- <!-- Logo -->
- <div class="logo">
- <a href="<?php echo home_url(); ?>">
- <!-- SVG Logo - toddmotto.com/mastering-svg-use-for-a-retina-web-fallbacks-with-png-script -->
- <img src="<?php echo get_template_directory_uri(); ?>/img/logo.svg" alt="Logo">
- </a>
- </div>
- <!-- /Logo -->
-
- <!-- Nav -->
- <nav>
- <?php html5blank_nav(); ?>
- </nav>
- <!-- /Nav -->
-
- <br class="clear">
+ <!-- CSS + jQuery + JavaScript -->
+ <?php wp_head(); ?>
+ <script>
+ conditionizr({
+ debug : false,
+ scriptSrc : '<?php echo get_template_directory_uri(); ?>/js/conditionizr/',
+ styleSrc : '<?php echo get_template_directory_uri(); ?>/css/conditionizr/',
+ ieLessThan : {active: true, version: '9', scripts: true, styles: true, classes: true, customScript: '//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js'},
+ chrome : { scripts: false, styles: false, classes: true, customScript: false },
+ safari : { scripts: false, styles: false, classes: true, customScript: false },
+ opera : { scripts: false, styles: false, classes: true, customScript: false },
+ firefox : { scripts: false, styles: false, classes: true, customScript: false },
+ ie10 : { scripts: false, styles: false, classes: true, customScript: false },
+ ie9 : { scripts: false, styles: false, classes: true, customScript: false },
+ ie8 : { scripts: false, styles: false, classes: true, customScript: false },
+ ie7 : { scripts: false, styles: false, classes: true, customScript: false },
+ ie6 : { scripts: false, styles: false, classes: true, customScript: false },
+ retina : { scripts: false, styles: false, classes: true, customScript: false },
+ mac : true,
+ win : true,
+ x11 : true,
+ linux : true
+ });
+ </script>
- </header>
- <!-- /Header -->
+ </head>
+ <body <?php body_class(); ?>>
+
+ <!-- Wrapper -->
+ <div class="wrapper">
+
+ <!-- Header -->
+ <header class="header">
+
+ <!-- Logo -->
+ <div class="logo">
+ <a href="<?php echo home_url(); ?>">
+ <!-- SVG Logo - toddmotto.com/mastering-svg-use-for-a-retina-web-fallbacks-with-png-script -->
+ <img src="<?php echo get_template_directory_uri(); ?>/img/logo.svg" alt="Logo">
+ </a>
+ </div>
+ <!-- /Logo -->
+
+ <!-- Nav -->
+ <nav class="nav">
+ <?php html5blank_nav(); ?>
+ </nav>
+ <!-- /Nav -->
+
+ <br class="clear">
+
+ </header>
+ <!-- /Header -->
View
@@ -8,7 +8,7 @@
<?php get_template_part('loop'); ?>
<!-- Pagination -->
- <div id="pagination">
+ <div class="pagination">
<?php html5wp_pagination(); ?>
</div>
<!-- /Pagination -->
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit ed216ec

Please sign in to comment.