Featured in evidenza swiper slider

This commit is contained in:
2024-12-31 17:49:50 +01:00
parent f344d0bddc
commit 4cce38fa8f
46 changed files with 1438 additions and 4 deletions

View 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;