Proyectos de Subversion Moodle

Rev

Rev 132 | Rev 134 | 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();
3
$THEME->name = 'universe_child';
4
$THEME->sheets = ['styles', 'quiz'];
5
$THEME->editor_sheets = [];
6
$THEME->editor_scss = ['styles'];
7
$THEME->parents = ['universe'];
8
$THEME->enable_dock = false;
9
$THEME->yuicssmodules = array();
10
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
11
$THEME->requiredblocks = '';
12
$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV;
13
$THEME->hidefromselector = false;
14
$THEME->extrascsscallback = 'theme_universe_child_get_extra_scss';
15
$THEME->iconsystem = core\output\icon_system::FONTAWESOME;
126 ariadna 16
$THEME->scss = function ($theme) {
1 efrain 17
    return theme_universe_get_main_scss_content($theme);
18
};
19
$THEME->haseditswitch = true;
126 ariadna 20
$THEME->scss = function ($theme) {
1 efrain 21
 
22
    // We need to load the config for our parent theme because that is where the preset setting is defined.
23
    $parentconfig = theme_config::load('universe');
24
    // 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.
25
    return theme_universe_get_main_scss_content($parentconfig);
26
};
27
$THEME->prescsscallback = 'theme_universe_child_get_pre_scss';
131 ariadna 28
 
29
$THEME->layouts = [
30
    'course' => array(
132 ariadna 31
        'file' => 'course.php',
131 ariadna 32
        'regions' => array(
33
            'coursetab-a',
34
            'coursetab-b',
35
            'coursetab-c',
36
            'coursetab-d',
37
            'coursetab-e',
38
            'ctopbl',
39
            'cbottombl',
40
            'cstopbl',
41
            'csbottombl',
133 ariadna 42
            'side-pre',
131 ariadna 43
            'bellow-custom'
44
        ),
133 ariadna 45
        'defaultregion' => 'side-pre',
131 ariadna 46
        'options' => array('langmenu' => true),
47
    ),
48
    'incourse' => array(
132 ariadna 49
        'file' => 'incourse.php',
133 ariadna 50
        'regions' => array('side-pre', 'bellow-custom'),
51
        'defaultregion' => 'side-pre',
131 ariadna 52
    ),
53
];