| 1 |
<?php
|
| 2 |
|
| 3 |
|
| 4 |
function phptemplate_settings($saved_settings) {
|
| 5 |
$defaults = array(
|
| 6 |
'nx_meta_keywords' => 'keywords...',
|
| 7 |
'nx_meta_description' => 'description...',
|
| 8 |
'nx_png_fix_mode' => FALSE,
|
| 9 |
);
|
| 10 |
$defaults = array_merge($defaults, theme_get_settings());
|
| 11 |
$settings = array_merge($defaults, $saved_settings);
|
| 12 |
|
| 13 |
$form['nx_container']['seo'] = array(
|
| 14 |
'#type' => 'fieldset',
|
| 15 |
'#title' => t('Search engine optimization (SEO) settings'),
|
| 16 |
'#collapsible' => TRUE,
|
| 17 |
'#collapsed' => FALSE,
|
| 18 |
);
|
| 19 |
$form['nx_container']['seo']['meta']['nx_meta_keywords'] = array(
|
| 20 |
'#type' => 'textfield',
|
| 21 |
'#title' => t('Meta keywords'),
|
| 22 |
'#description' => t('Enter a comma-separated list of keywords'),
|
| 23 |
'#size' => 60,
|
| 24 |
'#default_value' => $settings['nx_meta_keywords'],
|
| 25 |
);
|
| 26 |
$form['nx_container']['seo']['meta']['nx_meta_description'] = array(
|
| 27 |
'#type' => 'textarea',
|
| 28 |
'#title' => t('Meta description'),
|
| 29 |
'#cols' => 60,
|
| 30 |
'#rows' => 6,
|
| 31 |
'#default_value' => $settings['nx_meta_description'],
|
| 32 |
);
|
| 33 |
|
| 34 |
$form['nx_container']['png_fix'] = array(
|
| 35 |
'#type' => 'fieldset',
|
| 36 |
'#title' => t('PNG Fix'),
|
| 37 |
'#collapsible' => TRUE,
|
| 38 |
'#collapsed' => FALSE,
|
| 39 |
);
|
| 40 |
$form['nx_container']['png_fix']['nx_png_fix_mode'] = array(
|
| 41 |
'#type' => 'checkbox',
|
| 42 |
'#title' => t('Enable PNG Fix'),
|
| 43 |
'#default_value' => $settings['nx_png_fix_mode'],
|
| 44 |
'#description' => t('Fixing the transparent PNG images in IE6 (not work with backgrounds).'),
|
| 45 |
);
|
| 46 |
|
| 47 |
return $form;
|
| 48 |
}
|
| 49 |
|