Skip to content

Commit

Permalink
display text styled with font in media gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-peugnet committed Oct 16, 2024
1 parent ae102dc commit b786e75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/view/templates/media.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@
<img src="<?= $media->getabsolutepath() ?>" loading="lazy">
<?php } elseif($media->type() === 'video' || $media->type() === 'sound') { ?>
<?= $media->getcode(true) ?>
<?php } elseif($media->type() === 'font') { ?>
<span style="<?= $media->getcode() ?>">Abc</span>
<?php } else { ?>
<i class="fa fa-<?= $media->getsymbol() ?>"></i>
<?php } ?>
Expand Down

0 comments on commit b786e75

Please sign in to comment.