acf
This commit is contained in:
32
modules/mod_highlights/tmpl/item.php
Normal file
32
modules/mod_highlights/tmpl/item.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;
|
||||
|
||||
$element = HighlightsHelper::getItem($params);
|
||||
?>
|
||||
|
||||
<?php if (!empty($element)) : ?>
|
||||
<div>
|
||||
<?php $fields = get_object_vars($element); ?>
|
||||
<?php foreach ($fields as $field_name => $field_value) : ?>
|
||||
<?php if (HighlightsHelper::shouldAppear($field_name)): ?>
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<strong><?php echo HighlightsHelper::renderTranslatableHeader($params->get('item_table'), $field_name); ?></strong>
|
||||
</div>
|
||||
<div
|
||||
class="span8"><?php echo HighlightsHelper::renderElement($params->get('item_table'), $field_name, $field_value); ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif;
|
||||
Reference in New Issue
Block a user