Skip to content

Commit

Permalink
[K6.3] Ul items misplaced for thumbnail attachments (#9743)
Browse files Browse the repository at this point in the history
* Ul items misplaced for thumbnail attachments

As far as I can test, this should be the final solution for this problem.

* Layout attachments - history

Small layout changes because attachments weren't showing nicely in history layout.
  • Loading branch information
Pinkeltje authored Sep 14, 2024
1 parent 3d01720 commit fe47465
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
15 changes: 8 additions & 7 deletions src/site/template/aurelia/layouts/message/item/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@

<?php if (!empty($attachments)) :
if (!$this->me->exists() && ($this->config->showImgForGuest || $this->config->showFileForGuest ) || $this->me->exists()) : ?>
<?php if ($attachs->inline != count($attachments) && $attachs->totalPrivate != count($attachments) || $this->me->isModerator($this->topic->getCategory()) && $attachs->totalPrivate == count($attachments)) : ?>
<div class="card pb-3 pd-3 mb-3">
<div class="card pb-3 pd-3 mb-3">
<?php if ($attachs->inline != count($attachments) && $attachs->totalPrivate != count($attachments) || $this->me->isModerator($this->topic->getCategory()) && $attachs->totalPrivate == count($attachments)) : ?>
<div class="card-header"><?php echo Text::_('COM_KUNENA_ATTACHMENTS'); ?></div>
<div class="card-body kattach">
<?php endif; ?>
<div class="card-body kattach">
<?php endif; ?>
<ul class="thumbnails" style="list-style:none;">
<?php foreach ($attachments as $attachment) :

Expand Down Expand Up @@ -166,11 +166,11 @@
</div>
</li>
<?php endif;

endforeach; ?>
</ul>
</ul></div>
<?php if ($attachs->inline != count($attachments) && $attachs->totalPrivate != count($attachments) || $this->me->isModerator($this->topic->getCategory()) && $attachs->totalPrivate == count($attachments)) : ?>
</div>

</div>
<div class="clearfix"></div>
<?php endif; ?>
Expand Down Expand Up @@ -229,3 +229,4 @@
?>
</div>
<?php endif;

Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,21 @@

if (!empty($attachments)) :
?>
<div class="kattach col-md-12">
<h4><?php echo Text::_('COM_KUNENA_ATTACHMENTS'); ?></h4>
<div class="card pb-3 pd-3 mb-3">

<div class="card-body kattach">
<ul class="thumbnails">
<?php foreach ($attachments as $attachment) :
?>
<li class="col-md-4">
<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 endforeach; ?>
</ul>
</div>
</div></div>
<?php endif; ?>
</div>
</div>
Expand Down

0 comments on commit fe47465

Please sign in to comment.