aboutsummaryrefslogtreecommitdiff
path: root/templates/blubber
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/blubber
parentef89c567131c55840192820ed7510497d970f36d (diff)
deprecate asSvg in favor of asImg, fixes #6330
Closes #6330 Merge request studip/studip!4802
Diffstat (limited to 'templates/blubber')
-rw-r--r--templates/blubber/coursegroup_context.php2
-rw-r--r--templates/blubber/disable-notifications.php4
-rw-r--r--templates/blubber/global_context.php4
-rw-r--r--templates/blubber/private_context.php8
-rw-r--r--templates/blubber/public_context.php2
5 files changed, 10 insertions, 10 deletions
diff --git a/templates/blubber/coursegroup_context.php b/templates/blubber/coursegroup_context.php
index 78c4627..b8c754b 100644
--- a/templates/blubber/coursegroup_context.php
+++ b/templates/blubber/coursegroup_context.php
@@ -36,7 +36,7 @@
<? $folder = $thread->statusgruppe->getFolder() ?>
<div>
<a href="<?= URLHelper::getLink('dispatch.php/course/files/index/'.$folder->getId(), ['cid' => $course->getId()]) ?>">
- <?= $folder->getIcon('clickable')->asSvg(25, ['class' => 'text-bottom']) ?>
+ <?= $folder->getIcon('clickable')->asImg(25, ['class' => 'text-bottom']) ?>
<?= htmlReady($folder->name) ?>
</a>
</div>
diff --git a/templates/blubber/disable-notifications.php b/templates/blubber/disable-notifications.php
index f7900dd..813da62 100644
--- a/templates/blubber/disable-notifications.php
+++ b/templates/blubber/disable-notifications.php
@@ -5,8 +5,8 @@
class="followunfollow<?= $unfollowed ? " unfollowed" : "" ?>"
title="<?= _('Benachrichtigungen für diese Konversation abstellen.') ?>"
data-thread_id="<?= htmlReady($thread->id) ?>">
- <?= Icon::create('decline')->asSvg(['class' => 'follow text-bottom']) ?>
- <?= Icon::create('notification2')->asSvg(['class' => 'unfollow text-bottom']) ?>
+ <?= Icon::create('decline')->asImg(['class' => 'follow text-bottom']) ?>
+ <?= Icon::create('notification2')->asImg(['class' => 'unfollow text-bottom']) ?>
<?= _('Benachrichtigungen aktiviert') ?>
</a>
</div>
diff --git a/templates/blubber/global_context.php b/templates/blubber/global_context.php
index e41e0f0..0568782 100644
--- a/templates/blubber/global_context.php
+++ b/templates/blubber/global_context.php
@@ -10,8 +10,8 @@
aria-pressed="<?= $unfollowed ? 'false' : 'true' ?>"
role="button"
data-thread_id="global">
- <?= Icon::create('decline')->asSvg(['class' => 'follow text-bottom']) ?>
- <?= Icon::create('notification2')->asSvg(['class' => 'unfollow text-bottom']) ?>
+ <?= Icon::create('decline')->asImg(['class' => 'follow text-bottom']) ?>
+ <?= Icon::create('notification2')->asImg(['class' => 'unfollow text-bottom']) ?>
<?= _('Benachrichtigungen aktiviert') ?>
</a>
</div>
diff --git a/templates/blubber/private_context.php b/templates/blubber/private_context.php
index a943ba3..1e7d642 100644
--- a/templates/blubber/private_context.php
+++ b/templates/blubber/private_context.php
@@ -1,7 +1,7 @@
<div class="blubber_private_info indented">
<div class="icon">
- <?= Icon::create('group3', Icon::ROLE_INFO)->asSvg(50, ['title' => _('Dies ist ein privater Blubber.')]) ?>
+ <?= Icon::create('group3', Icon::ROLE_INFO)->asImg(50, ['title' => _('Dies ist ein privater Blubber.')]) ?>
</div>
<ul class="clean members">
@@ -14,7 +14,7 @@
<? if ($user) : ?>
<? if ($user->getId() !== $GLOBALS['user']->id && count($mentions) > 2) : ?>
<a class="float_right" href="<?= URLHelper::getLink('dispatch.php/blubber/write_to/' . $user->getId()) ?>" data-dialog title="<?= _('Anblubbern') ?>">
- <?= Icon::create('blubber')->asSvg(['class' => 'text-bottom']) ?>
+ <?= Icon::create('blubber')->asImg(['class' => 'text-bottom']) ?>
</a>
<? endif ?>
<? if ($user->getId() === $GLOBALS['user']->id) : ?>
@@ -23,7 +23,7 @@
data-dialog="size=auto"
title="<?= _('Gruppe verlassen') ?>"
data-confirm="<?= _('Private Konversation wirklich verlassen?') ?>">
- <?= Icon::create('door-leave')->asSvg(['class' => 'text-bottom']) ?>
+ <?= Icon::create('door-leave')->asImg(['class' => 'text-bottom']) ?>
</a>
<? endif ?>
<a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $user['username']]) ?>">
@@ -39,7 +39,7 @@
<? endforeach ?>
<li>
<a href="<?= URLHelper::getLink('dispatch.php/blubber/add_member_to_private/'.$thread->getId()) ?>" data-dialog="width=600;height=300">
- <?= Icon::create('add')->asSvg(25, ['class' => 'text-bottom']) ?>
+ <?= Icon::create('add')->asImg(25, ['class' => 'text-bottom']) ?>
</a>
</li>
</ul>
diff --git a/templates/blubber/public_context.php b/templates/blubber/public_context.php
index ea0f643..5bb3591 100644
--- a/templates/blubber/public_context.php
+++ b/templates/blubber/public_context.php
@@ -6,7 +6,7 @@
<a href="<?= URLHelper::getLink('dispatch.php/blubber/compose/'.$thread->getId()) ?>"
data-dialog
title="<?= _('Blubber bearbeiten') ?>">
- <?= Icon::create('edit')->asSvg(30) ?>
+ <?= Icon::create('edit')->asImg(30) ?>
</a>
<form action="<?= URLHelper::getLink('dispatch.php/blubber/delete/'.$thread->getId()) ?>"
method="post"