<?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 alt="<?= $this->printHtml($this->media->name); ?>" 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()));
                ?>">
        </div>
    </div>
</section>