本文整理匯總了PHP中core_useragent::check_ie_properties方法的典型用法代碼示例。如果您正苦於以下問題:PHP core_useragent::check_ie_properties方法的具體用法?PHP core_useragent::check_ie_properties怎麽用?PHP core_useragent::check_ie_properties使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類core_useragent
的用法示例。
在下文中一共展示了core_useragent::check_ie_properties方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: theme_essential_ie_properties
/**
* States if the browser is IE by returning properties, otherwise false.
*/
public function theme_essential_ie_properties()
{
$properties = core_useragent::check_ie_properties();
// In /lib/classes/useragent.php.
if (!is_array($properties)) {
return false;
} else {
return $properties;
}
}
示例2: ie_properties
/**
* States if the browser is IE by returning properties, otherwise false.
*/
static protected function ie_properties() {
$properties = \core_useragent::check_ie_properties(); // In /lib/classes/useragent.php.
if (!is_array($properties)) {
return false;
} else {
return $properties;
}
}
示例3: theme_essential_page_init
function theme_essential_page_init(moodle_page $page)
{
global $CFG;
$page->requires->jquery();
$page->requires->jquery_plugin('ui', 'core');
$properties = core_useragent::check_ie_properties();
// In /lib/classes/useragent.php.
if (is_array($properties) && $properties['version'] <= 8.0) {
$page->requires->jquery_plugin('html5shiv', 'theme_essential');
}
$page->requires->jquery_plugin('bootstrap', 'theme_essential');
$page->requires->jquery_plugin('breadcrumb', 'theme_essential');
$page->requires->jquery_plugin('fitvids', 'theme_essential');
$page->requires->jquery_plugin('antigravity', 'theme_essential');
}