3 class block_html
extends block_base
{
6 $this->title
= get_string('html', 'block_html');
7 $this->version
= 2004123000;
10 function applicable_formats() {
11 return array('all' => true);
14 function specialization() {
15 $this->title
= isset($this->config
->title
) ?
$this->config
->title
: get_string('newhtmlblock', 'block_html');
18 function instance_allow_multiple() {
22 function get_content() {
23 if ($this->content
!== NULL) {
24 return $this->content
;
27 $filteropt = new stdClass
;
28 $filteropt->noclean
= true;
30 $this->content
= new stdClass
;
31 $this->content
->text
= isset($this->config
->text
) ?
format_text($this->config
->text
, FORMAT_HTML
, $filteropt) : '';
32 $this->content
->footer
= '';
34 unset($filteropt); // memory footprint
36 return $this->content
;