Proyectos de Subversion Moodle

Rev

Rev 680 | Rev 719 | 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',
693 ariadna 26
    'login',
27
    'incourse'
476 ariadna 28
];
1 efrain 29
$THEME->editor_sheets = [];
30
$THEME->enable_dock = false;
31
$THEME->yuicssmodules = array();
435 ariadna 32
$THEME->requiredblocks = '';
1 efrain 33
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
34
$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV;
35
$THEME->hidefromselector = false;
36
$THEME->extrascsscallback = 'theme_universe_child_get_extra_scss';
37
$THEME->iconsystem = core\output\icon_system::FONTAWESOME;
126 ariadna 38
$THEME->scss = function ($theme) {
1 efrain 39
    return theme_universe_get_main_scss_content($theme);
40
};
41
$THEME->haseditswitch = true;
435 ariadna 42
 
126 ariadna 43
$THEME->scss = function ($theme) {
1 efrain 44
    // We need to load the config for our parent theme because that is where the preset setting is defined.
45
    $parentconfig = theme_config::load('universe');
46
    // 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.
47
    return theme_universe_get_main_scss_content($parentconfig);
48
};
435 ariadna 49
 
1 efrain 50
$THEME->prescsscallback = 'theme_universe_child_get_pre_scss';
315 ariadna 51
 
52
$THEME->layouts = [
53
    'incourse' => array(
54
        'file' => 'tmpl-incourse.php',
618 ariadna 55
        'regions' => array('side-pre'),
617 ariadna 56
        'defaultregion' => 'side-pre',
315 ariadna 57
    ),
316 ariadna 58
];