Proyectos de Subversion Moodle

Rev

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