-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
28 lines (24 loc) · 856 Bytes
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
* Contao Open Source CMS
*
* @file config.php
* @author Sascha Weidner
* @version 3.0.0
* @package sioweb.contao.extensions.devices
* @copyright Sascha Weidner, Sioweb
*/
$MobileDetectData = array(
'replace' => array(), // array('phoneDevices','properties','browsers','tabletDevices','operatingSystems','utilities'),
'phoneDevices' => array(),
'properties' => array(),
'browsers' => array(),
'tabletDevices' => array(),
'operatingSystems' => array(),
'utilities' => array(),
);
if(empty($GLOBALS['MobileDetect']))
$GLOBALS['MobileDetect'] = array();
$GLOBALS['MobileDetect'] = array_replace_recursive($MobileDetectData, $GLOBALS['MobileDetect']);
$GLOBALS['TL_HOOKS']['getContentElement'][] = array('ContentDevice', 'loadContentForDevice');
$GLOBALS['TL_HOOKS']['getFrontendModule'][] = array('ModuleDevice', 'loadModuleForDevice');