Featured in evidenza swiper slider
This commit is contained in:
32
templates/joomla-italia-theme/html/mod_highlights/list.php
Normal file
32
templates/joomla-italia-theme/html/mod_highlights/list.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* @version CVS: 1.0.0
|
||||
* @package com_highlights
|
||||
* @subpackage mod_highlights
|
||||
* @author Eddy Prosperi <eddy.prosperi@protocollicreativi.it>
|
||||
* @copyright 2024 Eddy Prosperi
|
||||
* @license GNU General Public License versione 2 o successiva; vedi LICENSE.txt
|
||||
*/
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Pcrt\Module\Highlights\Site\Helper\HighlightsHelper;
|
||||
|
||||
$elements = HighlightsHelper::getList($params);
|
||||
|
||||
$tableField = explode(':', $params->get('field'));
|
||||
$table_name = !empty($tableField[0]) ? $tableField[0] : '';
|
||||
$field_name = !empty($tableField[1]) ? $tableField[1] : '';
|
||||
?>
|
||||
|
||||
<?php if (!empty($elements)) : ?>
|
||||
<table class="jcc-table">
|
||||
<?php foreach ($elements as $element) : ?>
|
||||
<tr>
|
||||
<th><?php echo HighlightsHelper::renderTranslatableHeader($table_name, $field_name); ?></th>
|
||||
<td><?php echo HighlightsHelper::renderElement(
|
||||
$table_name, $params->get('field'), $element->{$field_name}
|
||||
); ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endif;
|
||||
Reference in New Issue
Block a user