Hi, I'm still working with this template and now I need to know if the current template layout is a mobile one from the template K2 item.php override located at gk_black_and_white/html/com_k2/templates/default/item.php
Is that possible?
Thanks!
if(!class_exists('GKBrowser')) {
require_once(dirname(__FILE__).'/../../../../lib/framework/gk.browser.php');
}
$gkbrowser = new GKBrowser();
$browser = $gkbrowser->detectBrowser();
if($browser->get('mobile')) {
$mapWidth = 374;
$mapHeight = 208;
} else {
$mapWidth = 630;
$mapHeight = 350;
}
