aboutsummaryrefslogtreecommitdiff
path: root/templates/shared
diff options
context:
space:
mode:
Diffstat (limited to 'templates/shared')
-rw-r--r--templates/shared/action-menu-single.php4
-rw-r--r--templates/shared/action-menu.php4
-rw-r--r--templates/shared/content_box.php2
-rw-r--r--templates/shared/index_box.php2
4 files changed, 6 insertions, 6 deletions
diff --git a/templates/shared/action-menu-single.php b/templates/shared/action-menu-single.php
index 9fdd5d3..dbe38c1 100644
--- a/templates/shared/action-menu-single.php
+++ b/templates/shared/action-menu-single.php
@@ -15,7 +15,7 @@
<? if ($action['disabled']): ?>
<label class="undecorated action-menu-item-disabled" aria-disabled="true" <?= arrayToHtmlAttributes($action['attributes'] + ['title' => $action['label']]) ?>>
<? if ($action['icon']): ?>
- <?= $action['icon']->asSvg(['class' => 'action-menu-item-icon']) ?>
+ <?= $action['icon']->asImg(['class' => 'action-menu-item-icon']) ?>
<? else: ?>
<?= htmlReady($action['label']) ?>
<? endif ?>
@@ -23,7 +23,7 @@
<? elseif ($action['type'] === 'link'): ?>
<a href="<?= htmlReady($action['link']) ?>" <?= arrayToHtmlAttributes($action['attributes'] + ['title' => $action['label']]) ?>>
<? if ($action['icon']): ?>
- <?= $action['icon']->asSvg(['class' => 'action-menu-item-icon']) ?>
+ <?= $action['icon']->asImg(['class' => 'action-menu-item-icon']) ?>
<? else: ?>
<?= htmlReady($action['label']) ?>
<? endif ?>
diff --git a/templates/shared/action-menu.php b/templates/shared/action-menu.php
index 0119e40..5b105b2 100644
--- a/templates/shared/action-menu.php
+++ b/templates/shared/action-menu.php
@@ -37,7 +37,7 @@
<? if ($action['disabled']): ?>
<label class="undecorated" aria-disabled="true" <?= arrayToHtmlAttributes($action['attributes']) ?>>
<? if ($action['icon']): ?>
- <?= $action['icon']->asSvg(false, ['class' => 'action-menu-item-icon']) ?>
+ <?= $action['icon']->asImg(false, ['class' => 'action-menu-item-icon']) ?>
<? else: ?>
<span class="action-menu-no-icon"></span>
<? endif ?>
@@ -47,7 +47,7 @@
<? elseif ($action['type'] === 'link'): ?>
<a href="<?= htmlReady($action['link']) ?>" <?= arrayToHtmlAttributes($action['attributes']) ?>>
<? if ($action['icon']): ?>
- <?= $action['icon']->asSvg(false, ['class' => 'action-menu-item-icon']) ?>
+ <?= $action['icon']->asImg(false, ['class' => 'action-menu-item-icon']) ?>
<? else: ?>
<span class="action-menu-no-icon"></span>
<? endif ?>
diff --git a/templates/shared/content_box.php b/templates/shared/content_box.php
index 2c5b0f0..c31f467 100644
--- a/templates/shared/content_box.php
+++ b/templates/shared/content_box.php
@@ -11,7 +11,7 @@
<? if (isset($admin_url)): ?>
<nav>
<a href="<?= URLHelper::getLink($admin_url) ?>" title="<?= htmlReady($admin_title) ?>">
- <?= Icon::create('admin')->asSvg(tooltip2(htmlReady($admin_title))) ?>
+ <?= Icon::create('admin')->asImg(tooltip2(htmlReady($admin_title))) ?>
</a>
</nav>
<? endif; ?>
diff --git a/templates/shared/index_box.php b/templates/shared/index_box.php
index 98ef9c5..92170f4f 100644
--- a/templates/shared/index_box.php
+++ b/templates/shared/index_box.php
@@ -20,7 +20,7 @@
<td class="table_header_bold" style="text-align: right;">
<? if (isset($admin_url)): ?>
<a href="<?= URLHelper::getLink($admin_url) ?>" title="<?= htmlReady($admin_title ?? _('Administration')) ?>">
- <?= Icon::create('admin', Icon::ROLE_INFO_ALT)->asSvg([
+ <?= Icon::create('admin', Icon::ROLE_INFO_ALT)->asImg([
'alt' => $admin_title ?? _('Administration'),
]) ?>
</a>