mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 03:16:42 +02:00
MDL-71610 theme_boost: remove edit button from Boost
This commit is contained in:
parent
09f6ce9fed
commit
a0bb51622c
12 changed files with 22 additions and 9 deletions
|
@ -8836,7 +8836,7 @@ function admin_externalpage_setup($section, $extrabutton = '', array $extraurlpa
|
|||
|
||||
$visiblepathtosection = array_reverse($extpage->visiblepath);
|
||||
|
||||
if ($PAGE->user_allowed_editing()) {
|
||||
if ($PAGE->user_allowed_editing() && !$PAGE->theme->haseditswitch) {
|
||||
if ($PAGE->user_is_editing()) {
|
||||
$caption = get_string('blockseditoff');
|
||||
$url = new moodle_url($PAGE->url, array('adminedit'=>'0', 'sesskey'=>sesskey()));
|
||||
|
|
|
@ -5434,7 +5434,7 @@ class settings_navigation extends navigation_node {
|
|||
}
|
||||
$frontpage->id = 'frontpagesettings';
|
||||
|
||||
if ($this->page->user_allowed_editing()) {
|
||||
if ($this->page->user_allowed_editing() && !$this->page->theme->haseditswitch) {
|
||||
|
||||
// Add the turn on/off settings
|
||||
$url = new moodle_url('/course/view.php', array('id'=>$course->id, 'sesskey'=>sesskey()));
|
||||
|
|
|
@ -754,7 +754,7 @@ class theme_config {
|
|||
'rendererfactory', 'csspostprocess', 'editor_sheets', 'editor_scss', 'rarrow', 'larrow', 'uarrow', 'darrow',
|
||||
'hidefromselector', 'doctype', 'yuicssmodules', 'blockrtlmanipulations', 'blockrendermethod',
|
||||
'scss', 'extrascsscallback', 'prescsscallback', 'csstreepostprocessor', 'addblockposition',
|
||||
'iconsystem', 'precompiledcsscallback');
|
||||
'iconsystem', 'precompiledcsscallback', 'haseditswitch');
|
||||
|
||||
foreach ($config as $key=>$value) {
|
||||
if (in_array($key, $configurable)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue