Proyectos de Subversion Moodle

Rev

Rev 435 | Rev 437 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
126 ariadna 1
<?php
1 efrain 2
defined('MOODLE_INTERNAL') || die();
134 ariadna 3
 
136 ariadna 4
$THEME->name = 'universe_child';
5
$THEME->parents = ['universe'];
6
 
161 ariadna 7
require_once(__DIR__ . '/lib.php');
8
 
434 ariadna 9
$THEME->sheets = ['styles', 'quiz', 'mobile', 'message-page', 'navbar'];
436 ariadna 10
$THEME->custommenuitems = 'Menú Principal|
11
                           - Subenlace 1|/ruta/subenlace1
12
                           - Subenlace 2|/ruta/subenlace2';
1 efrain 13
$THEME->editor_sheets = [];
14
$THEME->enable_dock = false;
15
$THEME->yuicssmodules = array();
435 ariadna 16
$THEME->requiredblocks = '';
1 efrain 17
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
18
$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV;
19
$THEME->hidefromselector = false;
20
$THEME->extrascsscallback = 'theme_universe_child_get_extra_scss';
21
$THEME->iconsystem = core\output\icon_system::FONTAWESOME;
126 ariadna 22
$THEME->scss = function ($theme) {
1 efrain 23
    return theme_universe_get_main_scss_content($theme);
24
};
25
$THEME->haseditswitch = true;
435 ariadna 26
 
126 ariadna 27
$THEME->scss = function ($theme) {
1 efrain 28
    // We need to load the config for our parent theme because that is where the preset setting is defined.
29
    $parentconfig = theme_config::load('universe');
30
    // Call a function from our parent themes lib.php file to fetch the content of the themes main SCSS file based on it's own config, not ours.
31
    return theme_universe_get_main_scss_content($parentconfig);
32
};
435 ariadna 33
 
1 efrain 34
$THEME->prescsscallback = 'theme_universe_child_get_pre_scss';
315 ariadna 35
 
36
$THEME->layouts = [
37
    'incourse' => array(
38
        'file' => 'tmpl-incourse.php',
39
        'regions' => array('side-post', 'side-pre', 'bellow-content', 'right'),
40
        'defaultregion' => 'side-post',
41
    ),
316 ariadna 42
];