Proyectos de Subversion Moodle

Rev

Rev 739 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 739 Rev 1441
Línea 29... Línea 29...
29
$THEME->name = 'universe';
29
$THEME->name = 'universe';
30
$THEME->sheets = [];
30
$THEME->sheets = [];
31
$THEME->editor_sheets = [];
31
$THEME->editor_sheets = [];
32
$THEME->editor_scss = ['editor'];
32
$THEME->editor_scss = ['editor'];
33
$THEME->usefallback = true;
33
$THEME->usefallback = true;
34
$THEME->parents = ['boost'];
-
 
35
$THEME->scss = function ($theme) {
34
$THEME->scss = function($theme) {
36
    return theme_universe_get_main_scss_content($theme);
35
    return theme_universe_get_main_scss_content($theme);
37
};
36
};
Línea 38... Línea 37...
38
 
37
 
39
$THEME->layouts = [
38
$THEME->layouts = [
Línea 60... Línea 59...
60
            'coursetab-e',
59
            'coursetab-e',
61
            'side-pre',
60
            'side-pre',
62
            'ctopbl',
61
            'ctopbl',
63
            'cbottombl',
62
            'cbottombl',
64
            'cstopbl',
63
            'cstopbl',
65
            'csbottombl'
64
            'csbottombl'),
66
        ),
-
 
67
        'defaultregion' => 'side-pre',
65
        'defaultregion' => 'side-pre',
68
        'options' => array('langmenu' => true),
66
        'options' => array('langmenu' => true),
69
    ),
67
    ),
70
    'coursecategory' => array(
68
    'coursecategory' => array(
71
        'file' => 'tmpl-columns2.php',
69
        'file' => 'tmpl-category.php',
72
        'regions' => array('side-pre'),
70
        'regions' => array(
-
 
71
            'side-pre'
-
 
72
        ),
73
        'defaultregion' => 'side-pre',
73
        'defaultregion' => 'side-pre',
74
    ),
74
    ),
75
    // Part of course, typical for modules - default page layout if $cm specified in require_login().
75
    // Part of course, typical for modules - default page layout if $cm specified in require_login().
76
    'incourse' => array(
76
    'incourse' => array(
77
        'file' => 'tmpl-incourse.php',
77
        'file' => 'tmpl-incourse.php',
78
        'regions' => array('side-pre', 'side-post'),
78
        'regions' => array('side-pre'),
79
        'defaultregion' => 'side-pre',
79
        'defaultregion' => 'side-pre',
80
    ),
80
    ),
81
    // The site home page.
81
    // The site home page.
82
    'frontpage' => array(
82
    'frontpage' => array(
83
        'file' => 'tmpl-frontpage.php',
83
        'file' => 'tmpl-frontpage.php',
84
        'regions' => array(
84
        'regions' => array(
85
            'side-pre',
85
            'side-pre',
86
            'fpblocks-t',
86
            'fpblocks-t',
87
            'fpblocks-b'
87
            'fpblocks-b'),
88
        ),
-
 
89
        'defaultregion' => 'side-pre',
88
        'defaultregion' => 'side-pre',
90
        'options' => array('nonavbar' => true),
89
        'options' => array('nonavbar' => true),
91
    ),
90
    ),
92
    // Server administration scripts.
91
    // Server administration scripts.
93
    'admin' => array(
92
    'admin' => array(
Línea 96... Línea 95...
96
        'defaultregion' => 'side-pre',
95
        'defaultregion' => 'side-pre',
97
    ),
96
    ),
98
    // Moodle 4. - My courses page.
97
    // Moodle 4. - My courses page.
99
    'mycourses' => array(
98
    'mycourses' => array(
100
        'file' => 'tmpl-columns2.php',
99
        'file' => 'tmpl-columns2.php',
101
        'regions' => array('side-pre', 'side-post'),
100
        'regions' => array('side-pre'),
102
        'defaultregion' => 'side-pre',
101
        'defaultregion' => 'side-pre',
103
    ),
102
    ),
104
    // My dashboard page.
103
    // My dashboard page.
105
    'mydashboard' => array(
104
    'mydashboard' => array(
106
        'file' => 'tmpl-dashboard.php',
105
        'file' => 'tmpl-dashboard.php',
107
        'regions' => array(
106
        'regions' => array(
108
            'side-pre',
107
            'side-pre',
109
            'dtopblocks',
108
            'dtopblocks',
110
            'dbottomblocks'
109
            'dbottomblocks'),
111
        ),
-
 
112
        'defaultregion' => 'side-pre',
110
        'defaultregion' => 'side-pre',
113
        'options' => array('nonavbar' => true, 'langmenu' => true, 'nocontextheader' => true),
111
        'options' => array('nonavbar' => true, 'langmenu' => true, 'nocontextheader' => true),
114
    ),
112
    ),
115
    // My public page.
113
    // My public page.
116
    'mypublic' => array(
114
    'mypublic' => array(
Línea 185... Línea 183...
185
        'regions' => array('side-pre'),
183
        'regions' => array('side-pre'),
186
        'defaultregion' => 'side-pre'
184
        'defaultregion' => 'side-pre'
187
    )
185
    )
188
];
186
];
Línea 189... Línea 187...
189
 
187
 
190
//$THEME->parents = [];
188
$THEME->parents = [];
191
$THEME->enable_dock = false;
189
$THEME->enable_dock = false;
192
$THEME->extrascsscallback = 'theme_universe_get_extra_scss';
190
$THEME->extrascsscallback = 'theme_universe_get_extra_scss';
193
$THEME->prescsscallback = 'theme_universe_get_pre_scss';
191
$THEME->prescsscallback = 'theme_universe_get_pre_scss';
194
$THEME->precompiledcsscallback = 'theme_universe_get_precompiled_css';
192
$THEME->precompiledcsscallback = 'theme_universe_get_precompiled_css';
Línea 197... Línea 195...
197
$THEME->requiredblocks = '';
195
$THEME->requiredblocks = '';
198
$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV;
196
$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV;
199
$THEME->haseditswitch = true;
197
$THEME->haseditswitch = true;
200
$THEME->iconsystem = \core\output\icon_system::FONTAWESOME;
198
$THEME->iconsystem = \core\output\icon_system::FONTAWESOME;
Línea 201... Línea -...
201
 
-
 
202
$hidecourseindexnav = 0;
199
 
203
if ($THEME->settings->hidecourseindexnav == 0) {
200
if (isset($THEME->settings->hidecourseindexnav) == 0) {
204
    $THEME->usescourseindex = true;
201
    $THEME->usescourseindex = true;
205
} else {
202
} else {
206
    $THEME->usescourseindex = false;
203
    $THEME->usescourseindex = false;
207
}
204
}