Skip to content

Commit

Permalink
Thumbnails should be hidden, missing in crypsisb3 #6199 (#6646)
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit authored and 810 committed Dec 22, 2019
1 parent 55df8b6 commit 9c54cc4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
Expand Up @@ -93,16 +93,18 @@
<div class="kattach">
<h5 style="display: none;"> <?php echo Text::_('COM_KUNENA_ATTACHMENTS'); ?> </h5>
<ul class="thumbnails">
<?php foreach ($attachments as $attachment) : ?>
<?php if ($attachment->isAudio() && !$attachment->inline) :
echo $attachment->getLayout()->render('audio'); ?>
<?php elseif ($attachment->isVideo() && !$attachment->inline) :
echo $attachment->getLayout()->render('video'); ?>
<?php elseif (!$attachment->inline) : ?>
<li class="span3 center">
<div
<?php foreach ($attachments as $attachment) :
if (!$attachment->inline) : ?>
<?php if ($attachment->isAudio()) :
echo $attachment->getLayout()->render('audio'); ?>
<?php elseif ($attachment->isVideo()) :
echo $attachment->getLayout()->render('video'); ?>
<?php else : ?>
<li class="span3 center">
<div
class="thumbnail"> <?php echo $attachment->getLayout()->render('thumbnail'); ?><?php echo $attachment->getLayout()->render('textlink'); ?> </div>
</li>
</li>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
</ul>
Expand Down
Expand Up @@ -92,20 +92,22 @@
<?php endif; ?>
<?php if (!empty($attachments)) : ?>
<div class="kattach">
<h5> <?php echo Text::_('COM_KUNENA_ATTACHMENTS'); ?> </h5>
<h5 style="display: none;"> <?php echo Text::_('COM_KUNENA_ATTACHMENTS'); ?> </h5>
<ul class="thumbnails">
<?php foreach ($attachments as $attachment) : ?>
<?php if ($attachment->isAudio()) :
echo $attachment->getLayout()->render('audio'); ?>
<?php elseif ($attachment->isVideo()) :
echo $attachment->getLayout()->render('video'); ?>
<?php else : ?>
<li class="col-md-3 text-center">
<div class="thumbnail">
<?php echo $attachment->getLayout()->render('thumbnail'); ?>
<?php echo $attachment->getLayout()->render('textlink'); ?>
</div>
</li>
<?php foreach ($attachments as $attachment) :
if (!$attachment->inline) :?>
<?php if ($attachment->isAudio()) :
echo $attachment->getLayout()->render('audio'); ?>
<?php elseif ($attachment->isVideo()) :
echo $attachment->getLayout()->render('video'); ?>
<?php else : ?>
<li class="col-md-3 text-center">
<div class="thumbnail">
<?php echo $attachment->getLayout()->render('thumbnail'); ?>
<?php echo $attachment->getLayout()->render('textlink'); ?>
</div>
</li>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
</ul>
Expand Down

0 comments on commit 9c54cc4

Please sign in to comment.