Skip to content

Commit

Permalink
extend JLayout iconclass with spinner and replace hard coded fa-loadi…
Browse files Browse the repository at this point in the history
…ng icons
  • Loading branch information
hans2103 committed Sep 11, 2020
1 parent 509265d commit 4a46db5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions layouts/joomla/icon/iconclass.php
Expand Up @@ -138,6 +138,10 @@
$icon = 'fas fa-arrows-alt';
break;

case 'loading':
$icon = 'fas fa-spinner';
break;

default:
$icon = 'icon-' . $icon;
break;
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/quickicons/icon.php
Expand Up @@ -69,7 +69,7 @@
<?php endif; ?>
<?php if (isset($displayData['ajaxurl'])) : ?>
<div class="quickicon-amount" <?php echo $dataUrl ?> aria-hidden="true">
<span class="fas fa-spinner" aria-hidden="true"></span>
<?php echo LayoutHelper::render('joomla.icon.iconclass', ['icon' => 'loading']); ?>
</div>
<div class="quickicon-sr-desc sr-only"></div>
<?php endif; ?>
Expand Down

0 comments on commit 4a46db5

Please sign in to comment.