mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-02 10:48:42 +00:00
add styles
This commit is contained in:
parent
53d38e71cb
commit
89d64c33b5
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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()));
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -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())
|
||||
); ?>
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user