Proyectos de Subversion Moodle

Rev

Rev 156 | Rev 298 | 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->parents = ['universe'];

require_once(__DIR__ . '/lib.php');

$THEME->sheets = ['styles', 'quiz'];
$THEME->editor_sheets = [];
$THEME->editor_scss = ['styles'];
$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';