-
Notifications
You must be signed in to change notification settings - Fork 2
/
theme-settings.php
69 lines (68 loc) · 2.6 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
<?php
/**
* Implements hook_form_FORM_ID_alter().
*
* @param $form
* The form.
* @param $form_state
* The form state.
*/
function nexus_form_system_theme_settings_alter(&$form, &$form_state) {
$form['nexus_settings'] = array(
'#type' => 'fieldset',
'#title' => t('Nexus Settings'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
);
$form['nexus_settings']['breadcrumbs'] = array(
'#type' => 'checkbox',
'#title' => t('Show breadcrumbs in a page'),
'#default_value' => theme_get_setting('breadcrumbs','nexus'),
'#description' => t("Check this option to show breadcrumbs in page. Uncheck to hide."),
);
$form['nexus_settings']['slideshow'] = array(
'#type' => 'fieldset',
'#title' => t('Front Page Slideshow'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['nexus_settings']['slideshow']['slideshow_display'] = array(
'#type' => 'checkbox',
'#title' => t('Show slideshow'),
'#default_value' => theme_get_setting('slideshow_display','nexus'),
'#description' => t("Check this option to show Slideshow in front page. Uncheck to hide."),
);
$form['nexus_settings']['slideshow']['slide'] = array(
'#markup' => t('You can change the description and URL of each slide in the following Slide Setting fieldsets.'),
);
$form['nexus_settings']['slideshow']['slide1'] = array(
'#type' => 'fieldset',
'#title' => t('Slide 1'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['nexus_settings']['slideshow']['slide1']['slide1_head'] = array(
'#type' => 'textfield',
'#title' => t('Slide Headline'),
'#default_value' => theme_get_setting('slide1_head','nexus'),
);
$form['nexus_settings']['slideshow']['slide1']['slide1_desc'] = array(
'#type' => 'textarea',
'#title' => t('Slide Description'),
'#default_value' => theme_get_setting('slide1_desc','nexus'),
);
$form['nexus_settings']['slideshow']['slide1']['slide1_url'] = array(
'#type' => 'textfield',
'#title' => t('Slide URL'),
'#default_value' => theme_get_setting('slide1_url','nexus'),
);
$form['nexus_settings']['slideshow']['slideimage'] = array(
'#markup' => t('To change the Slide Images, Replace the slide-image-1.jpg, slide-image-2.jpg and slide-image-3.jpg in the images folder of the theme folder.'),
);
$form['theme_settings']['grid']['grid_display'] = array(
'#type' => 'checkbox',
'#title' => t('Show Developer button grid'),
'#default_value' => theme_get_setting('grid_display','nexus'),
'#description' => t("Check this option to show Button to Show Grid columns. Uncheck to hide."),
);
}