172 |
efrain |
1 |
<?php
|
|
|
2 |
require_once(__DIR__ . '/cesa.php');
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
class Forums extends Cesa {
|
|
|
6 |
|
|
|
7 |
public function __construct() {
|
|
|
8 |
parent::__construct('forum','foros_listado', 'below-content');
|
|
|
9 |
|
|
|
10 |
}
|
|
|
11 |
|
|
|
12 |
public function render()
|
|
|
13 |
{
|
|
|
14 |
global $PAGE, $CFG, $OUTPUT;
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
$PAGE->set_title('Foros');
|
|
|
18 |
$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.mCustomScrollbar.js', true);
|
|
|
21 |
//$PAGE->requires->css('/theme/edumynew/style/jquery.mCustomScrollbar.css', true);
|
|
|
22 |
//$PAGE->requires->jquery();
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
// $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 |
|
|
|
28 |
|
|
|
29 |
$this->addRegion();
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
$this->blockManager->load_blocks(true);
|
|
|
33 |
$this->validateIfExistBlock();
|
|
|
34 |
$this->redirectIfNotExistBlock('forums');
|
|
|
35 |
|
|
|
36 |
$view = $OUTPUT->header();
|
|
|
37 |
//$view .= $OUTPUT->blocks_for_region($this->regionName);
|
|
|
38 |
$view .= $OUTPUT->footer();
|
|
|
39 |
|
|
|
40 |
return $view;
|
|
|
41 |
}
|
|
|
42 |
}
|
|
|
43 |
|
|
|
44 |
$cesaForums = new Forums();
|
|
|
45 |
echo $cesaForums->render();
|