aboutsummaryrefslogtreecommitdiff
path: root/templates/helpbar/helpbar.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-09 09:18:53 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-09 09:18:53 +0100
commit08da9f257ff4efc98dd058e81984ac9bd6e46639 (patch)
tree5e397bb3771fa096b30d435a12bc6ab8687751b2 /templates/helpbar/helpbar.php
parentef89c567131c55840192820ed7510497d970f36d (diff)
deprecate asSvg in favor of asImg, fixes #6330
Closes #6330 Merge request studip/studip!4802
Diffstat (limited to 'templates/helpbar/helpbar.php')
-rw-r--r--templates/helpbar/helpbar.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/helpbar/helpbar.php b/templates/helpbar/helpbar.php
index 79d4bdf..6f8efbb 100644
--- a/templates/helpbar/helpbar.php
+++ b/templates/helpbar/helpbar.php
@@ -9,7 +9,7 @@
<a id="helpbar_icon" href="#" class="helpbar-toggler" data-toggles=".helpbar" role="button"
title="<?= _('Hilfelasche anzeigen/verstecken') ?>" aria-controls="helpbar-content"
aria-expanded="<?= $open ? 'true' : 'false' ?>">
- <?= Icon::create('question-circle')->asSvg(24, ['alt' => '']) ?>
+ <?= Icon::create('question-circle')->asImg(24, ['alt' => '']) ?>
</a>
<div class="helpbar" id="helpbar-content" <? if (!$open) echo 'style="display: none"'; ?>>
@@ -18,28 +18,28 @@
<a href="#" class="helpbar-toggler" data-toggles=".helpbar" aria-hidden="true" role="button"
title="<?= _('Hilfelasche verstecken') ?>" aria-controls="helpbar-content"
aria-expanded="<?= $open ? 'true' : 'false' ?>">
- <?= Icon::create('decline-circle', Icon::ROLE_INFO_ALT)->asSvg(24, ['alt' => '']) ?>
+ <?= Icon::create('decline-circle', Icon::ROLE_INFO_ALT)->asImg(24, ['alt' => '']) ?>
</a>
</h2>
<ul class="helpbar-widgets">
<? foreach ($widgets as $index => $widget): ?>
<li>
<? if ($widget->icon): ?>
- <?= is_string($widget->icon) ? Assets::img($widget->icon, ['class' => 'helpbar-widget-icon']) : $widget->icon->asSvg(['class' => 'helpbar-widget-icon', 'alt' => '']) ?>
+ <?= is_string($widget->icon) ? Assets::img($widget->icon, ['class' => 'helpbar-widget-icon']) : $widget->icon->asImg(['class' => 'helpbar-widget-icon', 'alt' => '']) ?>
<? endif; ?>
<?= $widget->render(['base_class' => 'helpbar'])?>
<div class="helpbar-widget-admin-icons">
<? if ($widget->edit_link): ?>
<a href="<?=$widget->edit_link?>" data-dialog="size=auto;reload-on-close">
- <?= Icon::create('edit', 'info_alt')->asSvg(['title' => _('Hilfe-Text bearbeiten'), 'alt' => '']) ?></a>
+ <?= Icon::create('edit', 'info_alt')->asImg(['title' => _('Hilfe-Text bearbeiten'), 'alt' => '']) ?></a>
<? endif; ?>
<? if ($widget->delete_link): ?>
<a href="<?=$widget->delete_link?>" data-dialog="size=auto;reload-on-close">
- <?= Icon::create('trash', 'info_alt')->asSvg(['title' => _('Hilfe-Text löschen'), 'alt' => '']) ?></a>
+ <?= Icon::create('trash', 'info_alt')->asImg(['title' => _('Hilfe-Text löschen'), 'alt' => '']) ?></a>
<? endif; ?>
<? if ($widget->add_link): ?>
<a href="<?=$widget->add_link?>" data-dialog="size=auto;reload-on-close">
- <?= Icon::create('add', 'info_alt')->asSvg(['title' => _('Neuer Hilfe-Text'), 'alt' => '']) ?></a>
+ <?= Icon::create('add', 'info_alt')->asImg(['title' => _('Neuer Hilfe-Text'), 'alt' => '']) ?></a>
<? endif; ?>
</div>
</li>