Proyectos de Subversion Moodle

Rev

Rev 671 | Rev 693 | 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
 
476 ariadna 9
$THEME->sheets = [
10
    'styles',
11
    'quiz',
12
    'mobile',
13
    'message-page',
14
    'navbar',
15
    'assign',
16
    'course-catalog',
17
    'drawer-left',
487 ariadna 18
    'topbar',
476 ariadna 19
    'forum-list',
20
    'calendar',
485 ariadna 21
    'progress',
558 ariadna 22
    'my-index',
622 ariadna 23
    'mod-forum',
24
    'comment-block',
680 ariadna 25
    'feedback-block',
26
    'login'
476 ariadna 27
];
1 efrain 28
$THEME->editor_sheets = [];
29
$THEME->enable_dock = false;
30
$THEME->yuicssmodules = array();
435 ariadna 31
$THEME->requiredblocks = '';
1 efrain 32
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
33
$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV;
34
$THEME->hidefromselector = false;
35
$THEME->extrascsscallback = 'theme_universe_child_get_extra_scss';
36
$THEME->iconsystem = core\output\icon_system::FONTAWESOME;
126 ariadna 37
$THEME->scss = function ($theme) {
1 efrain 38
    return theme_universe_get_main_scss_content($theme);
39
};
40
$THEME->haseditswitch = true;
435 ariadna 41
 
126 ariadna 42
$THEME->scss = function ($theme) {
1 efrain 43
    // We need to load the config for our parent theme because that is where the preset setting is defined.
44
    $parentconfig = theme_config::load('universe');
45
    // 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.
46
    return theme_universe_get_main_scss_content($parentconfig);
47
};
435 ariadna 48
 
1 efrain 49
$THEME->prescsscallback = 'theme_universe_child_get_pre_scss';
315 ariadna 50
 
51
$THEME->layouts = [
52
    'incourse' => array(
53
        'file' => 'tmpl-incourse.php',
618 ariadna 54
        'regions' => array('side-pre'),
617 ariadna 55
        'defaultregion' => 'side-pre',
315 ariadna 56
    ),
316 ariadna 57
];