basic_settings.inc
1.64 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
<?php
function drupalexp_basic_settings_form_alter(&$form) {
$form['basic_settings'] = array(
'#type' => 'fieldset',
'#title' => 'Basic',
'#group' => 'drupalexp_settings',
'#weight' => 2
);
$form['basic_settings']['drupalexp_smoothscroll'] = array(
'#type' => 'select',
'#title' => t('Enable SmoothScroll'),
'#options' => array(1 => 'Yes', 0 => 'No'),
'#default_value' => theme_get_setting('drupalexp_smoothscroll')
);
$form['basic_settings']['drupalexp_layout'] = array(
'#type' => 'select',
'#title' => t('Layout'),
'#options' => array('wide' => 'Wide', 'boxed' => 'Boxed'),
'#default_value' => theme_get_setting('drupalexp_layout')
);
$form['basic_settings']['drupalexp_direction'] = array(
'#type' => 'select',
'#title' => t('Direction'),
'#options' => array('default'=>t('Default (Current language direction)'), 'ltr' => 'LTR', 'rtl' => 'RTL'),
'#default_value' => theme_get_setting('drupalexp_direction')
);
$form['basic_settings']['drupalexp_ga_analytics'] = array(
'#type' => 'textarea',
'#title' => t('Google Analytics Code'),
'#description'=>t('Paste your GA code without <script> and </script> tags'),
'#default_value' => theme_get_setting('drupalexp_ga_analytics')
);
$form['basic_settings']['drupalexp_wrapper_class'] = array(
'#type' => 'textfield',
'#title' => t('Custom HTML class'),
'#description'=>t('Provides this text as an additional body class (in $classes in html.tpl.php) when this section is active.'),
'#default_value' => theme_get_setting('drupalexp_wrapper_class')
);
}