mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-14 16:28:41 +00:00
simplify path handling
This commit is contained in:
parent
81ea624099
commit
0ae0a5d454
|
|
@ -126,7 +126,7 @@ echo $this->getData('nav')->render();
|
||||||
|
|
||||||
if ($this->isImageFile($media, $path)) : ?>
|
if ($this->isImageFile($media, $path)) : ?>
|
||||||
<div class="h-overflow centerText">
|
<div class="h-overflow centerText">
|
||||||
<img src="<?= $media->isAbsolute() ? $this->printHtml($path) : $this->printHtml($this->request->getUri()->getBase() . $path); ?>">
|
<img src="<?= $media->getPath(); ?>">
|
||||||
</div>
|
</div>
|
||||||
<?php elseif ($this->isTextFile($media, $path)) : ?>
|
<?php elseif ($this->isTextFile($media, $path)) : ?>
|
||||||
<!-- if markdown show markdown editor, if image show image editor, if text file show textarea only on edit -->
|
<!-- if markdown show markdown editor, if image show image editor, if text file show textarea only on edit -->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user