Proyectos de Subversion Moodle

Rev

Rev 966 | Rev 979 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 966 Rev 967
Línea 85... Línea 85...
85
        if (!in_array($PAGE->context->contextlevel, array(CONTEXT_COURSE, CONTEXT_SYSTEM, CONTEXT_MODULE, CONTEXT_USER))) {
85
        if (!in_array($PAGE->context->contextlevel, array(CONTEXT_COURSE, CONTEXT_SYSTEM, CONTEXT_MODULE, CONTEXT_USER))) {
86
            return '';
86
            return '';
87
        }
87
        }
Línea 88... Línea 88...
88
 
88
 
89
        $this->content = new stdClass();
-
 
90
        $this->content->footer = '';
-
 
91
        $this->content->text = '';
-
 
92
        if (empty($this->instance)) {
-
 
93
            return $this->content;
-
 
94
        }
-
 
95
 
-
 
Línea 96... Línea 89...
96
        $this->content = new stdClass();
89
        $this->content = new stdClass();
97
 
90
 
98
        if (!empty($this->config->title)) {
91
        if (!empty($this->config->title)) {
99
            $this->content->title =  format_text($this->config->title, FORMAT_HTML, array('filter' => true));
92
            $this->content->title =  format_text($this->config->title, FORMAT_HTML, array('filter' => true));
100
        } else {
93
        } else {
Línea 101... Línea 94...
101
            $this->content->title = get_string('cesa_notes', 'block_cesa_notes');
94
            $this->content->title = get_string('cesa_notes', 'block_cesa_notes');
102
        }
-
 
103
 
95
        }
Línea -... Línea 96...
-
 
96
 
-
 
97
        $this->content->text = '<div class="inline-cesa_notes-opener">' . get_string('showcesa_notes', 'block_cesa_notes') . '</div>';
-
 
98
        $this->content->footer = '';
-
 
99
 
104
        $this->content->text = '<div class="inline-cesa_notes-opener">' . get_string('showcesa_notes', 'block_cesa_notes') . '</div>';
100
        if (empty($this->instance)) {
105
 
101
            return $this->content;
106
        $this->content->footer = '';
102
        }
107
 
103
 
-
 
104
        if ($jscount == 0) {
108
        if ($jscount == 0) {
105
            $this->block_cesa_notes_get_required_javascript();
109
            $this->block_cesa_notes_get_required_javascript();
106
            $jscount++;
Línea 110... Línea 107...
110
            $jscount++;
107
        }
111
        }
108