Proyectos de Subversion Moodle

Rev

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

Rev 172 Rev 175
Línea 1... Línea 1...
1
<?php
1
<?php
2
require_once(__DIR__ . '/cesa.php');
2
require_once(__DIR__ . '/cesa.php');
Línea 3... Línea -...
3
 
-
 
4
 
-
 
Línea 5... Línea 3...
5
class Forums extends Cesa {
3
 
6
 
-
 
-
 
4
 
Línea -... Línea 5...
-
 
5
class Forums extends Cesa
-
 
6
{
-
 
7
 
7
    public function __construct() {
8
    public function __construct()
Línea 8... Línea 9...
8
        parent::__construct('forum','foros_listado', 'below-content');
9
    {
9
 
10
        parent::__construct('forum', 'foros_listado', 'side-pre');
10
    }
11
    }
Línea 11... Línea 12...
11
 
12
 
12
    public function render()
13
    public function render()
13
    {
14
    {
14
        global $PAGE, $CFG, $OUTPUT;
15
        global $PAGE, $CFG, $OUTPUT;
15
 
16
 
16
 
17
 
17
        $PAGE->set_title('Foros');
18
        $PAGE->set_title('Foros');
18
        $PAGE->set_url('/cesa/forums.php', array('userid' => $this->userID));
19
        $PAGE->set_url('/cesa/forums.php', array('userid' => $this->userID));
19
        //$PAGE->requires->js('/theme/edumynew/javascript/jquery.mousewheel.js', true);
20
        //$PAGE->requires->js('/theme/edumynew/javascript/jquery.mousewheel.js', true);
20
       // $PAGE->requires->js('/theme/edumynew/javascript/jquery.mCustomScrollbar.js', true);
21
        // $PAGE->requires->js('/theme/edumynew/javascript/jquery.mCustomScrollbar.js', true);
21
        //$PAGE->requires->css('/theme/edumynew/style/jquery.mCustomScrollbar.css', true);
22
        //$PAGE->requires->css('/theme/edumynew/style/jquery.mCustomScrollbar.css', true);
22
        //$PAGE->requires->jquery();
23
        //$PAGE->requires->jquery();
23
        
24
 
Línea 24... Línea 25...
24
  
25
 
25
       // $PAGE->requires->css(new moodle_url($CFG->wwwroot . '/theme/edumynew/style/jquery.mCustomScrollbar.css'));
26
        // $PAGE->requires->css(new moodle_url($CFG->wwwroot . '/theme/edumynew/style/jquery.mCustomScrollbar.css'));
26
        //$PAGE->requires->js(new moodle_url($CFG->wwwroot . '/theme/edumynew/javascript/jquery.mCustomScrollbar.concat.min.js'), true);
27
        //$PAGE->requires->js(new moodle_url($CFG->wwwroot . '/theme/edumynew/javascript/jquery.mCustomScrollbar.concat.min.js'), true);
Línea 27... Línea 28...
27
        
28
 
28
        
29
 
29
        $this->addRegion();
30
        $this->addRegion();
30
 
31
 
31
 
32
 
32
        $this->blockManager->load_blocks(true);
33
        $this->blockManager->load_blocks(true);
33
        $this->validateIfExistBlock();
34
        $this->validateIfExistBlock();
Línea 34... Línea 35...
34
        $this->redirectIfNotExistBlock('forums');
35
        $this->redirectIfNotExistBlock('forums');