Permalink
Browse files

1.2.5

  • Loading branch information...
Todd Motto
Todd Motto committed Dec 8, 2012
1 parent 74553b6 commit 32ca5f7315670267e1b32c1724af90b20729f611
View
BIN .DS_Store
Binary file not shown.
View
@@ -1,17 +1,5 @@
### [HTML5 Blank](http://html5blank.com) Changelog
-## 1.2.5 (09 December, 2012)
-
-* Added SVG support in scripts.js for SVG graphics
-* Shorten DOM ready function call to shorthand
-* Removed web app capable meta tag, kept viewport
-* CSS3 Media Queries JavaScript polyfill added to header.php
-* Included default .wrapper style for fluid-first responsive approach
-* Upgraded jQuery to 1.8.3
-* Split stylesheets with separate call for Normalize as reset
-* Global Box Sizing and Font-Smoothing on all elements
-* Merge French translation from 'fxbenard'
-
## 1.2.4 (15 October, 2012)
* Custom Comments callback - wp_list_comments('type=comment&callback=html5blankcomments'); editable comments now in functions.php
View
@@ -6,6 +6,7 @@ HTML5 Blank is a powerful shell for rapidly deploying your WordPress projects. G
* Web: [html5blank.com](http://html5blank.com)
* Twitter: [@toddmotto](http://twitter.com/toddmotto), [@html5blank](http://twitter.com/html5blank)
+
## Getting Started with HTML5 Blank
Download the latest version from [html5blank.com](http://html5blank.com)
View
@@ -98,10 +98,10 @@ 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.8.3/jquery.min.js', array(), '1.8.2'); // Load Google CDN jQuery
+ wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js', array(), '1.8.3'); // Load Google CDN jQuery
wp_enqueue_script('jquery'); // Enqueue it!
- wp_register_script('modernizr', get_template_directory_uri() . '/js/modernizr.js', array('jquery'), '2.6.2'); // Modernizr with version Number at the end
+ wp_register_script('modernizr', get_template_directory_uri() . '/js/modernizr.min.js', array('jquery'), '2.6.2'); // Modernizr with version Number at the end
wp_enqueue_script('modernizr'); // Enqueue it!
wp_register_script('html5blankscripts', get_template_directory_uri() . '/js/scripts.js', array('jquery'), '1.0.0'); // HTML5 Blank script with version number
@@ -118,6 +118,16 @@ function conditional_scripts()
}
}
+// Theme Stylesheets using Enqueue
+function html5blank_styles()
+{
+ wp_register_style('normalize', get_template_directory_uri() . '/normalize.css', array(), '1.0', 'all');
+ wp_enqueue_style('normalize'); // Enqueue it!
+
+ wp_register_style('html5blank', get_template_directory_uri() . '/style.css', array(), '1.0', 'all');
+ wp_enqueue_style('html5blank'); // Enqueue it!
+}
+
// Load Optimised Google Analytics in the footer
function add_google_analytics()
{
@@ -141,67 +151,6 @@ function add_jquery_fallback()
echo $jqueryfallback;
}
-// Threaded Comments
-function enable_threaded_comments()
-{
- if (!is_admin()) {
- if (is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) {
- wp_enqueue_script('comment-reply');
- }
- }
-}
-
-// Custom Comments Callback
-function html5blankcomments($comment, $args, $depth)
-{
- $GLOBALS['comment'] = $comment;
- extract($args, EXTR_SKIP);
-
- if ( 'div' == $args['style'] ) {
- $tag = 'div';
- $add_below = 'comment';
- } else {
- $tag = 'li';
- $add_below = 'div-comment';
- }
-?>
- <<?php echo $tag ?> <?php comment_class(empty( $args['has_children'] ) ? '' : 'parent') ?> id="comment-<?php comment_ID() ?>">
- <?php if ( 'div' != $args['style'] ) : ?>
- <div id="div-comment-<?php comment_ID() ?>" class="comment-body">
- <?php endif; ?>
- <div class="comment-author vcard">
- <?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, $args['180'] ); ?>
- <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?>
- </div>
-<?php if ($comment->comment_approved == '0') : ?>
- <em class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation.') ?></em>
- <br />
-<?php endif; ?>
-
- <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">
- <?php
- /* translators: 1: date, 2: time */
- printf( __('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),' ','' );
- ?>
- </div>
-
- <?php comment_text() ?>
-
- <div class="reply">
- <?php comment_reply_link(array_merge( $args, array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
- </div>
- <?php if ( 'div' != $args['style'] ) : ?>
- </div>
- <?php endif; ?>
-<?php }
-
-// Theme Stylesheets using Enqueue
-function html5blank_styles()
-{
- wp_register_style('html5blank', get_template_directory_uri() . '/style.css', array(), '1.0', 'all');
- wp_enqueue_style('html5blank'); // Enqueue it!
-}
-
// Register HTML5 Blank's Navigation
function register_html5_menu()
{
@@ -360,6 +309,60 @@ function html5blankgravatar ($avatar_defaults)
return $avatar_defaults;
}
+// Threaded Comments
+function enable_threaded_comments()
+{
+ if (!is_admin()) {
+ if (is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) {
+ wp_enqueue_script('comment-reply');
+ }
+ }
+}
+
+// Custom Comments Callback
+function html5blankcomments($comment, $args, $depth)
+{
+ $GLOBALS['comment'] = $comment;
+ extract($args, EXTR_SKIP);
+
+ if ( 'div' == $args['style'] ) {
+ $tag = 'div';
+ $add_below = 'comment';
+ } else {
+ $tag = 'li';
+ $add_below = 'div-comment';
+ }
+?>
+ <<?php echo $tag ?> <?php comment_class(empty( $args['has_children'] ) ? '' : 'parent') ?> id="comment-<?php comment_ID() ?>">
+ <?php if ( 'div' != $args['style'] ) : ?>
+ <div id="div-comment-<?php comment_ID() ?>" class="comment-body">
+ <?php endif; ?>
+ <div class="comment-author vcard">
+ <?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, $args['180'] ); ?>
+ <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?>
+ </div>
+<?php if ($comment->comment_approved == '0') : ?>
+ <em class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation.') ?></em>
+ <br />
+<?php endif; ?>
+
+ <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">
+ <?php
+ /* translators: 1: date, 2: time */
+ printf( __('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),' ','' );
+ ?>
+ </div>
+
+ <?php comment_text() ?>
+
+ <div class="reply">
+ <?php comment_reply_link(array_merge( $args, array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
+ </div>
+ <?php if ( 'div' != $args['style'] ) : ?>
+ </div>
+ <?php endif; ?>
+<?php }
+
/*
* ========================================================================
* Actions + Filters + ShortCodes
View
@@ -9,12 +9,15 @@
<!-- Meta -->
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0;">
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
+
<meta name="description" content="<?php bloginfo('description'); ?>">
+
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico">
<!-- CSS + jQuery + JavaScript -->
<?php wp_head(); ?>
-<!--[if lte IE 8]><script src="<?php echo get_template_directory_uri(); ?>/js/mediaqueries.min.js"></script><![endif]-->
</head>
<body <?php body_class(); ?>>
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit 32ca5f7

Please sign in to comment.