Révision 74f6bef0
Ajouté par Assos Assos il y a plus de 10 ans
drupal7/sites/all/themes/adaptivetheme/at_core/inc/forms/settings.customcss.inc | ||
---|---|---|
4 | 4 |
* @file |
5 | 5 |
* Generate settings for the Custom CSS form. |
6 | 6 |
*/ |
7 |
function at_core_custom_css_form(&$form) { |
|
7 | 8 |
|
8 |
$form['at']['custom-styles'] = array( |
|
9 |
'#type' => 'fieldset', |
|
10 |
'#title' => t('Custom CSS'), |
|
11 |
'#weight' => 30, |
|
12 |
); |
|
13 |
$form['at']['custom-styles']['custom_css'] = array( |
|
14 |
'#type' => 'textarea', |
|
15 |
'#title' => t('Custom CSS'), |
|
16 |
'#rows' => 15, |
|
17 |
'#default_value' => at_get_setting('custom_css') ? filter_xss_admin(at_get_setting('custom_css')) : '/* Add any valid CSS declarations */', |
|
18 |
'#description' => t("The styles you enter here will be saved to the public file system in <code>themename.custom.css</code> and are not affected by upgrades. Consider using a sub-theme if you need to make major changes. Note that due to security reason you cannot use the greater than symbol (>) as a child combinator selector."), |
|
19 |
); |
|
9 |
$form['at']['custom-styles'] = array( |
|
10 |
'#type' => 'fieldset', |
|
11 |
'#title' => t('Custom CSS'), |
|
12 |
'#weight' => 30, |
|
13 |
); |
|
14 |
$form['at']['custom-styles']['custom_css'] = array( |
|
15 |
'#type' => 'textarea', |
|
16 |
'#title' => t('Custom CSS'), |
|
17 |
'#rows' => 15, |
|
18 |
'#default_value' => at_get_setting('custom_css') ? filter_xss_admin(at_get_setting('custom_css')) : '/* Add any valid CSS declarations */', |
|
19 |
'#description' => t("<p>Styles entered here are saved to <code>themename.custom.css</code>, at the path configured under \"File Management\" settings.</p><p>Direct, manual changes to <code>themename.custom.css</code> will always be overwritten by submitting this form. Consider using a sub-theme for major changes or a CSS file declared in the info file.</p><p>Note that for security reasons you cannot use the greater than symbol (>) as a child combinator selector.</p>"), |
|
20 |
); |
|
21 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules