[-] FO : show mobile theme if you have click "Broswe the mobile site" on a PC
This commit is contained in:
1 parent
f5d4fbccfd
commit
19e14c976a
1 file changed
+5
@@ -110,6 +110,10 @@ class ContextCore
|
|||||||
{
|
{
|
||||||
$this->mobile_device = false;
|
$this->mobile_device = false;
|
||||||
if ($this->checkMobileContext())
|
if ($this->checkMobileContext())
|
||||||
|
{
|
||||||
|
if(Context::getContext()->cookie->no_mobile == false AND (int)Configuration::get('PS_ALLOW_MOBILE_DEVICE') != 0)
|
||||||
|
$this->mobile_device = true;
|
||||||
|
else
|
||||||
{
|
{
|
||||||
require_once(_PS_TOOL_DIR_.'mobile_Detect/Mobile_Detect.php');
|
require_once(_PS_TOOL_DIR_.'mobile_Detect/Mobile_Detect.php');
|
||||||
$this->mobile_detect = new Mobile_Detect();
|
$this->mobile_detect = new Mobile_Detect();
|
||||||
@@ -130,6 +134,7 @@ class ContextCore
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $this->mobile_device;
|
return $this->mobile_device;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user