public function render_assign_header()

in renderers.php [44:68]


    public function render_assign_header(assign_header $header) {
        $o = '';

        if ($header->subpage) {
            $this->page->navbar->add($header->subpage);
        }

        $heading = format_string($header->assign->name, false, array('context' => $header->context));
        $this->page->set_title($heading);
        $this->page->set_heading($this->page->course->fullname);

        $o .= $this->output->header();
        if ($header->preface) {
            $o .= $header->preface;
        }

        if ($header->showintro) {
            $o .= $this->output->box_start('generalbox boxaligncenter', 'intro');
            $o .= format_module_intro('assign', $header->assign, $header->coursemoduleid);
            $o .= $header->postfix;
            $o .= $this->output->box_end();
        }

        return $o;
    }