-
Notifications
You must be signed in to change notification settings - Fork 20
/
theme-settings.php
120 lines (120 loc) · 4.81 KB
/
theme-settings.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
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
/**
* Implements hook_form_FORM_ID_alter().
*/
function BootstrapBlocks_form_system_theme_settings_alter(&$form, $form_state) {
$form['forms'] = array(
'#type' => 'fieldset',
'#title' => t('Forms'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#required' => TRUE,
'#weight' => -20,
);
$form['forms']['ignore_element_ids'] = array(
'#type' => 'textarea',
'#title' => t('Ignore Forms Elements'),
'#description' => t('Some form elements do not jive well with being bootstrap-ized. List all form IDs that should not be modified, separated by |. A default list is provided.'),
'#default_value' => theme_get_setting('ignore_element_ids'),
);
$form['buttons'] = array(
'#type' => 'fieldset',
'#title' => t('Button Settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#weight' => -40,
);
$form['buttons']['button_classes'] = array(
'#type' => 'textarea',
'#title' => t('Button Classes'),
'#description' => t('Determines what bootstrap classes should be added to buttons based off of the button title. (For example: Button Title | btn-class)'),
'#default_value' => theme_get_setting('button_classes'),
);
$form['touch_icons'] = array(
'#type' => 'fieldset',
'#title' => 'Touch Icons',
'#collapsible' => TRUE,
'#description' => t('Settings for touch icons. All touch icons are located in themedir/assets/img/icons/touch-icon-*device.png.'),
'#collapsed' => TRUE,
'#required' => TRUE,
'#weight' => -20,
);
$form['touch_icons']['touch_icons_on_off'] = array(
'#type' => 'checkbox',
'#title' => t('Touch Icons'),
'#description' => t('If enabled, adds touch icons to your site.'),
'#default_value' => theme_get_setting('touch_icons_on_off'),
);
$form['touch_icons']['windows_title'] = array(
'#type' => 'textfield',
'#title' => t('Windows Start Screen Title'),
'#description' => t('Your site can be added to the Windows 8 start screen. This title will be used. Defaults to site name.'),
'#default_value' => theme_get_setting('windows_title'),
);
$form['touch_icons']['windows_color'] = array(
'#type' => 'textfield',
'#title' => t('Windows Start Screen Color'),
'#description' => t('This color will be used as the tile color on the Windows 8 start screen. Defaults to white.'),
'#default_value' => theme_get_setting('windows_color'),
);
$form['seo'] = array(
'#type' => 'fieldset',
'#title' => 'SEO and Social Settings',
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#required' => TRUE,
'#weight' => -20,
);
$form['seo']['footer_scripts'] = array(
'#type' => 'textarea',
'#title' => t('Footer Scripts'),
'#description' => t('Footer scripts for external services, such as Google Analytic tracking scripts, Online Chat Assistance scripts, etc. Do not add any script tags.'),
'#default_value' => theme_get_setting('footer_scripts'),
);
$form['seo']['author_id'] = array(
'#type' => 'textfield',
'#title' => t('Google+ Author ID'),
'#description' => t('Adds a rel="author" link to the head of your site.'),
'#default_value' => theme_get_setting('author_id'),
);
$form['seo']['social'] = array(
'#type' => 'fieldset',
'#title' => 'Social Links',
'#description' => t('Links to social accounts related to the site. For use in your theming. (echo theme_get_setting("servicename_link");). These are not used by default in BBB, and you can add more in theme-settings.php.'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#required' => TRUE,
'#weight' => -20,
);
$form['seo']['social']['twitter_link'] = array(
'#type' => 'textfield',
'#title' => t('Twitter Link'),
'#description' => t('Full URL to Twitter account belonging to site.'),
'#default_value' => theme_get_setting('twitter_link'),
);
$form['seo']['social']['facebook_link'] = array(
'#type' => 'textfield',
'#title' => t('Facebook Link'),
'#description' => t('Full URL to Facebook account belonging to site.'),
'#default_value' => theme_get_setting('facebook_link'),
);
$form['seo']['social']['youtube_link'] = array(
'#type' => 'textfield',
'#title' => t('Youtube Link'),
'#description' => t('Full URL to Youtube account belonging to site.'),
'#default_value' => theme_get_setting('youtube_link'),
);
$form['seo']['social']['linkedin_link'] = array(
'#type' => 'textfield',
'#title' => t('LinkedIn Link'),
'#description' => t('Full URL to LinkedIn account belonging to site.'),
'#default_value' => theme_get_setting('linkedin_link'),
);
$form['seo']['social']['google+_link'] = array(
'#type' => 'textfield',
'#title' => t('Google+ Link'),
'#description' => t('Full URL to Google+ account belonging to site.'),
'#default_value' => theme_get_setting('google+_link'),
);
return $form;
}