本文整理汇总了PHP中Q_Request::isIE方法的典型用法代码示例。如果您正苦于以下问题:PHP Q_Request::isIE方法的具体用法?PHP Q_Request::isIE怎么用?PHP Q_Request::isIE使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Q_Request
的用法示例。
在下文中一共展示了Q_Request::isIE方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Overlay_before_Q_responseExtras
function Overlay_before_Q_responseExtras()
{
$app = Q_Config::expect('Q', 'app');
Q_Response::addStylesheet('plugins/Q/css/Q.css');
Q_Response::addStylesheet('css/Overlay.css', '@end');
Q_Response::addStylesheet('http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,700');
if (Q_Config::get('Q', 'firebug', false)) {
Q_Response::addScript("https://getfirebug.com/firebug-lite-debug.js");
}
Q_Response::addScript('js/Overlay.js');
Q_Response::setMeta("title", "Customize My Pic!");
Q_Response::setMeta("description", "Make a statement on Facebook by customizing your profile picture, even from your smartphone.");
Q_Response::setMeta("image", Q_Html::themedUrl('img/icon/icon.png'));
if (Q_Request::isIE()) {
header("X-UA-Compatible", "IE=edge");
}
header('Vary: User-Agent');
// running an event for loading action-specific extras (if there are any)
$uri = Q_Dispatcher::uri();
$module = $uri->module;
$action = $uri->action;
$event = "{$module}/{$action}/response/responseExtras";
if (Q::canHandle($event)) {
Q::event($event);
}
}
示例2: Trump_before_Q_responseExtras
function Trump_before_Q_responseExtras()
{
$app = Q_Config::expect('Q', 'app');
Q_Response::addStylesheet('plugins/Q/css/Q.css');
Q_Response::addStylesheet('css/html.css', '@end');
if (Q_Config::get('Q', 'firebug', false)) {
Q_Response::addScript("https://getfirebug.com/firebug-lite-debug.js");
}
Q_Response::addScript('js/Trump.js');
if (Q_Request::isIE()) {
header("X-UA-Compatible: IE=edge");
}
header('Vary: User-Agent');
// running an event for loading action-specific extras (if there are any)
$uri = Q_Dispatcher::uri();
$module = $uri->module;
$action = $uri->action;
$event = "{$module}/{$action}/response/responseExtras";
if (Q::canHandle($event)) {
Q::event($event);
}
}
示例3: htmlAttributes
static function htmlAttributes()
{
$touchscreen = Q_Request::isTouchscreen() ? 'Q_touchscreen' : 'Q_notTouchscreen';
$mobile = Q_Request::isMobile() ? 'Q_mobile' : 'Q_notMobile';
$cordova = Q_Request::isCordova() ? 'Q_cordova' : 'Q_notCordova';
$platform = 'Q_' . Q_Request::platform();
$ie = Q_Request::isIE() ? 'Q_ie' : 'Q_notIE';
$ie8 = Q_Request::isIE(0, 8) ? 'Q_ie8OrBelow' : 'Q_notIE8OrBelow';
$uri = Q_Dispatcher::uri();
$classes = "{$uri->module} {$uri->module}_{$uri->action}";
$result = 'lang="en" prefix="og: http://ogp.me/ns# object: http://ogp.me/ns/object#" ' . "class='{$touchscreen} {$mobile} {$cordova} {$platform} {$ie} {$ie8} {$classes}'";
return $result;
}
示例4: htmlAttributes
/**
* Returns the string containing all the html attributes
* @method htmlAttributes
* @static
* @return {string}
*/
static function htmlAttributes()
{
$touchscreen = Q_Request::isTouchscreen() ? 'Q_touchscreen' : 'Q_notTouchscreen';
$mobile = Q_Request::isMobile() ? 'Q_mobile' : 'Q_notMobile';
$cordova = Q_Request::isCordova() ? 'Q_cordova' : 'Q_notCordova';
$platform = 'Q_' . Q_Request::platform();
$ie = Q_Request::isIE() ? 'Q_ie' : 'Q_notIE';
$ie8 = Q_Request::isIE(0, 8) ? 'Q_ie8OrBelow' : 'Q_notIE8OrBelow';
$uri = Q_Dispatcher::uri();
$classes = "{$uri->module} {$uri->module}_{$uri->action}";
foreach (self::$htmlCssClasses as $k => $v) {
$classes .= Q_Html::text(" {$k}");
}
$language = self::language();
return 'lang="' . $language . '" ' . 'prefix="og: http://ogp.me/ns# object: http://ogp.me/ns/object#" ' . "class='{$touchscreen} {$mobile} {$cordova} {$platform} {$ie} {$ie8} {$classes}'";
}
示例5: htmlAttributes
static function htmlAttributes()
{
$touchscreen = Q_Request::isTouchscreen() ? 'Q_touchscreen' : 'Q_notTouchscreen';
$mobile = Q_Request::isMobile() ? 'Q_mobile' : 'Q_notMobile';
$ie = Q_Request::isIE() ? 'Q_ie' : 'Q_notIE';
$ie8 = Q_Request::isIE(0, 8) ? 'Q_ie8OrBelow' : 'Q_notIE8OrBelow';
$result = 'lang="en" prefix="og: http://ogp.me/ns# object: http://ogp.me/ns/object#" ' . "class='{$touchscreen} {$mobile} {$ie} {$ie8}'";
return $result;
}