Featured in evidenza swiper slider
This commit is contained in:
25
templates/joomla-italia-theme/html/mod_highlights/blank.php
Normal file
25
templates/joomla-italia-theme/html/mod_highlights/blank.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?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 \Joomla\CMS\Filter\InputFilter;
|
||||
|
||||
$safe_htmltags = array(
|
||||
'a', 'address', 'em', 'strong', 'b', 'i',
|
||||
'big', 'small', 'sub', 'sup', 'cite', 'code',
|
||||
'img', 'ul', 'ol', 'li', 'dl', 'lh', 'dt', 'dd',
|
||||
'br', 'p', 'table', 'th', 'td', 'tr', 'pre',
|
||||
'blockquote', 'nowiki', 'h1', 'h2', 'h3',
|
||||
'h4', 'h5', 'h6', 'hr');
|
||||
|
||||
/* @var $params Joomla\Registry\Registry */
|
||||
$filter = InputFilter::getInstance($safe_htmltags);
|
||||
echo $filter->clean($params->get('html_content'));
|
||||
@ -0,0 +1,56 @@
|
||||
<?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] : '';
|
||||
|
||||
//Come accedere alle variabili generali:
|
||||
$opacita = $params->get('opacita', []);
|
||||
$sfondo = $params->get('sfondo', []);
|
||||
|
||||
?>
|
||||
|
||||
<?php if (!empty($elements)) : ?>
|
||||
<div class="bd-example w-100">
|
||||
<div class="bd-example-tabs">
|
||||
<div class="row">
|
||||
<!-- Macro a sinistra -->
|
||||
<div class="col-4 col-md-3">
|
||||
<div class="nav nav-tabs nav-tabs-vertical nav-tabs-vertical-background" id="nav-vertical-tab-bg" role="tablist" aria-orientation="vertical">
|
||||
<?php foreach ($elements as $index => $element) : ?>
|
||||
<a class="nav-link <?php echo $index === 0 ? 'active' : ''; ?>" id="nav-vertical-tab-<?php echo $index; ?>-tab" data-bs-toggle="tab" href="#nav-vertical-tab-<?php echo $index; ?>" role="tab" aria-controls="nav-vertical-tab-<?php echo $index; ?>" aria-selected="<?php echo $index === 0 ? 'true' : 'false'; ?>">
|
||||
<?php echo $element->sottotitolo; ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Contenuto a destra -->
|
||||
<div class="col-8 col-md-9">
|
||||
<div class="tab-content" id="nav-vertical-tab-bgContent">
|
||||
<?php foreach ($elements as $index => $element) : ?>
|
||||
<div class="tab-pane p-3 fade <?php echo $index === 0 ? 'active show' : ''; ?>" id="nav-vertical-tab-<?php echo $index; ?>" role="tabpanel" aria-labelledby="nav-vertical-tab-<?php echo $index; ?>-tab">
|
||||
<div><?php echo $element->titolo; ?></div>
|
||||
<div><?php echo $element->sottotitolo; ?></div>
|
||||
<div><?php echo $element->descrizione; ?></div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@ -0,0 +1,56 @@
|
||||
<?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] : '';
|
||||
|
||||
//Come accedere alle variabili generali:
|
||||
$opacita = $params->get('opacita', []);
|
||||
$sfondo = $params->get('sfondo', []);
|
||||
|
||||
?>
|
||||
|
||||
<?php if (!empty($elements)) : ?>
|
||||
<div class="bd-example w-100">
|
||||
<div class="bd-example-tabs">
|
||||
<div class="row">
|
||||
<!-- Macro a sinistra -->
|
||||
<div class="col-4 col-md-3">
|
||||
<div class="nav nav-tabs nav-tabs-vertical nav-tabs-vertical-background" id="nav-vertical-tab-bg" role="tablist" aria-orientation="vertical">
|
||||
<?php foreach ($elements as $index => $element) : ?>
|
||||
<a class="nav-link <?php echo $index === 0 ? 'active' : ''; ?>" id="nav-vertical-tab-<?php echo $index; ?>-tab" data-bs-toggle="tab" href="#nav-vertical-tab-<?php echo $index; ?>" role="tab" aria-controls="nav-vertical-tab-<?php echo $index; ?>" aria-selected="<?php echo $index === 0 ? 'true' : 'false'; ?>">
|
||||
<?php echo $element->titolo; ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Contenuto a destra -->
|
||||
<div class="col-8 col-md-9">
|
||||
<div class="tab-content" id="nav-vertical-tab-bgContent">
|
||||
<?php foreach ($elements as $index => $element) : ?>
|
||||
<div class="tab-pane p-3 fade <?php echo $index === 0 ? 'active show' : ''; ?>" id="nav-vertical-tab-<?php echo $index; ?>" role="tabpanel" aria-labelledby="nav-vertical-tab-<?php echo $index; ?>-tab">
|
||||
<div><?php echo $element->titolo; ?></div>
|
||||
<div><?php echo $element->sottotitolo; ?></div>
|
||||
<div><?php echo $element->descrizione; ?></div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
32
templates/joomla-italia-theme/html/mod_highlights/item.php
Normal file
32
templates/joomla-italia-theme/html/mod_highlights/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;
|
||||
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;
|
||||
56
templates/joomla-italia-theme/html/mod_highlights/slide.php
Normal file
56
templates/joomla-italia-theme/html/mod_highlights/slide.php
Normal file
@ -0,0 +1,56 @@
|
||||
<?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] : '';
|
||||
|
||||
//Come accedere alle variabili generali:
|
||||
$opacita = $params->get('opacita', []);
|
||||
$sfondo = $params->get('sfondo', []);
|
||||
|
||||
?>
|
||||
|
||||
<?php if (!empty($elements)) : ?>
|
||||
<div class="bd-example w-100">
|
||||
<div class="bd-example-tabs">
|
||||
<div class="row">
|
||||
<!-- Macro a sinistra -->
|
||||
<div class="col-4 col-md-3">
|
||||
<div class="nav nav-tabs nav-tabs-vertical nav-tabs-vertical-background" id="nav-vertical-tab-bg" role="tablist" aria-orientation="vertical">
|
||||
<?php foreach ($elements as $index => $element) : ?>
|
||||
<a class="nav-link <?php echo $index === 0 ? 'active' : ''; ?>" id="nav-vertical-tab-<?php echo $index; ?>-tab" data-bs-toggle="tab" href="#nav-vertical-tab-<?php echo $index; ?>" role="tab" aria-controls="nav-vertical-tab-<?php echo $index; ?>" aria-selected="<?php echo $index === 0 ? 'true' : 'false'; ?>">
|
||||
<?php echo $element->sottotitolo; ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Contenuto a destra -->
|
||||
<div class="col-8 col-md-9">
|
||||
<div class="tab-content" id="nav-vertical-tab-bgContent">
|
||||
<?php foreach ($elements as $index => $element) : ?>
|
||||
<div class="tab-pane p-3 fade <?php echo $index === 0 ? 'active show' : ''; ?>" id="nav-vertical-tab-<?php echo $index; ?>" role="tabpanel" aria-labelledby="nav-vertical-tab-<?php echo $index; ?>-tab">
|
||||
<div><?php echo $element->titolo; ?></div>
|
||||
<div><?php echo $element->sottotitolo; ?></div>
|
||||
<div><?php echo $element->descrizione; ?></div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
Reference in New Issue
Block a user