?> </div> <?php if ($attached) { ?> <div class="activity-attachments"> <?php foreach ($attachments as $attachment) { $attachment = new Plugins\Groups\Activity\Models\Attachment($attachment); $attachment->setUploadDir('/site/groups/' . $this->group->get('gidNumber') . '/uploads'); if (!$attachment->exists()) { continue; } if (!trim($attachment->get('description'))) { $attachment->set('description', $attachment->get('filename')); } $link = 'index.php?option=com_groups&cn=' . $this->group->get('cn') . '&active=File:/uploads/' . ($attachment->get('subdir') ? $attachment->get('subdir') . '/' : '') . $attachment->get('filename'); if ($attachment->isImage()) { ?> <a class="attachment img" rel="lightbox" href="<?php echo Route::url($link); ?> "> <img src="<?php echo Route::url($link); ?> " alt="<?php echo $this->escape($attachment->get('description')); ?> " width="<?php