Proyectos de Subversion Moodle

Rev

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