|
@@ 191-194 (lines=4) @@
|
| 188 |
|
{ |
| 189 |
|
switch ((int)Configuration::get('PS_MOBILE_DEVICE')) |
| 190 |
|
{ |
| 191 |
|
case 0: // Only for mobile device |
| 192 |
|
if ($this->mobile_detect->isMobile() && !$this->mobile_detect->isTablet()) |
| 193 |
|
$this->mobile_device = true; |
| 194 |
|
break; |
| 195 |
|
case 1: // Only for touchpads |
| 196 |
|
if ($this->mobile_detect->isTablet() && !$this->mobile_detect->isMobile()) |
| 197 |
|
$this->mobile_device = true; |
|
@@ 195-198 (lines=4) @@
|
| 192 |
|
if ($this->mobile_detect->isMobile() && !$this->mobile_detect->isTablet()) |
| 193 |
|
$this->mobile_device = true; |
| 194 |
|
break; |
| 195 |
|
case 1: // Only for touchpads |
| 196 |
|
if ($this->mobile_detect->isTablet() && !$this->mobile_detect->isMobile()) |
| 197 |
|
$this->mobile_device = true; |
| 198 |
|
break; |
| 199 |
|
case 2: // For touchpad or mobile devices |
| 200 |
|
if ($this->mobile_detect->isMobile() || $this->mobile_detect->isTablet()) |
| 201 |
|
$this->mobile_device = true; |
|
@@ 199-202 (lines=4) @@
|
| 196 |
|
if ($this->mobile_detect->isTablet() && !$this->mobile_detect->isMobile()) |
| 197 |
|
$this->mobile_device = true; |
| 198 |
|
break; |
| 199 |
|
case 2: // For touchpad or mobile devices |
| 200 |
|
if ($this->mobile_detect->isMobile() || $this->mobile_detect->isTablet()) |
| 201 |
|
$this->mobile_device = true; |
| 202 |
|
break; |
| 203 |
|
} |
| 204 |
|
} |
| 205 |
|
} |