-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme-settings.php
More file actions
56 lines (54 loc) · 1.83 KB
/
theme-settings.php
File metadata and controls
56 lines (54 loc) · 1.83 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* @file
* Custom theme settings for the Campaignion Foundation Theme.
*/
/**
* Implements hook_form_system_theme_settings_alter().
*/
function campaignion_foundation_form_system_theme_settings_alter(&$form, $form_state) {
$form['foundation_assets'] = [
'#type' => 'fieldset',
'#title' => t('Asset links'),
'#collapsible' => FALSE,
];
$form['foundation_assets']['foundation_assets_css'] = [
'#type' => 'textfield',
'#title' => t('Main CSS file'),
'#default_value' => theme_get_setting('foundation_assets_css'),
'#description' => t('Link to your main CSS file.'),
];
$form['foundation_assets']['foundation_assets_js'] = [
'#type' => 'textfield',
'#title' => t('Main JS file'),
'#default_value' => theme_get_setting('foundation_assets_js'),
'#description' => t('Link to your main JS file.'),
];
$form['grid_options'] = [
'#type' => 'fieldset',
'#title' => t('Grid options'),
'#collapsible' => FALSE,
];
$form['grid_options']['grid_options_highlighted'] = [
'#type' => 'select',
'#title' => t('Highlighted region'),
'#default_value' => theme_get_setting('grid_options_highlighted'),
'#description' => t('Configure the grid width used in the highlighted region.'),
'#options' => [
'default' => t('Default grid'),
'narrow' => t('Narrow grid'),
'off' => t('No grid'),
],
];
$form['grid_options']['grid_options_bottom'] = [
'#type' => 'select',
'#title' => t('Bottom region'),
'#default_value' => theme_get_setting('grid_options_bottom'),
'#description' => t('Configure the grid width used in the bottom region.'),
'#options' => [
'default' => t('Default grid'),
'narrow' => t('Narrow grid'),
'off' => t('No grid'),
],
];
}