[-] BO : theme mobile : #PSCFV-3880 : Now you have 4 options for enable the theme mobile
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17217 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -39,12 +39,13 @@ class AdminThemesControllerCore extends AdminController
|
||||
* @static
|
||||
*/
|
||||
public static $check_features = array(
|
||||
'ccc' => array( // feature key name
|
||||
'ccc' => array(
|
||||
'attributes' => array(
|
||||
'available' => array(
|
||||
'value' => 'true', // accepted attribute value
|
||||
// if value doesnt match,
|
||||
// prestashop configuration value must have thoses values
|
||||
'value' => 'true',
|
||||
/*
|
||||
* accepted attribute value if value doesnt match, prestashop configuration value must have thoses values
|
||||
*/
|
||||
'check_if_not_valid' => array(
|
||||
'PS_CSS_THEME_CACHE' => 0,
|
||||
'PS_JS_THEME_CACHE' => 0,
|
||||
@@ -162,13 +163,20 @@ class AdminThemesControllerCore extends AdminController
|
||||
),
|
||||
'PS_ALLOW_MOBILE_DEVICE' => array(
|
||||
'title' => $this->l('Enable mobile theme'),
|
||||
'desc' => $this->l('Allows visitors browsing on a mobile device, to have a light version of website'),
|
||||
'cast' => 'intval',
|
||||
'type' => 'bool',
|
||||
'desc' => $this->l('Allows visitors browsing on a mobile device or on a touchpad, to have a light version of website'),
|
||||
'type' => 'radio',
|
||||
'required' => true,
|
||||
'validation' => 'isGenericName',
|
||||
'choices' => array(
|
||||
0 => $this->l('I want disable it'),
|
||||
1 => $this->l('I want enable it only on mobiles devices'),
|
||||
2 => $this->l('I want enable it only on touchpads'),
|
||||
3 => $this->l('I want enable it on mobiles and touchpads devices')
|
||||
)
|
||||
)
|
||||
),
|
||||
'submit' => array('title' => $this->l('Save'), 'class' => 'button')
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
$this->fields_list = array(
|
||||
|
||||
Reference in New Issue
Block a user