Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/adminimal_admin_menu/adminimal_menu_settings.inc | ||
---|---|---|
13 | 13 |
// Create the shortcut category. |
14 | 14 |
$form['shortcuts'] = array( |
15 | 15 |
'#type' => 'fieldset', |
16 |
'#title' => t('Shortcuts options'),
|
|
16 |
'#title' => t('Shortcut options'), |
|
17 | 17 |
); |
18 | 18 |
|
19 | 19 |
// Create the select list. |
... | ... | |
29 | 29 |
'dropdown' => t('Dropdown'), |
30 | 30 |
'exclusive' => t('Exclusive'), |
31 | 31 |
), |
32 |
'#description' => t('Select how the shortcuts will be rendered. There are currently 6 options: <ol> <li>Hidden -> The shortcuts will not be rendered inside the admin menu</li> <li>Inline -> The shortcuts will be rendered on the same line with the root menu links</li> <li>Collapsed -> The sorctus links will be collapsed like a normal menu. <strong>(Default option)</strong></li> <li>Newline -> The shortcuts will be rendered on a new line. Below the root menu links.</li> <li>Dropdown -> The shortcuts will be rendered inside a dropdown using the select html tag.</li> <li>Exclusive -> Only the shortcuts will be rendered, and the normal menu will be hidden.</li></ol>'),
|
|
32 |
'#description' => t('Select how shortcuts will be rendered: <ul> <li>Hidden: Shortcuts will not be rendered inside the admin menu.</li> <li>Inline: Shortcuts will be rendered on the same line with the root menu links.</li> <li>Collapsed: Shortcuts will be collapsed like a normal menu. <strong>(Default option)</strong></li> <li>Newline: Shortcuts will be rendered on a new line. Below the root menu links.</li> <li>Dropdown: Shortcuts will be rendered inside a dropdown using the select html tag.</li> <li>Exclusive: Only the shortcuts will be rendered; the normal menu will be hidden.</li></ul>'),
|
|
33 | 33 |
'#required' => TRUE, |
34 | 34 |
); |
35 | 35 |
|
36 |
// Create the shortcut category.
|
|
36 |
// Create the advanced settings category.
|
|
37 | 37 |
$form['advanced_settings'] = array( |
38 | 38 |
'#type' => 'fieldset', |
39 | 39 |
'#title' => t('Advanced Settings'), |
40 | 40 |
'#description' => '<div class="messages warning">WARNING: Do not change any of the advanced setting unless you know what you are doing!</div>', |
41 | 41 |
); |
42 | 42 |
|
43 |
$form['advanced_settings']['adminimal_admin_menu_slicknav'] = array(
|
|
44 |
'#type' => 'checkbox',
|
|
45 |
'#default_value' => variable_get('adminimal_admin_menu_slicknav', 'TRUE'),
|
|
46 |
'#title' => t('Enable Responsive Menu.'),
|
|
47 |
'#description' => t('<strong>Default value => Checked</strong>.
|
|
43 |
$form['advanced_settings']['adminimal_admin_menu_slicknav'] = array(
|
|
44 |
'#type' => 'checkbox',
|
|
45 |
'#default_value' => variable_get('adminimal_admin_menu_slicknav', TRUE),
|
|
46 |
'#title' => t('Enable Responsive Menu.'),
|
|
47 |
'#description' => t('<strong>Default value => Checked</strong>.
|
|
48 | 48 |
Enable this option if you want to have responsive menu and mobile device support. |
49 |
While disabling this option could save you few kilobytes (around 3KB), i will completely disable the responsive menu functionality.'), |
|
50 |
);
|
|
49 |
While disabling this option could save you few kilobytes (around 3KB), it will completely disable the responsive menu functionality.'),
|
|
50 |
);
|
|
51 | 51 |
|
52 |
$form['advanced_settings']['adminimal_admin_menu_jquery'] = array(
|
|
53 |
'#type' => 'checkbox',
|
|
54 |
'#default_value' => variable_get('adminimal_admin_menu_jquery', 'TRUE'),
|
|
55 |
'#title' => t('Load the requred jQuery 1.7 library automagically.'),
|
|
56 |
'#description' => t('<strong>Default value => Checked</strong>. This will load the newer jQuery version 1.7 using
|
|
57 |
the no-conflict method so it wont interfere with any existing jQuery or other java-script libraries.
|
|
58 |
The only reason to uncheck this if you are already using a newer version of jQuery site-wide and its globally accessible by the "$" variable. |
|
59 |
Unchekig this option could save you 33KB, but it may also break your javasctipt if not used correctly.'),
|
|
52 |
$form['advanced_settings']['adminimal_admin_menu_jquery'] = array(
|
|
53 |
'#type' => 'checkbox',
|
|
54 |
'#default_value' => variable_get('adminimal_admin_menu_jquery', TRUE),
|
|
55 |
'#title' => t('Load the required jQuery 1.7 library automagically.'),
|
|
56 |
'#description' => t('<strong>Default value => Checked</strong>. This will load the newer jQuery version 1.7 using
|
|
57 |
the no-conflict method so it won\'t interfere with any existing jQuery or other JavaScript libraries.
|
|
58 |
The only reason to un-check this if you are already using a newer version of jQuery site-wide and its globally accessible by the "$" variable.
|
|
59 |
Un-cheking this option could save you 33KB, but it may also break your JavaScript if not used correctly.'),
|
|
60 | 60 |
'#states' => array( |
61 | 61 |
// Hide the settings when the cancel notify checkbox is disabled. |
62 | 62 |
'visible' => array( |
63 |
':input[name="adminimal_admin_menu_slicknav"]' => array('checked' => TRUE), |
|
63 |
':input[name="adminimal_admin_menu_slicknav"]' => array('checked' => TRUE),
|
|
64 | 64 |
), |
65 | 65 |
'unchecked' => array( |
66 |
variable_get('adminimal_admin_menu_jquery', 'TRUE') => FALSE,
|
|
66 |
variable_get('adminimal_admin_menu_jquery', TRUE) => FALSE,
|
|
67 | 67 |
), |
68 |
),
|
|
69 |
);
|
|
68 |
), |
|
69 |
);
|
|
70 | 70 |
|
71 | 71 |
// Create the submit button. |
72 | 72 |
$form['submit'] = array( |
Formats disponibles : Unified diff
Weekly update of contrib modules