So, there's actually a tremendous amount going on here. If you're not familiar with HTML5 Boilerplate or the Starkers theme (upon which this theme is based) you should check them out.
Choose below which Boilerplate options you want included in your site (all are recommended).
Force the most-recent IE rendering engine or users with Google Chrome Frame installed to see your site using Google Frame.
'; echo 'Selecting this option will add the following code to the <head> of your pages:
';
echo '<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
Force iThings to show site at full-zoom, instead of trying to show the entire page.
'; echo 'Selecting this option will add the following code to the <head> of your pages:
';
echo '<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
If you plan to use a favicon for your site, place the "favicon.ico" file in the root directory of your site.
'; echo 'If the file is in the right location, you don\'t really need to select this option, browsers will automatically look there and no additional code will be added to your pages.
'; echo 'Selecting this option will add the following code to the <head> of your pages:
';
echo '<link rel="shortcut icon" href="/favicon.ico">
To allow iThing users to add an icon for your site to their Home screen, place the "apple-touch-icon.png" file in the root directory of your site.
'; echo 'If the file is in the right location, you don\'t really need to select this option, browsers will automatically look there and no additional code will be added to your pages.
'; echo 'Selecting this option will add the following code to the <head> of your pages:
';
echo '<link rel="apple-touch-icon" href="/apple-touch-icon.png">
If you would like to add a IE-speific CSS file, Boilerplate provides a starter file located in:
';
echo ''.get_template_directory_uri() . '/css/ie.css
Add what you want to that file and select this option. And remember, you don\'t need hacks when you\'re using Boilerplate, because you can target IE specifically by using the IE classes that are being added to <html> in header.php. Sweet!
'; echo 'Selecting this option will add the following code to the <head> of your pages:
';
echo '<!--[if IE ]><link rel="stylesheet" href="'.get_template_directory_uri().'/css/ie.css"><![endif]-->
If you would like to add a handheld CSS file, Boilerplate provides a starter file located in:
';
echo ''.get_template_directory_uri() . '/css/handheld.css
Add what you want to that file and select this option. Here are a couple resources for making your site mobile-ready, but there are plenty more on the web.
'; echo 'Selecting this option will add the following code to the <head> of your pages:
';
echo '<link rel=\'stylesheet\' id=\'handheld-css\' href=\''.get_template_directory_uri().'/css/handheld.css?ver=x\' type=\'text/css\' media=\'handheld\' />
(The single quotes and no-longer-necessary attributes are from WP, would like to fix that... maybe next update...)
'; } // callback fn for print_css function print_css_setting() { $options = get_option('plugin_options'); $checked = ($options['print_css']) ? 'checked="checked" ' : ''; echo ''; echo 'If you would like to add a print CSS file, Boilerplate provides a starter file located in:
';
echo ''.get_template_directory_uri() . '/css/print.css
Add what you want to that file and select this option. Here are a couple resources for making your site print-ready, but there are plenty more on the web.
'; echo 'Selecting this option will add the following code to the <head> of your pages:
';
echo '<link rel=\'stylesheet\' id=\'print-css\' href=\''.get_template_directory_uri().'/css/print.css?ver=x\' type=\'text/css\' media=\'print\' />
(The single quotes and no-longer-necessary attributes are from WP, would like to fix that... maybe next update...)
'; echo 'Note that Boilerplate\'s style.css does have a few lines of CSS pertaining to print, with a link to this article; your call.
'; } // callback fn for modernizr_js function modernizr_js_setting() { $options = get_option('plugin_options'); $checked = ($options['modernizr_js']) ? 'checked="checked" ' : ''; echo ''; echo 'Modernizr is a JS library that appends classes to the <html> that indicate whether the user\'s browser is capable of handling advanced CSS, like "no-cssreflections" or "cssreflections". It\'s a really handy way to apply varying CSS techniques, depending on the user\'s browser\'s abilities.
'; echo 'Selecting this option will add the following code to the <head> of your pages (note the lack of a version, when you\'re ready to upgrade, simply copy/paste the new version into the file below, and your site is ready to go!):
';
echo '<script type=\'text/javascript\' src=\''.get_template_directory_uri().'/js/modernizr.js?ver=x\'></script>
(The single quotes and no-longer-necessary attributes are from WP, would like to fix that... maybe next update...)
'; echo 'Note: If you do not include Modernizr, the IEShiv JS will be added to accommodate the HTML5 elements used in Boilerplate in weaker browsers.
'; } // callback fn for jquery_js function jquery_js_setting() { $options = get_option('plugin_options'); $checked = ($options['jquery_js']) ? 'checked="checked" ' : ''; echo ''; echo 'jQuery is a JS library that aids greatly in developing high-quality JavaScript quickly and efficiently.
'; echo 'Selecting this option will add the following code to your pages just before the </body> (note the lack of a version, when you\'re ready to upgrade, simply copy/paste the new version into the file below, and your site is ready to go!):
';
echo '<script type=\'text/javascript\' src=\''.get_template_directory_uri().'/js/jquery.js?ver=x\'></script>
(The single quotes and no-longer-necessary attributes are from WP, would like to fix that... maybe next update...)
'; } // callback fn for plugins_js function plugins_js_setting() { $options = get_option('plugin_options'); $checked = ($options['plugins_js']) ? 'checked="checked" ' : ''; echo ''; echo 'If you choose to use any jQuery plug-ins, I recommend downloading and concatenating them together in a single JS file, as below. This will reduce your site\'s HTTP Requests, making your site a better experience.
'; echo 'Selecting this option will add the following code to your pages just before the </body>:
';
echo '<script type=\'text/javascript\' src=\''.get_template_directory_uri().'/js/plug-in.js?ver=x\'></script>
(The single quotes and no-longer-necessary attributes are from WP, would like to fix that... maybe next update...)
'; } // callback fn for site_js function site_js_setting() { $options = get_option('plugin_options'); $checked = ($options['site_js']) ? 'checked="checked" ' : ''; echo ''; echo 'If you would like to add your own site JavaScript file, Boilerplate provides a starter file located in:
';
echo ''.get_template_directory_uri() . '/js/script.js
Add what you want to that file and select this option.
'; echo 'Selecting this option will add the following code to your pages just before the </body>:
';
echo '<script type=\'text/javascript\' src=\''.get_template_directory_uri().'/js/script.js?ver=x\'></script>
(The single quotes and no-longer-necessary attributes are from WP, would like to fix that... maybe next update...)
'; } // callback fn for yahoo_profiling_js function yahoo_profiling_js_setting() { $options = get_option('plugin_options'); $checked = ($options['yahoo_profiling_js']) ? 'checked="checked" ' : ''; echo ''; echo 'YUI Profiler is a code profiler for JavaScript. It would only be useful for developers during the development of a site. It should not be included when the site is in production use.
'; echo 'Selecting this option will add the following code to your pages just before the </body>:
';
echo '<script type=\'text/javascript\' src=\''.get_template_directory_uri().'/js/profiling/yahoo-profiling.min.js?ver=x\'></script>
';
echo '<script type=\'text/javascript\' src=\''.get_template_directory_uri().'/js/profiling/config.js?ver=x\'></script>
(The single quotes and no-longer-necessary attributes are from WP, would like to fix that... maybe next update...)
'; } // callback fn for belated_png_js function belated_png_js_setting() { $options = get_option('plugin_options'); $checked = ($options['belated_png_js']) ? 'checked="checked" ' : ''; echo ''; echo 'DD_belatedPNG adds IE6 support for PNG images used as CSS background images and HTML <img/>
'; echo 'Selecting this option will add the following code to your pages just before the </body>:
';
echo '<!--[if lt IE 7]>
';
echo '<script type=\'text/javascript\' src=\''.get_template_directory_uri().'/js/dd_belatedpng.js?ver=x\'></script>
';
echo '<script>DD_belatedPNG.fix(\'img, .png_bg\');</script>
';
echo '<![endif]-->