mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-01-11 17:08:40 +00:00
28 lines
1.2 KiB
PHP
Executable File
28 lines
1.2 KiB
PHP
Executable File
<?php declare(strict_types=1);
|
|
|
|
use phpOMS\Utils\Parser\Markdown\Markdown;
|
|
|
|
?>
|
|
<section id="mediaFile" class="portlet">
|
|
<div class="portlet-body">
|
|
<div id="media" class="tabview tab-2 m-editor">
|
|
<ul class="tab-links">
|
|
<li><label tabindex="0" for="media-c-tab-1"><?= $this->getHtml('Preview', 'Media'); ?></label>
|
|
<li><label tabindex="0" for="media-c-tab-2"><?= $this->getHtml('Edit', 'Media'); ?></label>
|
|
</ul>
|
|
<div class="tab-content">
|
|
<input type="radio" id="media-c-tab-1" name="tabular-1" checked>
|
|
<div class="tab">
|
|
<article><?= Markdown::parse(
|
|
$this->getFileContent(($this->media->isAbsolute ? '' : __DIR__ . '/../../../../../../') . $this->media->getPath())
|
|
); ?></article>
|
|
</div>
|
|
<input type="radio" id="media-c-tab-2" name="tabular-1">
|
|
<div class="tab">
|
|
<pre class="textContent" data-tpl-text="/media/content" data-tpl-value="/media/content"><?= $this->printHtml(
|
|
$this->getFileContent(($this->media->isAbsolute ? '' : __DIR__ . '/../../../../../../') . $this->media->getPath())
|
|
); ?></pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|