-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme-settings.php
More file actions
52 lines (49 loc) · 1.79 KB
/
theme-settings.php
File metadata and controls
52 lines (49 loc) · 1.79 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
41
42
43
44
45
46
47
48
49
50
51
52
<?php
// $Id: theme-settings.php,v 1.7 2011/01/25 02:25:18 alexweber Exp $
/**
* @file
* Contains theme settings for the theme588 theme.
*/
function theme588_form_system_theme_settings_alter(&$form, &$form_state) {
/**
* Breadcrumb settings
*/
$form['breadcrumb'] = array(
'#type' => 'fieldset',
'#title' => t('Breadcrumb'),
);
$form['breadcrumb']['breadcrumb_display'] = array(
'#type' => 'select',
'#title' => t('Display breadcrumb'),
'#default_value' => theme_get_setting('breadcrumb_display'),
'#options' => array(
'yes' => t('Yes'),
'no' => t('No'),
),
);
$form['breadcrumb']['breadcrumb_separator'] = array(
'#type' => 'textfield',
'#title' => t('Breadcrumb separator'),
'#description' => t('Text only. Dont forget to include spaces.'),
'#default_value' => theme_get_setting('breadcrumb_separator'),
'#size' => 8,
'#maxlength' => 10,
);
$form['breadcrumb']['breadcrumb_home'] = array(
'#type' => 'checkbox',
'#title' => t('Show the homepage link in breadcrumbs'),
'#default_value' => theme_get_setting('breadcrumb_home'),
);
$form['breadcrumb']['breadcrumb_trailing'] = array(
'#type' => 'checkbox',
'#title' => t('Append a separator to the end of the breadcrumb'),
'#default_value' => theme_get_setting('breadcrumb_trailing'),
'#description' => t('Useful when the breadcrumb is placed just before the title.'),
);
$form['breadcrumb']['breadcrumb_title'] = array(
'#type' => 'checkbox',
'#title' => t('Append the content title to the end of the breadcrumb'),
'#default_value' => theme_get_setting('breadcrumb_title'),
'#description' => t('Useful when the breadcrumb is not placed just before the title.'),
);
}