Proyectos de Subversion Moodle

Rev

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

Rev 171 Rev 187
Línea 37... Línea 37...
37
use get_string;
37
use get_string;
38
use core_course_category;
38
use core_course_category;
39
use theme_universe\util\user;
39
use theme_universe\util\user;
40
use theme_universe\util\course;
40
use theme_universe\util\course;
Línea -... Línea 41...
-
 
41
 
-
 
42
require_once(__DIR__ . '/cesa.php'); // Incluimos las clases de Cesa
-
 
43
require_once(__DIR__ . '/cesa/statics_blocks.php'); // Incluimos StaticsBlocks
41
 
44
 
42
/**
45
/**
43
 * Renderers to align Moodle's HTML with that expected by Bootstrap
46
 * Renderers to align Moodle's HTML with that expected by Bootstrap
44
 *
47
 *
45
 * @package    theme_universe
48
 * @package    theme_universe
Línea 653... Línea 656...
653
        }
656
        }
Línea 654... Línea 657...
654
 
657
 
655
        return $html;
658
        return $html;
Línea -... Línea 659...
-
 
659
    }
656
    }
660
 
657
 
661
 
658
    public function bellow_blocks()
-
 
659
    {
662
    public function render_statics_blocks($userid = null)
660
        $blocks = $this->blocks_for_region('bellow-content');
-
 
Línea -... Línea 663...
-
 
663
    {
-
 
664
        global $USER;
-
 
665
 
-
 
666
        if (!$userid) {
-
 
667
            $userid = $USER->id;
-
 
668
        }
-
 
669
 
-
 
670
        // Instanciamos StaticsBlocks para renderizar los bloques
661
        return $blocks;
671
        $statics_blocks = new \StaticsBlocks();
662
    }
672
        return $statics_blocks->renderBlocks();
663
 
673
    }
664
    public function display_course_progress()
674
    public function display_course_progress()
665
    {
675
    {