add styles

This commit is contained in:
Dennis Eichhorn 2023-06-13 23:38:24 +00:00
parent 53d38e71cb
commit 89d64c33b5
7 changed files with 7 additions and 6 deletions

View File

@ -35,7 +35,6 @@ use Modules\Media\Models\ReferenceMapper;
use Modules\Media\Models\UploadFile;
use Modules\Media\Models\UploadStatus;
use Modules\Media\Theme\Backend\Components\Media\ElementView;
use Modules\Media\Views\MediaView;
use Modules\Tag\Models\NullTag;
use phpOMS\Account\PermissionType;
use phpOMS\Application\ApplicationAbstract;

View File

@ -15,6 +15,7 @@ declare(strict_types=1);
use phpOMS\Uri\UriFactory;
?>
<style>html, body, iframe { margin: 0; padding: 0; border: 0; }</style>
<audio width="100%" controls>
<source src="<?= UriFactory::build('{/api}media/export?id=' . $this->media->id); ?>" type="audio/<?= $this->media->extension; ?>">
Your browser does not support HTML audio.

View File

@ -15,7 +15,7 @@ declare(strict_types=1);
use phpOMS\Uri\UriFactory;
?>
<style>html, body, iframe { margin: 0; padding: 0; border: 0; }</style>
<img alt="<?= $this->printHtml($this->media->name); ?>" style="max-width: 100%" src="<?= $this->media->id !== 0
? UriFactory::build('{/api}media/export?id=' . $this->media->id)
: UriFactory::build('{/api}media/export?path=' . \urlencode($this->media->getPath()));

View File

@ -15,7 +15,7 @@ declare(strict_types=1);
use phpOMS\Utils\Parser\Markdown\Markdown;
?>
<style>html, body, iframe { margin: 0; padding: 0; border: 0; }</style>
<article><?= Markdown::parse(
$this->getFileContent(($this->media->isAbsolute ? '' : __DIR__ . '/../../../../../../') . $this->media->getPath())
); ?></article>

View File

@ -15,5 +15,5 @@ declare(strict_types=1);
use \phpOMS\Uri\UriFactory;
?>
<iframe class="col-simple" id="iHelperFrame" src="<?= UriFactory::build('Resources/mozilla/Pdf/web/viewer.html?file=' . \urlencode(UriFactory::build('{/api}media/export?id=' . $this->media->id))); ?>" allowfullscreen></iframe>
<style>html, body, iframe { margin: 0; padding: 0; border: 0; }</style>
<iframe class="col-simple" id="iMediaFrame" width="100%" height="100%" src="<?= UriFactory::build('/Resources/mozilla/Pdf/web/viewer.html?file=' . \urlencode(UriFactory::build('{/api}media/export?id=' . $this->media->id))); ?>" allowfullscreen></iframe>

View File

@ -1,3 +1,4 @@
<style>html, body, iframe { margin: 0; padding: 0; border: 0; }</style>
<pre class="textContent" data-tpl-text="/media/content" data-tpl-value="/media/content"><?= $this->printHtml(
$this->getFileContent(($this->media->isAbsolute ? '' : __DIR__ . '/../../../../../../') . $this->media->getPath())
); ?>

View File

@ -15,7 +15,7 @@ declare(strict_types=1);
use phpOMS\Uri\UriFactory;
?>
<style>html, body, iframe { margin: 0; padding: 0; border: 0; }</style>
<video width="100%" controls>
<source src="<?= UriFactory::build('{/api}media/export?id=' . $this->media->id); ?>" type="video/<?= $this->media->extension; ?>">
Your browser does not support HTML video.