本文整理汇总了PHP中Mobile_Detect::isIOS方法的典型用法代码示例。如果您正苦于以下问题:PHP Mobile_Detect::isIOS方法的具体用法?PHP Mobile_Detect::isIOS怎么用?PHP Mobile_Detect::isIOS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mobile_Detect
的用法示例。
在下文中一共展示了Mobile_Detect::isIOS方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
$html = str_replace("<!--requested_intern_userid-->", base64_encode(!empty($_GET[GET_EXTERN_INTERN_USER_ID]) && isset(Server::$Operators[Operator::GetSystemId(Encoding::Base64UrlDecode($_GET[GET_EXTERN_INTERN_USER_ID]))]) ? Encoding::Base64UrlDecode($_GET[GET_EXTERN_INTERN_USER_ID]) : ""), $html);
$html = str_replace("<!--requested_intern_fullname-->", base64_encode(!empty($_GET[GET_EXTERN_INTERN_USER_ID]) && isset(Server::$Operators[Operator::GetSystemId(Encoding::Base64UrlDecode($_GET[GET_EXTERN_INTERN_USER_ID]))]) ? Server::$Operators[Operator::GetSystemId(Encoding::Base64UrlDecode($_GET[GET_EXTERN_INTERN_USER_ID]))]->Fullname : ""), $html);
$html = str_replace("<!--debug-->", To::BoolString(!empty($_GET["debug"])), $html);
$html = str_replace("<!--geo_resolute-->", To::BoolString(!empty(Server::$Configuration->File["gl_use_ngl"]) && !(Cookie::Get("geo_data") != null && Cookie::Get("geo_data") > time() - 2592000) && !GeoTracking::SpanExists()), $html);
$html = str_replace("<!--chat_id-->", !empty($_GET["cid"]) ? getParam("cid") : "", $html);
$html = str_replace("<!--gtv2_api_key-->", strlen(Server::$Configuration->File["gl_otrs"]) > 1 ? Server::$Configuration->File["gl_otrs"] : "", $html);
$html = str_replace("<!--template_message_intern-->", base64_encode(str_replace("<!--color-->", ExternalChat::ReadBackgroundColor(), str_replace("<!--dir-->", LocalizationManager::$Direction, IOStruct::GetFile(TEMPLATE_HTML_MESSAGE_INTERN)))), $html);
$html = str_replace("<!--template_message_extern-->", base64_encode(str_replace("<!--dir-->", LocalizationManager::$Direction, IOStruct::GetFile(TEMPLATE_HTML_MESSAGE_EXTERN))), $html);
$html = str_replace("<!--template_message_add-->", base64_encode(str_replace("<!--dir-->", LocalizationManager::$Direction, IOStruct::GetFile(TEMPLATE_HTML_MESSAGE_ADD))), $html);
$html = str_replace("<!--template_message_add_alt-->", base64_encode(str_replace("<!--dir-->", LocalizationManager::$Direction, IOStruct::GetFile(TEMPLATE_HTML_MESSAGE_ADD_ALTERNATE))), $html);
$html = str_replace("<!--primary_color-->", ExternalChat::ReadBackgroundColor(), $html);
$html = str_replace("<!--secondary_color-->", ExternalChat::ReadTextColor(), $html);
$html = str_replace("<!--direct_login-->", To::BoolString(isset($_GET[GET_EXTERN_USER_NAME]) && !isset($_GET[GET_EXTERN_RESET]) || isset($_GET["dl"])), $html);
$html = str_replace("<!--preselect_ticket-->", To::BoolString(isset($_GET["pt"])), $html);
$html = str_replace("<!--is_ie-->", To::BoolString(!empty($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false), $html);
$html = str_replace("<!--is_ios-->", To::BoolString($MobileDetect->isIOS()), $html);
$html = str_replace("<!--setup_error-->", base64_encode(buildLoginErrorField()), $html);
$html = str_replace("<!--offline_message_mode-->", Server::$Configuration->File["gl_om_mode"], $html);
$html = str_replace("<!--offline_message_http-->", Server::$Configuration->File["gl_om_http"], $html);
$html = str_replace("<!--checkout_url-->", !empty(Server::$Configuration->Database["ccpp"]["Custom"]) ? Server::$Configuration->Database["ccpp"]["Custom"]->URL : "", $html);
$html = str_replace("<!--checkout_only-->", To::BoolString(!empty($_GET["co"]) && !empty($_GET[GET_EXTERN_GROUP])), $html);
$html = str_replace("<!--checkout_extend_success-->", To::BoolString(!empty($_GET["co"]) && !empty($_GET["vc"])), $html);
$html = str_replace("<!--function_callback-->", To::BoolString(empty(VisitorChat::$DynamicGroup) && (!empty($_GET["cmb"]) || !empty($_GET["ofc"]))), $html);
$html = str_replace("<!--function_ticket-->", To::BoolString(empty($_GET["nct"])), $html);
$html = str_replace("<!--function_chat-->", To::BoolString(empty($_GET["hfc"])), $html);
$html = str_replace("<!--function_knowledgebase-->", To::BoolString(empty($_GET["hfk"]) && !empty(Server::$Configuration->File["gl_knba"])), $html);
$html = str_replace("<!--hide_group_select_chat-->", To::BoolString(Communication::GetParameter("hcgs", 0, $nu, FILTER_VALIDATE_INT) == "1" || !empty($_GET[GET_EXTERN_DYNAMIC_GROUP])), $html);
$html = str_replace("<!--hide_group_select_ticket-->", To::BoolString(Communication::GetParameter("htgs", 0, $nu, FILTER_VALIDATE_INT) == "1"), $html);
$html = str_replace("<!--require_group_selection-->", To::BoolString(Communication::GetParameter("rgs", 0, $nu, FILTER_VALIDATE_INT) == "1"), $html);
$html = str_replace("<!--offline_message_pop-->", To::BoolString(!empty(Server::$Configuration->File["gl_om_pop_up"]) || empty(Server::$Configuration->File["gl_om_mode"])), $html);
$html = str_replace("<!--dynamic_group-->", !empty(VisitorChat::$DynamicGroup) ? base64_encode(Server::$Groups[VisitorChat::$DynamicGroup]->Descriptions["EN"]) : "", $html);
示例2:
<td><?php
var_dump($detect->isIphone());
?>
</td>
</tr>
<tr>
<td>istablet()</td>
<td><?php
var_dump($detect->istablet());
?>
</td>
</tr>
<tr>
<td>isIOS()</td>
<td><?php
var_dump($detect->isIOS());
?>
</td>
</tr>
<tr>
<td>isWhateverYouWant()</td>
<td class="randomcrap"><?php
var_dump($detect->isWhateverYouWant());
?>
</td>
</tr>
</tbody>
</table>
</section>
示例3:
// Android devices with lollipop and above os has 'wv' in the webview browser
$touch_webview_browser = true;
$if_cond = 'wv';
} else {
if (preg_match('/.\\[FB.*\\]/', $user_agent)) {
// FB app in browser has FB in the user agent
$touch_webview_browser = true;
$if_cond = 'FB';
} else {
if (preg_match('/.*twitter.*/i', $user_agent)) {
// New twitter app in browser has Twitter in the user agent
$touch_webview_browser = true;
$if_cond = 'Twitter';
} else {
// Try to detect older in app browsers that don't have the obvious ones.
if ($detect->isIOS()) {
if (preg_match('/.*KHTML.*\\) Mobile./', $user_agent)) {
$touch_webview_browser = true;
$if_cond = 'other iOS in app browser';
}
} else {
if ($detect->isAndroid()) {
if (preg_match('/.*KHTML.*\\) Version./', $user_agent)) {
$touch_webview_browser = true;
$if_cond = 'other Android in app browser';
}
}
}
}
}
}