|
:
|
config) && isset($this->config->title)) {
$thistitle = $this->config->title;
}
echo '';
?>
|
|
|
:
|
config) && isset($this->config->linktext)) {
$thistext = $this->config->linktext;
}
echo '';
?>
|
|
|
:
|
config) && isset($this->config->displaytype)) {
$selected = $this->config->displaytype;
} else {
if (! isset($CFG->block_contact_form_display_type) ) {
$CFG->block_contact_form_display_type = '0';
}
$selected = $CFG->block_contact_form_display_type;
}
$options = array ( '0' => get_string('displayasabutton', 'block_contact_form'),
'1' => get_string('displayasalink', 'block_contact_form') );
choose_from_menu ($options, 'displaytype', $selected);
?>
|
|
|
:
|
block_contact_form_receipt
// dei settaggi locali : $this->config->receipt
$options = array();
$options[] = get_string('force_receipt_to_0', 'block_contact_form');
$options[] = get_string('force_receipt_to_1', 'block_contact_form');
// Se รจ definito un settaggio locale
if (isset($this->config) && isset($this->config->receipt)) {
if (isset($CFG->block_contact_form_receipt)) {
$options[] = get_string('use_global_receipt', 'block_contact_form');
}
$selected = $this->config->receipt;
} else {
// Manca il settaggio locale allora comanda il settaggio globale/generale
// qualora mancasse anche il settaggio generale, allora vale il default: '0'
$selected = (isset($CFG->block_contact_form_receipt)) ? '2' : '0';
$options[] = get_string('use_global_receipt', 'block_contact_form');
}
choose_from_menu ($options, 'receipt', $selected, '');
?>
|
|
|
|
|
|
|