Dynamicly resize public shared images
This commit is contained in:
parent
5f997021d1
commit
d7b878b303
|
@ -6,3 +6,5 @@ body { background:#ddd; }
|
||||||
#noPreview { display:none; padding-top:5em; }
|
#noPreview { display:none; padding-top:5em; }
|
||||||
p.info { width:22em; text-align: center; margin:2em auto; color:#777; text-shadow:#fff 0 1px 0; }
|
p.info { width:22em; text-align: center; margin:2em auto; color:#777; text-shadow:#fff 0 1px 0; }
|
||||||
p.info a { font-weight:bold; color:#777; }
|
p.info a { font-weight:bold; color:#777; }
|
||||||
|
#imgframe{ width:80%; height: 75%; margin: 0 auto; padding-bottom:2em; }
|
||||||
|
#imgframe img{ max-height:100%; max-width: 100%; }
|
|
@ -16,7 +16,9 @@
|
||||||
<?php echo $_['folder']; ?>
|
<?php echo $_['folder']; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php if (substr($_['mimetype'], 0 , strpos($_['mimetype'], '/')) == 'image'): ?>
|
<?php if (substr($_['mimetype'], 0 , strpos($_['mimetype'], '/')) == 'image'): ?>
|
||||||
|
<div id="imgframe">
|
||||||
<img src="<?php echo $_['downloadURL']; ?>" />
|
<img src="<?php echo $_['downloadURL']; ?>" />
|
||||||
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<ul id="noPreview">
|
<ul id="noPreview">
|
||||||
<li class="error">
|
<li class="error">
|
||||||
|
|
Loading…
Reference in New Issue