Newer
Older
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
<?php
/**
* Implements hook_form_FORM_ID_alter().
*
* @param $form
* The form.
* @param $form_state
* The form state.
*/
function caliope_theme_form_system_theme_settings_alter(&$form, &$form_state) {
$form['prof_settings'] = array(
'#type' => 'fieldset',
'#title' => t('Professional Theme Settings'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
);
$form['prof_settings']['breadcrumbs'] = array(
'#type' => 'checkbox',
'#title' => t('Show breadcrumbs in a page'),
'#default_value' => theme_get_setting('breadcrumbs','caliope_theme'),
'#description' => t("Check this option to show breadcrumbs in page. Uncheck to hide."),
);
$form['prof_settings']['top_social_link'] = array(
'#type' => 'fieldset',
'#title' => t('Social links in header'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['prof_settings']['top_social_link']['social_links'] = array(
'#type' => 'checkbox',
'#title' => t('Show social icons (Facebook, Twitter and RSS) in header'),
'#default_value' => theme_get_setting('social_links', 'caliope_theme'),
'#description' => t("Check this option to show twitter, facebook, rss icons in header. Uncheck to hide."),
);
$form['prof_settings']['top_social_link']['twitter_username'] = array(
'#type' => 'textfield',
'#title' => t('Twitter Username'),
'#default_value' => theme_get_setting('twitter_username', 'caliope_theme'),
'#description' => t("Enter your Twitter username."),
);
$form['prof_settings']['top_social_link']['facebook_username'] = array(
'#type' => 'textfield',
'#title' => t('Facebook Username'),
'#default_value' => theme_get_setting('facebook_username', 'caliope_theme'),
'#description' => t("Enter your Facebook username."),
);
}