$role){ $systemcontext = get_context_instance(CONTEXT_SYSTEM); $permission = get_field_select('role_capabilities', 'permission', " roleid = $rid AND capability = 'moodle/course:view' AND contextid = $systemcontext->id "); if (empty($permission) || $permission != CAP_ALLOW){ unset($roles[$rid]); continue; } } $texts = array(); if (empty($this->instance->pinned) and $this->instance->pagetype !== 'course-view') { foreach(array_keys($this->config->textids) as $rid){ $textkey = "text_$rid"; $this->config->$textkey = clean_text($this->config->$textkey, FORMAT_HTML); } } ?>
: ()
: config->$textkey) ?>
: config->$textkey) ?>
name); ?>: id}"; print_textarea($usehtmleditor, 25, 50, 0, 0, $textkey, @$this->config->$textkey) ?>