mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
23 lines
876 B
HTML
Executable File
23 lines
876 B
HTML
Executable File
<?php
|
|
$usehtmleditor = can_use_html_editor();
|
|
|
|
$text = isset($this->config->text) ? $this->config->text : '';
|
|
if (!$this->content_is_trusted()) {
|
|
$text = clean_text($text, FORMAT_HTML);
|
|
}
|
|
?>
|
|
<table cellpadding="9" cellspacing="0">
|
|
<tr valign="top">
|
|
<td align="right"><?php print_string('configtitle', 'block_html'); ?>:</td>
|
|
<td><input type="text" name="title" size="30" value="<?php echo isset($this->config->title)?p($this->config->title):''; ?>" /> (<?php print_string('leaveblanktohide', 'block_html'); ?>)</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right"><?php print_string('configcontent', 'block_html'); ?>:</td>
|
|
<td><?php print_textarea($usehtmleditor, 25, 50, 0, 0, 'text', $text) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3" align="center">
|
|
<input type="submit" value="<?php print_string('savechanges') ?>" /></td>
|
|
</tr>
|
|
</table>
|