| Server IP : 54.36.91.62 / Your IP : 216.73.217.111 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/modules/mod_community_discussions/tmpl/ |
Upload File : |
<?php
/**
* @copyright (C) 2015 iJoomla, Inc. - All rights reserved.
* @license GNU General Public License, version 2 (http://www.gnu.org/licenses/gpl-2.0.html)
* @author iJoomla.com <webmaster@ijoomla.com>
* @url https://www.jomsocial.com/license-agreement
* The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0
* More info at https://www.jomsocial.com/license-agreement
*/
defined( '_JEXEC' ) or die( 'Unauthorized Access' );
use Joomla\CMS\Language\Text;
use Joomla\CMS\Table\Table;
?>
<div class="joms-module--discussions">
<?php
if (!empty($latest)) {
$items = array();
foreach ($latest as $data) {
$items[$data->groupid][] = $data;
}
?>
<?php
foreach ($items as $groupId => $data) {
$table = Table::getInstance('Group', 'CTable');
$table->load($groupId);
if (count($data) > 1) {
$i = 0;
foreach ($data as $row) {
$creator = CFactory::getUser($row->creator);
?>
<div class="joms-stream__header wide">
<?php if ($showavatar == 2) { ?>
<div class="joms-avatar--stream">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewgroup&groupid=' . $table->id); ?>" >
<img src="<?php echo $table->getAvatar('thumb'); ?>" alt="<?php echo CStringHelper::escape($table->name); ?>" />
</a>
</div>
<?php }elseif($showavatar == 1){ ?>
<div class="joms-avatar--stream">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewgroup&groupid=' . $table->id); ?>" >
<img src="<?php echo $creator->getThumbAvatar(); ?>" alt="<?php echo CStringHelper::escape($table->name); ?>" />
</a>
</div>
<?php } ?>
<div class="joms-stream__meta">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewdiscussion&groupid=' . $table->id . '&topicid=' . $row->id); ?>" class="joms-block"><?php echo $row->title; ?></a>
<small>
<?php echo Text::_('COM_COMMUNITY_BY'); ?>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=profile&userid=' . $creator->id); ?>"><?php echo $creator->getDisplayName(); ?></a>
<span class="joms-block"><?php echo Text::sprintf((!CStringHelper::isSingular($row->counter)) ? 'MOD_COMMUNITY_DISCUSSIONS_REPLY_MANY' : 'MOD_COMMUNITY_DISCUSSIONS_REPLY', $row->counter); ?></span>
</small>
</div>
</div>
<?php $i++; } ?>
<?php } else {
$creator = CFactory::getUser($data[0]->creator);
?>
<div class="joms-stream__header wide">
<?php if ($showavatar == 2) { ?>
<div class="joms-avatar--stream">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewgroup&groupid=' . $table->id); ?>" >
<img src="<?php echo $table->getAvatar('thumb'); ?>" alt="<?php echo CStringHelper::escape($table->name); ?>" />
</a>
</div>
<?php }elseif($showavatar == 1){ ?>
<div class="joms-avatar--stream">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewgroup&groupid=' . $table->id); ?>" >
<img src="<?php echo $creator->getThumbAvatar(); ?>" alt="<?php echo CStringHelper::escape($table->name); ?>" />
</a>
</div>
<?php } ?>
<div class="joms-stream__meta">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewdiscussion&groupid=' . $table->id . '&topicid=' . $data[0]->id); ?>" class="joms-block"><?php echo $data[0]->title; ?></a>
<small>
<?php echo Text::_('COM_COMMUNITY_BY'); ?> <a href="<?php echo CRoute::_('index.php?option=com_community&view=profile&userid=' . $creator->id); ?>"><?php echo $creator->getDisplayName(); ?></a>
<span class="joms-block"><?php echo Text::sprintf((!CStringHelper::isSingular($data[0]->counter)) ? 'MOD_COMMUNITY_DISCUSSIONS_REPLY_MANY' : 'MOD_COMMUNITY_DISCUSSIONS_REPLY', $data[0]->counter); ?></span>
</small>
</div>
</div>
<?php } } ?>
<?php } else { ?>
<div class="joms-blankslate"><?php echo Text::_("MOD_COMMUNITY_DISCUSSIONS_NO_DISCUSSION"); ?></div>
<?php } ?>
</div>