From bacb1ba961adcb192a3b369d89a66f5d588f7d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikel=20Mart=C3=ADn?= Date: Thu, 19 Sep 2024 11:18:09 +0200 Subject: [PATCH 1/2] MDL-83204 tool_mobile: Fix footer link spacing --- admin/tool/mobile/classes/hook_callbacks.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/tool/mobile/classes/hook_callbacks.php b/admin/tool/mobile/classes/hook_callbacks.php index 66b33516040..fb73a5ab142 100644 --- a/admin/tool/mobile/classes/hook_callbacks.php +++ b/admin/tool/mobile/classes/hook_callbacks.php @@ -76,7 +76,9 @@ class hook_callbacks { return; } $hook->add_html( - html_writer::link($url, get_string('getmoodleonyourmobile', 'tool_mobile'), ['class' => 'mobilelink']), + html_writer::div( + html_writer::link($url, get_string('getmoodleonyourmobile', 'tool_mobile'), ['class' => 'mobilelink']), + ), ); } From 27144e54743c88209b418cd5726316a0420493e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikel=20Mart=C3=ADn?= Date: Thu, 19 Sep 2024 11:18:34 +0200 Subject: [PATCH 2/2] MDL-83204 tool_policy: Fix footer link spacing --- admin/tool/policy/classes/hook_callbacks.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/tool/policy/classes/hook_callbacks.php b/admin/tool/policy/classes/hook_callbacks.php index fa2a95346a0..71191ca4eaf 100644 --- a/admin/tool/policy/classes/hook_callbacks.php +++ b/admin/tool/policy/classes/hook_callbacks.php @@ -79,7 +79,10 @@ class hook_callbacks { if (!empty($policies)) { $url = new moodle_url('/admin/tool/policy/viewall.php', ['returnurl' => $PAGE->url]); $hook->add_html( - html_writer::link($url, get_string('userpolicysettings', 'tool_policy'), ['class' => 'policiesfooter']), + html_writer::div( + html_writer::link($url, get_string('userpolicysettings', 'tool_policy')), + 'policiesfooter', + ), ); } }