| 1 |
<?php
|
| 2 |
|
| 3 |
function siberia_settings() {
|
| 4 |
|
| 5 |
$variables = theme_get_settings('siberia');
|
| 6 |
|
| 7 |
$defaults = array(
|
| 8 |
'siberia_width' => 0,
|
| 9 |
'siberia_fixedwidth' => '850',
|
| 10 |
'siberia_breadcrumb' => 0,
|
| 11 |
'siberia_iepngfix' => 0,
|
| 12 |
);
|
| 13 |
|
| 14 |
$variables = array_merge($defaults, $variables);
|
| 15 |
|
| 16 |
$form['siberia_width'] = array(
|
| 17 |
'#type' => 'checkbox',
|
| 18 |
'#title' => t('Use Fixed Width'),
|
| 19 |
'#default_value' => $variables['siberia_width'],
|
| 20 |
);
|
| 21 |
|
| 22 |
$form['siberia_fixedwidth'] = array(
|
| 23 |
'#type' => 'textfield',
|
| 24 |
'#title' => t('Fixed Width Size'),
|
| 25 |
'#default_value' => $variables['siberia_fixedwidth'],
|
| 26 |
'#size' => 5,
|
| 27 |
'#maxlength' => 5,
|
| 28 |
);
|
| 29 |
|
| 30 |
$form['siberia_breadcrumb'] = array(
|
| 31 |
'#type' => 'checkbox',
|
| 32 |
'#title' => t('Show Breadcrumbs'),
|
| 33 |
'#default_value' => $variables['siberia_breadcrumb'],
|
| 34 |
);
|
| 35 |
|
| 36 |
$form['siberia_iepngfix'] = array(
|
| 37 |
'#type' => 'checkbox',
|
| 38 |
'#title' => t('Use IE PNG Fix'),
|
| 39 |
'#default_value' => $variables['siberia_iepngfix'],
|
| 40 |
);
|
| 41 |
|
| 42 |
return $form;
|
| 43 |
}
|
| 44 |
|
| 45 |
|