Rev 132 | Rev 134 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
<?php
defined('MOODLE_INTERNAL') || die();
$THEME->name = 'universe_child';
$THEME->sheets = ['styles', 'quiz'];
$THEME->editor_sheets = [];
$THEME->editor_scss = ['styles'];
$THEME->parents = ['universe'];
$THEME->enable_dock = false;
$THEME->yuicssmodules = array();
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
$THEME->requiredblocks = '';
$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV;
$THEME->hidefromselector = false;
$THEME->extrascsscallback = 'theme_universe_child_get_extra_scss';
$THEME->iconsystem = core\output\icon_system::FONTAWESOME;
$THEME->scss = function ($theme) {
return theme_universe_get_main_scss_content($theme);
};
$THEME->haseditswitch = true;
$THEME->scss = function ($theme) {
// We need to load the config for our parent theme because that is where the preset setting is defined.
$parentconfig = theme_config::load('universe');
// 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.
return theme_universe_get_main_scss_content($parentconfig);
};
$THEME->prescsscallback = 'theme_universe_child_get_pre_scss';
$THEME->layouts = [
'course' => array(
'file' => 'course.php',
'regions' => array(
'coursetab-a',
'coursetab-b',
'coursetab-c',
'coursetab-d',
'coursetab-e',
'ctopbl',
'cbottombl',
'cstopbl',
'csbottombl',
'side-pre',
'bellow-custom'
),
'defaultregion' => 'side-pre',
'options' => array('langmenu' => true),
),
'incourse' => array(
'file' => 'incourse.php',
'regions' => array('side-pre', 'bellow-custom'),
'defaultregion' => 'side-pre',
),
];