Skip to content

Commit 40e2abf

Browse files
committed
Upgrade: Update FontAwesome icon mappings for handling external links.
1 parent b59afe8 commit 40e2abf

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Changes
66

77
### Unreleased
88

9+
* 2024-10-15 - Upgrade: Update FontAwesome icon mappings for handling external links.
910
* 2024-10-15 - Upgrade: Add note to the 'Login providers' settings that Boost Union will continue to use its own settings, even after MDL-80967 was integrated in Moodle 4.5
1011
* 2024-10-15 - Upgrade: Enhance the 'activity type icons in course index' feature to support subsections in 4.5 + align the icon stylings to 4.5
1112
* 2024-10-14 - Upgrade: Fix broken Behat scenario 'Smartmenu: Menus: Presentation - Display smart menu description in different places'

locallib.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,23 +1507,25 @@ function theme_boost_union_get_scss_to_mark_external_links($theme) {
15071507
// a course).
15081508
// * The "Give feedback about this software" link in the questionmark menu (if the $CFG->enableuserfeedback setting
15091509
// is enabled).
1510+
// * The "EXIF remover" link on /admin/settings.php?section=exifremover.
15101511
// * Anything else which is shown in the call-to-action notification banners on the Dashboard
15111512
// (Currently just the "Give feedback about this software" link as well).
15121513
// These icons become obsolete now. We remove them with the sledgehammer.
1513-
$scss .= '.footer-support-link a[href^="https://moodle.com/help/"] .fa-external-link,
1514-
.footer-support-link a[target="_blank"] .fa-external-link';
1514+
$scss .= '.footer-support-link a[href^="https://moodle.com/help/"] .fa-arrow-up-right-from-square,
1515+
.footer-support-link a[target="_blank"] .fa-arrow-up-right-from-square';
15151516
if (!empty($CFG->servicespage)) {
1516-
$scss .= ', .footer-support-link a[href="'.$CFG->servicespage.'"] .fa-external-link';
1517+
$scss .= ', .footer-support-link a[href="'.$CFG->servicespage.'"] .fa-arrow-up-right-from-square';
15171518
}
15181519
if (!empty($CFG->supportpage)) {
1519-
$scss .= ', a[href="'.$CFG->supportpage.'"] .fa-external-link';
1520+
$scss .= ', a[href="'.$CFG->supportpage.'"] .fa-arrow-up-right-from-square';
15201521
}
15211522
if (!empty($CFG->enableuserfeedback)) {
1522-
$scss .= ', a[href^="https://feedback.moodle.org"] .fa-external-link,
1523+
$scss .= ', a[href^="https://feedback.moodle.org"] .fa-arrow-up-right-from-square,
15231524
a[href^="https://feedback.moodle.org"] .ms-1';
15241525
}
1525-
$scss .= ', a[href^="'.get_docs_url().'"] .fa-external-link,
1526-
div.cta a .fa-external-link {
1526+
$scss .= ', a[href^="'.get_docs_url().'"] .fa-arrow-up-right-from-square,
1527+
a[href^="https://exiftool.sourceforge.net"] .fa-arrow-up-right-from-square,
1528+
div.cta a .fa-arrow-up-right-from-square {
15271529
display: none;
15281530
}';
15291531
}

0 commit comments

Comments
 (0)