-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme-settings.php
executable file
·111 lines (110 loc) · 4.44 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
<?php
/**
* Implements hook_form_FORM_ID_alter().
*
* @param $form
* The form.
* @param $form_state
* The form state.
*/
function venture_theme_form_system_theme_settings_alter(&$form, &$form_state) {
$form['venture_theme_settings'] = array(
'#type' => 'fieldset',
'#title' => t('Venture Theme Settings'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
);
$form['venture_theme_settings']['breadcrumbs'] = array(
'#type' => 'checkbox',
'#title' => t('Show breadcrumbs in a page'),
'#default_value' => theme_get_setting('breadcrumbs','venture_theme'),
'#description' => t("Check this option to show breadcrumbs in page. Uncheck to hide."),
);
$form['venture_theme_settings']['image_logo'] = array(
'#type' => 'checkbox',
'#title' => t('Show <strong>Image Logo</strong> instead of text logo in a page'),
'#default_value' => theme_get_setting('image_logo','venture_theme'),
'#description' => t("Check this option to show Image Logo in page. Uncheck to show the text logo."),
);
$form['venture_theme_settings']['slideshow'] = array(
'#type' => 'fieldset',
'#title' => t('Front Page Slideshow'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['venture_theme_settings']['slideshow']['slideshow_display'] = array(
'#type' => 'checkbox',
'#title' => t('Show slideshow'),
'#default_value' => theme_get_setting('slideshow_display','venture_theme'),
'#description' => t("Check this option to show Slideshow in front page. Uncheck to hide."),
);
$form['venture_theme_settings']['slideshow']['slide'] = array(
'#markup' => t('You can change the description and URL of each slide in the following Slide Setting fieldsets.'),
);
$form['venture_theme_settings']['slideshow']['slide1'] = array(
'#type' => 'fieldset',
'#title' => t('Slide 1'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['venture_theme_settings']['slideshow']['slide1']['slide1_head'] = array(
'#type' => 'textfield',
'#title' => t('Slide Headline'),
'#default_value' => theme_get_setting('slide1_head','venture_theme'),
);
$form['venture_theme_settings']['slideshow']['slide1']['slide1_desc'] = array(
'#type' => 'textarea',
'#title' => t('Slide Description'),
'#default_value' => theme_get_setting('slide1_desc','venture_theme'),
);
$form['venture_theme_settings']['slideshow']['slide1']['slide1_url'] = array(
'#type' => 'textfield',
'#title' => t('Slide URL'),
'#default_value' => theme_get_setting('slide1_url','venture_theme'),
);
$form['venture_theme_settings']['slideshow']['slide2'] = array(
'#type' => 'fieldset',
'#title' => t('Slide 2'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['venture_theme_settings']['slideshow']['slide2']['slide2_head'] = array(
'#type' => 'textfield',
'#title' => t('Slide Headline'),
'#default_value' => theme_get_setting('slide2_head','venture_theme'),
);
$form['venture_theme_settings']['slideshow']['slide2']['slide2_desc'] = array(
'#type' => 'textarea',
'#title' => t('Slide Description'),
'#default_value' => theme_get_setting('slide2_desc','venture_theme'),
);
$form['venture_theme_settings']['slideshow']['slide2']['slide2_url'] = array(
'#type' => 'textfield',
'#title' => t('Slide URL'),
'#default_value' => theme_get_setting('slide2_url','venture_theme'),
);
$form['venture_theme_settings']['slideshow']['slide3'] = array(
'#type' => 'fieldset',
'#title' => t('Slide 3'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['venture_theme_settings']['slideshow']['slide3']['slide3_head'] = array(
'#type' => 'textfield',
'#title' => t('Slide Headline'),
'#default_value' => theme_get_setting('slide3_head','venture_theme'),
);
$form['venture_theme_settings']['slideshow']['slide3']['slide3_desc'] = array(
'#type' => 'textarea',
'#title' => t('Slide Description'),
'#default_value' => theme_get_setting('slide3_desc','venture_theme'),
);
$form['venture_theme_settings']['slideshow']['slide3']['slide3_url'] = array(
'#type' => 'textfield',
'#title' => t('Slide URL'),
'#default_value' => theme_get_setting('slide3_url','venture_theme'),
);
$form['venture_theme_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.'),
);
}