mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-01-21 21:48:41 +00:00
27 lines
741 B
PHP
Executable File
27 lines
741 B
PHP
Executable File
<?php
|
|
/**
|
|
* Karaka
|
|
*
|
|
* PHP Version 8.1
|
|
*
|
|
* @package Template
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://karaka.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
use phpOMS\Uri\UriFactory;
|
|
|
|
?>
|
|
<section id="mediaFile" class="portlet">
|
|
<div class="portlet-body">
|
|
<div class="h-overflow centerText">
|
|
<img style="max-width: 100%" src="<?= $this->media->getId() !== 0
|
|
? UriFactory::build('{/api}media/export?id=' . $this->media->getId())
|
|
: UriFactory::build('{/api}media/export?path=' . \urlencode($this->media->getPath()));
|
|
?>" alt="<?= $this->printHtml($this->media->name); ?>">
|
|
</div>
|
|
</div>
|
|
</section>
|