Rev 900 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
<?php
defined('MOODLE_INTERNAL') || die();
$THEME->name = 'universe_child';
$THEME->parents = ['universe'];
require_once(__DIR__ . '/lib.php');
$THEME->sheets = [
'styles',
'header',
'quiz',
'mobile',
'message-page',
'navbar',
'assign',
'course-catalog',
'drawer-left',
'topbar',
'forum-list',
'calendar',
'progress',
'my-index',
'mod-forum',
'comment-block',
'feedback-block',
'login',
'incourse',
'course-edit',
'admin-user'
];
$THEME->editor_sheets = [];
$THEME->enable_dock = false;
$THEME->yuicssmodules = array();
$THEME->requiredblocks = '';
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
$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 = [
'incourse' => array(
'file' => 'tmpl-incourse.php',
'regions' => array('side-pre'),
'defaultregion' => 'side-pre',
),
];