mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-16 09:18:42 +00:00
Auto adjust image/canvas size to image
This commit is contained in:
parent
e8759190cf
commit
ee15ab5bd4
|
|
@ -36,8 +36,8 @@ echo $this->getData('nav')->render();
|
||||||
<tr><td>Description<td><?= $media->getDescription(); ?>
|
<tr><td>Description<td><?= $media->getDescription(); ?>
|
||||||
<tr><td colspan="2">Content
|
<tr><td colspan="2">Content
|
||||||
</table>
|
</table>
|
||||||
<?php if(in_array($media->getExtension(), ['gif', 'bmp', 'jpg', 'jpeg', 'png'])) : ?>
|
<?php if(\phpOMS\System\File\FileUtils::getExtensionType($media->getExtension()) === \phpOMS\System\File\ExtensionType::IMAGE) : ?>
|
||||||
<img src="<?= $this->request->getUri()->getBase() . $media->getPath(); ?>">
|
<div class="h-overflow"><img src="<?= $this->request->getUri()->getBase() . $media->getPath(); ?>"></div>
|
||||||
<?php elseif($media->getExtension() === 'collection') : ?>
|
<?php elseif($media->getExtension() === 'collection') : ?>
|
||||||
collection
|
collection
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,8 @@ echo $this->getData('nav')->render();
|
||||||
<tr><td>Description<td><?= $media->getDescription(); ?>
|
<tr><td>Description<td><?= $media->getDescription(); ?>
|
||||||
<tr><td colspan="2">Content
|
<tr><td colspan="2">Content
|
||||||
</table>
|
</table>
|
||||||
<?php if(in_array($media->getExtension(), ['gif', 'bmp', 'jpg', 'jpeg', 'png'])) : ?>
|
<?php if(\phpOMS\System\File\FileUtils::getExtensionType($media->getExtension()) === \phpOMS\System\File\ExtensionType::IMAGE) : ?>
|
||||||
<img src="<?= $this->request->getUri()->getBase() . $media->getPath(); ?>">
|
<div class="h-overflow"><img src="<?= $this->request->getUri()->getBase() . $media->getPath(); ?>"></div>
|
||||||
<?php elseif($media->getExtension() === 'collection') : ?>
|
<?php elseif($media->getExtension() === 'collection') : ?>
|
||||||
collection
|
collection
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user