Proyectos de Subversion Moodle

Rev

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