class GantryFeaturelogo extends GantryFeature {
var $_feature_name = 'logo';
function isEnabled() {
global $gantry;
if (!isset($gantry->browser)) return $this->get('enabled');
if ($gantry->browser->platform != 'iphone' && $gantry->browser->platform != 'android') return $this->get('enabled');
$prefix = $gantry->get('template_prefix');
$cookiename = $prefix.$gantry->browser->platform.'-switcher';
$cookie = $gantry->retrieveTemp('platform', $cookiename);
if ($cookie == 1 && $gantry->get($gantry->browser->platform.'-enabled')) return true;
return $this->get('enabled');
}
}
Time to create page: 0.068 seconds