Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Knock-Out authored Nov 23, 2023
1 parent 3a42e0d commit ebb1309
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions html/mod_articles_category/newsnoveditutti.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php

/**
* @package Joomla.Site
* @subpackage mod_articles_category
*
* @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die;

use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Router\Route;
use Joomla\Component\Content\Site\Helper\RouteHelper;

if (!$list) {
return;
}
$countcat =0;

?>

<div class="container mod-news pt-4 pb-5">
<?php if ((bool) $module->showtitle) : ?>
<div class="title-section pb-4">
<h2><?php echo $module->title; ?></h2>
</div>
<?php endif; ?>
<div class="row">
<?php if ($grouped) : ?>
<?php foreach ($list as $groupName => $items) : ?>
<div class="col-12 col-lg-4">
<div class="title-section">
<h2><?php echo Text::_($groupName); ?></h2>
</div>
<?php require ModuleHelper::getLayoutPath('mod_articles_category', $params->get('layout', 'default') . '_gruppi');
//print_r($list[$groupName][2]->category_route);
//print_r($list);
$m=0;
foreach ($list[$groupName] as $link_group):
if($m == 0): ?>
<a href="<?php echo $link_group->category_route; ?>" title="Vai alla pagina <?php echo Text::_($groupName); ?>" class="view-all d-block py-3"><strong>Vedi tutti</strong></a>
<?php
endif;
$m++;
endforeach;?>
</div>
<?php endforeach; ?>
<?php else : ?>
<?php $items = $list; ?>
<?php require ModuleHelper::getLayoutPath('mod_articles_category', $params->get('layout', 'default') . '_items'); ?>
<?php endif; ?>


</div>
</div>

0 comments on commit ebb1309

Please sign in to comment.