/**
* template.php
*/
<?php
/*
* Initialize theme settings
*/
/*
* The default values for the theme variables. Make sure $defaults exactly
* matches the $defaults in the theme-settings.php file.
*/
$defaults =
array( // <-- change this array
'who_we_are_title' => 'QUEM SOMOS',
'who_we_are_text' => 'Prestamos o <strong>melhor serviço</strong> na área de seguros com os melhores produtos das <strong>principais seguradoras</strong> do mercado',
'made_by' => 1,
);
// Save theme settings with the defaults
str_replace('/',
'_',
'theme_'.
$theme_key .
'_settings'),
);
// Force refresh of Drupal internals
}
function phptemplate_preprocess_page(&$vars) {
$madeby = 'Desenvolvido por <a href="avante.com">avante.com</a>.';
}
/**
* theme-settings.php
*/
<?php
function phptemplate_settings($saved_settings) {
/*
* The default values for the theme variables. Make sure $defaults exactly
* matches the $defaults in the template.php file.
*/
'who_we_are_title' => 'QUEM SOMOS',
'who_we_are_text' => 'Prestamos o <strong>melhor serviço</strong> na área de seguros com os melhores produtos das <strong>principais seguradoras</strong> do mercado.',
'made_by' => 1,
);
// Merge the saved variables and their default values
$form['who_we_are_title'] =
array(
'#type' => 'textfield',
'#title' =>
t('Title "QUEM SOMOS"'),
'#default_value' => $settings['who_we_are_title'],
'#size' => 30,
'#maxlength' => 64,
'#description' =>
t('If is needed, you can change the title "QUEM SOMOS" localized on the front page.'),
);
$form['who_we_are_text'] =
array(
'#type' => 'textarea',
'#title' =>
t('Text of the title "QUEM SOMOS"'),
'#default_value' => $settings['who_we_are_text'],
'#size' => 100,
'#maxlength' => 255,
'#description' =>
t('If is needed, you can change the text of the title "QUEM SOMOS" localized on the front page.'),
);
$form['made_by'] =
array(
'#type' => 'checkbox',
'#title' =>
t('Enable link to developer.'),
'#default_value' => $settings['made_by'],
'#description' =>
t('If enabled, the link to developer will appear close of message footer.'),
);
return $form;
}
?>