{"id":467,"date":"2011-09-02T18:33:22","date_gmt":"2011-09-02T18:33:22","guid":{"rendered":"http:\/\/wp4design.com\/?p=467"},"modified":"2012-02-26T15:44:35","modified_gmt":"2012-02-26T14:44:35","slug":"basics-0-2-6-an-html5-boilerplate-2-update-and-more","status":"publish","type":"post","link":"http:\/\/4design.xyz\/wordpress-basics\/basics-0-2-6-an-html5-boilerplate-2-update-and-more","title":{"rendered":"Basics 0.2.6 &#8212; an HTML5 Boilerplate 2 update and more"},"content":{"rendered":"<p>I began to\u00a0sleep\u00a0on the version 0.2.5\u00a0\u00a0of my\u00a0theme WordPress Basics when the new HTML5\u00a0Boilerplate 2 raised in the middle\u00a0of August.\u00a0This new version of\u00a0HTML5\u00a0Boilerplate\u00a0brings many\u00a0changes. The most important is maybe\u00a0the replacement of the\u00a0CSS\u00a0reset\u00a0by\u00a0a\u00a0&#8220;simple&#8221;\u00a0redefinition of\u00a0HTML tags with\u00a0<a href=\"http:\/\/necolas.github.com\/normalize.css\/\">normalize.css<\/a>\u00a0created first by <a href=\"http:\/\/nicolasgallagher.com\/\">Nicolas Gallagher<\/a>\u00a0and\u00a0<a href=\"http:\/\/twitter.com\/jon_neal\">Jonathan Neal<\/a>.<!--more--><\/p>\n<p>Basics\u00a00.2.6\u00a0takes into account the\u00a0various\u00a0changes introduced by\u00a0HTML5\u00a0boilerplate\u00a02 with the update\u00a0of\u00a0HTML code,\u00a0CSS files,\u00a0JavaScript\u00a0libraries:<\/p>\n<ul>\n<li>Update\u00a0some parts of\u00a0HTML code in\u00a0<em>header.php<\/em>\u00a0and\u00a0<em>footer.php<\/em>\u00a0files,<\/li>\n<li>Include\u00a0<em>normalize.css<\/em> in <em>normalize.css<\/em> (formerly <em>reset.css<\/em>),\u00a0and\u00a0<em>tools.css<\/em>\u00a0(non semantic classes),<\/li>\n<li>Updated\u00a0versions of\u00a0<em>jQuery<\/em>\u00a0and\u00a0<em>Modernizr<\/em>\u00a0(I&#8217;ve kept <em>DD_BelatedPNG<\/em>\u00a0I just in case).<\/li>\n<li>Remove redondants CSS properties between <em>normalize.css<\/em> and <em>markup.css<\/em>.<\/li>\n<\/ul>\n<p>Also,\u00a0I took the opportunity\u00a0to provide\u00a0an update\u00a0to the function\u00a0<em>basics_description\u00a0():\u00a0<\/em>shortcodes\u00a0do not appear\u00a0&#8220;as is&#8221; anymore when used\u00a0early in the\u00a0article.\u00a0Thanks to\u00a0<a href=\"http:\/\/tom-web.fr\">Thomas\u00a0Patin<\/a>\u00a0who alerted\u00a0me\u00a0to\u00a0this\u00a0subject and\u00a0provided\u00a0the line of code\u00a0I&#8217;ve \u00a0inserted into\u00a0the function\u00a0to make the things works.<\/p>\n<p>After activating\u00a0`WP_DEBUG` mode, I&#8217;ve cleaned up the PHP code to avoid errors, warnings or notices in the PHP, especially in the\u00a0<em>basics_respond()<\/em> function and within the <em>comments.php<\/em> file. One step further to make Basics compliant with the Repositery&#8217;s guidelines of WordPress.org&#8217;s Themes!<\/p>\n<h2>The complete Changelog for Basics 0.2.6<\/h2>\n<ol>\n<li>Change version number for stylesheet call :\u00a0<em>?v=0.2.6&#8243;<\/em>\u00a0[header.php]<\/li>\n<li>Change HTML markup to match changes in H5BP 2.0 [header.php] [footer.php]<\/li>\n<li>Change [reset.css ] and [tool.css] to match changes in H5BP 2.0<\/li>\n<li>Minor change on comments {author.css]<\/li>\n<li>Update\u00a0<em>\/js\/libs<\/em>\u00a0for jQuery and Modernizr (DD_belatedpng is always here for compatibility purposes)<\/li>\n<li>Prevent shortcode to appear &#8220;as is&#8221; in the meta description in\u00a0<em>basics_description()<\/em>\u00a0[functions.php] Thanks to Thomas Patin (http:\/\/tom-web.fr)<\/li>\n<li>turn\u00a0<em>margin-left: 0<\/em>\u00a0into\u00a0<em>padding-left: 0<\/em>\u00a0[author.css line 359]<\/li>\n<li>change line-height value in [reset.css line 11] : old: 1.231 &#8211; new : 1.5<\/li>\n<li>Rename\u00a0<em>reset.css<\/em>\u00a0to\u00a0<em>normalize.css<\/em>\u00a0and change\u00a0<em>@import reset.css<\/em>\u00a0to\u00a0<em>normalize.css<\/em>\u00a0[markup.css]<\/li>\n<li>Remove\u00a0<em>font-size: 100%<\/em>\u00a0in\u00a0<em>markup.css<\/em>\u00a0(already set in normalize.css)<\/li>\n<li>font-family, font-size, line-height and color property are now set in css\/normalize.css only instead of beeing set twice in markup.css<\/li>\n<li>Remove conditional comments for IE wrapping the\u00a0<em>meta http-equiv=&#8221;X-UA-Compatible&#8221;<\/em><\/li>\n<li>Define variables\u00a0<em>$aria_req<\/em>\u00a0and\u00a0<em>$post_id<\/em>\u00a0in\u00a0<em>basics_respond()<\/em>\u00a0[functions.php]<\/li>\n<li>Remove\u00a0<em>$new_defaults<\/em>\u00a0in\u00a0<em>comment_form()<\/em>\u00a0call [comments.php]<\/li>\n<li>Put together script calls within conditionnal comments for lt IE 7 [footer.php]<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>I began to\u00a0sleep\u00a0on the version 0.2.5\u00a0\u00a0of my\u00a0theme WordPress Basics when the new HTML5\u00a0Boilerplate 2 raised in the middle\u00a0of August.\u00a0This new version of\u00a0HTML5\u00a0Boilerplate\u00a0brings many\u00a0changes. The most important is maybe\u00a0the replacement of the\u00a0CSS\u00a0reset\u00a0by\u00a0a\u00a0&#8220;simple&#8221;\u00a0redefinition of\u00a0HTML tags with\u00a0normalize.css\u00a0created first by Nicolas Gallagher\u00a0and\u00a0Jonathan Neal.<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[21,71,110,153],"_links":{"self":[{"href":"http:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/posts\/467"}],"collection":[{"href":"http:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/comments?post=467"}],"version-history":[{"count":0,"href":"http:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/posts\/467\/revisions"}],"wp:attachment":[{"href":"http:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/media?parent=467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/categories?post=467"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/tags?post=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}