mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +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
|
@ -75,7 +75,7 @@ if ($PAGE->user_allowed_editing() && $adminediting != -1) {
|
|||
$USER->editing = $adminediting;
|
||||
}
|
||||
$buttons = null;
|
||||
if ($PAGE->user_allowed_editing()) {
|
||||
if ($PAGE->user_allowed_editing() && !$PAGE->theme->haseditswitch) {
|
||||
$url = clone($PAGE->url);
|
||||
if ($PAGE->user_is_editing()) {
|
||||
$caption = get_string('blockseditoff');
|
||||
|
|
|
@ -101,7 +101,7 @@ if (empty($SITE->fullname)) {
|
|||
echo $OUTPUT->render_from_template('core_admin/settings', $context);
|
||||
|
||||
} else {
|
||||
if ($PAGE->user_allowed_editing()) {
|
||||
if ($PAGE->user_allowed_editing() && !$PAGE->theme->haseditswitch) {
|
||||
$url = clone($PAGE->url);
|
||||
if ($PAGE->user_is_editing()) {
|
||||
$caption = get_string('blockseditoff');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue