} $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 echo $attachment->width() > 400 ? 400 : $attachment->width(); ?> " /> <p class="attachment-meta"> <span class="attachment-size"><?php echo Hubzero\Utility\Number::formatBytes($attachment->size()); ?> </span> <span class="attachment-action"><?php echo Lang::txt('PLG_GROUPS_ACTIVITY_FILE_DOWNLOAD'); ?> </span> </p> </a> <?php } else {