/**
 * Overrides the default Genesis doctype with IE and JS identifier classes.
 *
 * See: http://html5boilerplate.com/
 *
 * @since 2.2.4
 */
function bfg_do_doctype()
{
    if (genesis_html5()) {
        ?>
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js lt-ie9" <?php 
        language_attributes('html');
        ?>
> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" <?php 
        language_attributes('html');
        ?>
> <!--<![endif]-->
<head>
<meta charset="<?php 
        bloginfo('charset');
        ?>
">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- <meta name="format-detection" content="telephone=no"> -->
<?php 
    } else {
        genesis_xhtml_doctype();
    }
}
Example #2
0
/**
 * Echo the doctype and opening markup.
 *
 * If you are going to replace the doctype with a custom one, you must remember to include the opening <html> and
 * <head> elements too, along with the proper attributes.
 *
 * It would be beneficial to also include the <meta> tag for content type.
 *
 * The default doctype is XHTML v1.0 Transitional, unless HTML support os present in the child theme.
 *
 * @since 1.3.0
 *
 * @uses genesis_html()          Check for HTML5 support.
 * @uses genesis_html5_doctype() Markup for HTML5 output.
 * @uses genesis_xhtml_doctype() Markup for XHTML output.
 */
function genesis_do_doctype()
{
    if (genesis_html5()) {
        genesis_html5_doctype();
    } else {
        genesis_xhtml_doctype();
    }
}
Example #3
0
/**
 * Echo the doctype and opening markup.
 *
 * If you are going to replace the doctype with a custom one, you must remember
 * to include the opening <html> and <head> elements too, along with the proper
 * properties.
 *
 * It would be beneficial to also include the <meta> tag for Content Type.
 *
 * The default doctype is XHTML v1.0 Transitional.
 *
 * @since 1.3.0
 */
function genesis_do_doctype()
{
    if (current_theme_supports('genesis-html5')) {
        genesis_html5_doctype();
    } else {
        genesis_xhtml_doctype();
    }
}