forked from patrickocoffeyo/BootstrapBlocks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme-settings.php
More file actions
93 lines (93 loc) · 3.55 KB
/
theme-settings.php
File metadata and controls
93 lines (93 loc) · 3.55 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
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
<?php
/**
* Implements hook_form_FORM_ID_alter().
*/
function BaseBuildingBlocks_form_system_theme_settings_alter(&$form, $form_state) {
$form['chrome_frame'] = array(
'#type' => 'fieldset',
'#title' => 'IE Compatability',
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#required' => TRUE,
'#weight' => -20,
);
$form['chrome_frame']['chrome_frame_on_off'] = array(
'#type' => 'checkbox',
'#title' => t('Edge and Chrome Frame Meta Tag'),
'#description' => t('Forces Edge and Chrome Frame on IE if enabled.'),
'#default_value' => theme_get_setting('chrome_frame_on_off'),
);
$form['buttons'] = array(
'#type' => 'fieldset',
'#title' => t('Button Settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#weight' => -40,
);
$form['buttons']['buttons_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['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 Fabebook 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;
}