This is the discussion topic for the Mobile extension.
Visit http://extensions.pivotx.net/entry/34/mobile for download and more info.
Version 0.8 is last version.
// Only run this hook if we are on a mobile device (or a tablet and we
// treat it as a mobile).
$allowTablet = ( isTablet() && !$PIVOTX['config']->get('mobile_treat_tablet_as_mobile') );
if (!isMobile() || $allowTablet) {
return;
}
// If there isn't a separate mobile subdomain, only run this hook
// on a mobile device (or a tablet and we treat it as a mobile).
$canonical_domain = str_replace('http://', '', $PIVOTX['config']->get('canonical_host'));
if ($PIVOTX['config']->get('mobile_domain') == $canonical_domain) {
$allowTablet = ( isTablet() && !$PIVOTX['config']->get('mobile_treat_tablet_as_mobile') );
if (!isMobile() || $allowTablet) {
return;
}
}
Users browsing this forum: No registered users and 1 guest