Proyectos de Subversion Moodle

Rev

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

Rev 200 Rev 202
Línea 665... Línea 665...
665
 
665
 
666
        if (!$userid) {
666
        if (!$userid) {
667
            $userid = $USER->id;
667
            $userid = $USER->id;
Línea -... Línea 668...
-
 
668
        }
-
 
669
 
668
        }
670
        $html = null;
669
 
671
 
670
        // Instanciamos StaticsBlocks para renderizar los bloques
672
        // Instanciamos StaticsBlocks para renderizar los bloques
671
        $statics_blocks = new \StaticsBlocks($this->page->title);
673
        $statics_blocks = new \StaticsBlocks($this->page->title);
672
         $blocks->renderBlocks();
674
        $blocks = $statics_blocks->renderBlocks();
673
        
675
 
674
        $context = [
676
        $context = [
Línea 675... Línea 677...
675
            'blocks' => $blocks,
677
            'blocks' => $blocks,
Línea 676... Línea 678...
676
        ];
678
        ];
677
 
679
 
Línea 678... Línea 680...
678
        $html = $this->render_from_template('theme_universe/static-blocks', $header);
680
        $html .= $this->render_from_template('theme_universe/static-blocks', $context;
679
 
681
 
680
        return $html
682
        return $html;