Пример #1
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();
    }
}
Пример #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
 * 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();
    }
}