1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
function bluemasters_form_system_theme_settings_alter(&$form, &$form_state) {
|
12 |
|
|
|
13 |
|
|
$form['mtt_settings'] = array(
|
14 |
|
|
'#type' => 'fieldset',
|
15 |
|
|
'#title' => t('Bluemasters Theme Settings'),
|
16 |
|
|
'#collapsible' => FALSE,
|
17 |
|
|
'#collapsed' => FALSE,
|
18 |
|
|
);
|
19 |
|
|
|
20 |
|
|
$form['mtt_settings']['tabs'] = array(
|
21 |
|
|
'#type' => 'vertical_tabs',
|
22 |
|
|
);
|
23 |
|
|
|
24 |
|
|
$form['mtt_settings']['tabs']['slideshow'] = array(
|
25 |
|
|
'#type' => 'fieldset',
|
26 |
|
|
'#title' => t('Slideshow'),
|
27 |
|
|
'#collapsible' => TRUE,
|
28 |
|
|
'#collapsed' => FALSE,
|
29 |
|
|
);
|
30 |
|
|
|
31 |
|
|
$form['mtt_settings']['tabs']['slideshow']['slideshow_display'] = array(
|
32 |
|
|
'#type' => 'checkbox',
|
33 |
|
|
'#title' => t('Show slideshow'),
|
34 |
|
|
'#default_value' => theme_get_setting('slideshow_display','bluemasters'),
|
35 |
|
|
);
|
36 |
|
|
|
37 |
|
|
$form['mtt_settings']['tabs']['slideshow']['slideshow_js'] = array(
|
38 |
|
|
'#type' => 'checkbox',
|
39 |
|
|
'#title' => t('Include slideshow javascript code'),
|
40 |
|
|
'#default_value' => theme_get_setting('slideshow_js','bluemasters'),
|
41 |
|
|
);
|
42 |
|
|
|
43 |
|
|
$form['mtt_settings']['tabs']['slideshow']['slideshow_effect'] = array(
|
44 |
|
|
'#type' => 'select',
|
45 |
|
|
'#title' => t('Effects'),
|
46 |
|
|
'#description' => t('From the drop-down menu, select the slideshow effect you prefer.'),
|
47 |
|
|
'#default_value' => theme_get_setting('slideshow_effect','bluemasters'),
|
48 |
|
|
'#options' => array(
|
49 |
|
|
'slide' => t('Slide'),
|
50 |
|
|
'fade' => t('Fade'),
|
51 |
|
|
),
|
52 |
|
|
);
|
53 |
|
|
|
54 |
|
|
$form['mtt_settings']['tabs']['slideshow']['slideshow_effect_time'] = array(
|
55 |
|
|
'#type' => 'textfield',
|
56 |
|
|
'#title' => t('Slideshow cycling duration (sec)'),
|
57 |
|
|
'#default_value' => theme_get_setting('slideshow_effect_time','bluemasters'),
|
58 |
|
|
);
|
59 |
|
|
|
60 |
|
|
$form['mtt_settings']['tabs']['slideshow']['slideshow_animation_time'] = array(
|
61 |
|
|
'#type' => 'textfield',
|
62 |
|
|
'#title' => t('Animation duration (only for Slide effect) (sec)'),
|
63 |
|
|
'#default_value' => theme_get_setting('slideshow_animation_time','bluemasters'),
|
64 |
|
|
);
|
65 |
|
|
|
66 |
|
|
$form['mtt_settings']['tabs']['slideshow']['slideshow_random'] = array(
|
67 |
|
|
'#type' => 'checkbox',
|
68 |
|
|
'#title' => t('Randomize slide order'),
|
69 |
|
|
'#default_value' => theme_get_setting('slideshow_random','bluemasters'),
|
70 |
|
|
);
|
71 |
|
|
|
72 |
|
|
$form['mtt_settings']['tabs']['slideshow']['slideshow_pause'] = array(
|
73 |
|
|
'#type' => 'checkbox',
|
74 |
|
|
'#title' => t('Pause slideshow on hover'),
|
75 |
|
|
'#default_value' => theme_get_setting('slideshow_pause','bluemasters'),
|
76 |
|
|
);
|
77 |
|
|
|
78 |
|
|
$form['mtt_settings']['tabs']['slideshow']['slideshow_controls'] = array(
|
79 |
|
|
'#type' => 'checkbox',
|
80 |
|
|
'#title' => t('Display slideshow controls'),
|
81 |
|
|
'#default_value' => theme_get_setting('slideshow_controls','bluemasters'),
|
82 |
|
|
);
|
83 |
|
|
|
84 |
|
|
$form['mtt_settings']['tabs']['slideshow']['slideshow_touch'] = array(
|
85 |
|
|
'#type' => 'checkbox',
|
86 |
|
|
'#title' => t('Allow touch swipe navigation'),
|
87 |
|
|
'#default_value' => theme_get_setting('slideshow_touch','bluemasters'),
|
88 |
|
|
);
|
89 |
|
|
|
90 |
|
|
$form['mtt_settings']['tabs']['support']['responsive'] = array(
|
91 |
|
|
'#type' => 'fieldset',
|
92 |
|
|
'#title' => t('Responsive'),
|
93 |
|
|
'#collapsible' => TRUE,
|
94 |
|
|
'#collapsed' => FALSE,
|
95 |
|
|
);
|
96 |
|
|
|
97 |
|
|
$form['mtt_settings']['tabs']['support']['responsive']['responsive_menu'] = array(
|
98 |
|
|
'#type' => 'fieldset',
|
99 |
|
|
'#title' => t('Responsive menu'),
|
100 |
|
|
'#collapsible' => TRUE,
|
101 |
|
|
'#collapsed' => TRUE,
|
102 |
|
|
);
|
103 |
|
|
|
104 |
|
|
$form['mtt_settings']['tabs']['support']['responsive']['responsive_menu']['responsive_menu_state'] = array(
|
105 |
|
|
'#type' => 'checkbox',
|
106 |
|
|
'#title' => t('Enable responsive menu'),
|
107 |
|
|
'#description' => t('Use the checkbox to enable the plugin which transforms the Main menu of your site to a dropdown select list when your browser is at mobile widths.'),
|
108 |
|
|
'#default_value' => theme_get_setting('responsive_menu_state', 'bluemasters'),
|
109 |
|
|
);
|
110 |
|
|
|
111 |
|
|
$form['mtt_settings']['tabs']['support']['responsive']['responsive_menu']['responsive_menu_switchwidth'] = array(
|
112 |
|
|
'#type' => 'textfield',
|
113 |
|
|
'#title' => t('Switch width (px)'),
|
114 |
|
|
'#description' => t('Set the width (in pixels) at which the Main menu of the site will change to a dropdown select list.'),
|
115 |
|
|
'#default_value' => theme_get_setting('responsive_menu_switchwidth', 'bluemasters'),
|
116 |
|
|
);
|
117 |
|
|
|
118 |
|
|
$form['mtt_settings']['tabs']['support']['responsive']['responsive_menu']['responsive_menu_topoptiontext'] = array(
|
119 |
|
|
'#type' => 'textfield',
|
120 |
|
|
'#title' => t('Top option text'),
|
121 |
|
|
'#description' => t('Set the very first option display text.'),
|
122 |
|
|
'#default_value' => theme_get_setting('responsive_menu_topoptiontext', 'bluemasters'),
|
123 |
|
|
);
|
124 |
|
|
|
125 |
|
|
$form['mtt_settings']['tabs']['support']['responsive']['responsive_respond'] = array(
|
126 |
|
|
'#type' => 'checkbox',
|
127 |
|
|
'#title' => t('Add Respond.js JavaScript to add basic CSS3 media query support to IE 6-8.'),
|
128 |
|
|
'#default_value' => theme_get_setting('responsive_respond','bluemasters'),
|
129 |
|
|
'#description' => t('IE 6-8 require a JavaScript polyfill solution to add basic support of CSS3 media queries. Note that you should enable <strong>Aggregate and compress CSS files</strong> through <em>/admin/config/development/performance</em>.'),
|
130 |
|
|
);
|
131 |
|
|
|
132 |
|
|
$form['mtt_settings']['tabs']['support']['responsive']['responsive_meta'] = array(
|
133 |
|
|
'#type' => 'checkbox',
|
134 |
|
|
'#title' => t('Add meta tags to support responsive design on mobile devices.'),
|
135 |
|
|
'#default_value' => theme_get_setting('responsive_meta','bluemasters'),
|
136 |
|
|
);
|
137 |
|
|
|
138 |
|
|
} |