fix stili home page
This commit is contained in:
@ -71,12 +71,14 @@ var swiper = new Swiper(".carosellofeatured", {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="featured mt-5">
|
||||
<div class="featured my-5">
|
||||
<?php if ($this->params->get('show_page_heading') != 0) : ?>
|
||||
<div class="titolo-featured">
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
<div class="titolo-featured mb-4">
|
||||
<div class="ps-5 ps-lg-3 container bg-white position-relative"><span class="h2"><?php echo $this->escape($this->params->get('page_heading')); ?></span></div>
|
||||
<div class="swiper-controls">
|
||||
<div class="swiper-button-next swiper-button-next"></div>
|
||||
<div class="swiper-button-prev swiper-button-prev"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="container-jit">
|
||||
@ -112,11 +114,7 @@ var swiper = new Swiper(".carosellofeatured", {
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<div class="swiper-controls container">
|
||||
<div class="swiper-button-next swiper-button-next"></div>
|
||||
<div class="swiper-button-prev swiper-button-prev"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
@ -41,17 +41,7 @@ $isUnpublished = $this->item->state == ContentComponent::CONDITION_UNPUBLISH
|
||||
<div class="system-unpublished">
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<span class="item-title">
|
||||
<?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
|
||||
<a href="<?php echo Route::_(RouteHelper::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)); ?>">
|
||||
<?php echo $this->escape($this->item->title); ?>
|
||||
</a>
|
||||
<?php else : ?>
|
||||
<?php echo $this->escape($this->item->title); ?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if ($this->item->state == ContentComponent::CONDITION_UNPUBLISHED) : ?>
|
||||
<span class="badge bg-warning text-light"><?php echo Text::_('JUNPUBLISHED'); ?></span>
|
||||
@ -83,8 +73,27 @@ $isUnpublished = $this->item->state == ContentComponent::CONDITION_UNPUBLISH
|
||||
|
||||
<?php // Content is generated by content plugin event "onContentBeforeDisplay" ?>
|
||||
<?php //echo $this->item->event->beforeDisplayContent; ?>
|
||||
|
||||
<?php if ($info == 1 || $info == 2) : ?>
|
||||
<?php if ($useDefList) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.info_block', ['item' => $this->item, 'params' => $params, 'position' => 'below']); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.tags', $this->item->tags->itemTags); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<span class="item-title">
|
||||
<?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
|
||||
<a href="<?php echo Route::_(RouteHelper::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)); ?>">
|
||||
<?php echo $this->escape($this->item->title); ?>
|
||||
</a>
|
||||
<?php else : ?>
|
||||
<?php echo $this->escape($this->item->title); ?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->item->introtext; ?>
|
||||
|
||||
<?php
|
||||
/*$introtext = $this->item->introtext;
|
||||
|
||||
@ -102,14 +111,7 @@ $isUnpublished = $this->item->state == ContentComponent::CONDITION_UNPUBLISH
|
||||
|
||||
<?php //echo htmlspecialchars($limited_introtext); ?>
|
||||
|
||||
<?php if ($info == 1 || $info == 2) : ?>
|
||||
<?php if ($useDefList) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.info_block', ['item' => $this->item, 'params' => $params, 'position' => 'below']); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.tags', $this->item->tags->itemTags); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if ($params->get('show_readmore') && $this->item->readmore) :
|
||||
if ($params->get('access-view')) :
|
||||
|
||||
@ -30,7 +30,13 @@ $countcat =0;
|
||||
<div class="container-jit py-5 <?= isset($params['moduleclass_sfx']) ? $params['moduleclass_sfx'] : ''; ?>">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-4"><?php if ((bool) $module->showtitle) : ?><?php echo $module->title; ?> <?php endif; ?></div>
|
||||
<div class="col-4">
|
||||
<?php if ((bool) $module->showtitle) : ?>
|
||||
<div class="titolo-linea mb-4">
|
||||
<div class="ps-5 ps-lg-3 container position-relative"><span class="h2"><?= $module->title; ?></span></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<?php $items = $list; ?>
|
||||
<?php require ModuleHelper::getLayoutPath('mod_articles_category', $params->get('layout', 'default') . '_items'); ?>
|
||||
|
||||
@ -73,11 +73,12 @@ var swiper = new Swiper(".carosello'. $module->id . '", {
|
||||
|
||||
|
||||
?>
|
||||
<div class="container-jit <?= !empty($classemodulo) ? $classemodulo : 'bg-rosso'; ?>">
|
||||
<?php if ((bool) $module->showtitle) : ?>
|
||||
|
||||
<?= $module->title; ?>
|
||||
<?php endif; ?>
|
||||
<div class="titolo-linea mb-4">
|
||||
<div class="ps-5 ps-lg-3 container position-relative"><span class="h2"><?= $module->title; ?></span></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="container-jit <?= !empty($classemodulo) ? $classemodulo : 'bg-rosso'; ?>">
|
||||
<div class="swiper carosello<?= $module->id; ?>">
|
||||
<div class="swiper-wrapper">
|
||||
<?php foreach ($items as $item) : ?>
|
||||
|
||||
@ -72,9 +72,13 @@ var swiper = new Swiper(".carosello'. $module->id . '", {
|
||||
|
||||
<?php //var_dump($module); ?>
|
||||
|
||||
<?php if (!empty($elements)) : ?>
|
||||
<div class="container-jit <?= !empty($classemodulo) ? $classemodulo : 'bg-grigio'; ?>">
|
||||
<?= $module->title; ?>
|
||||
<?php if (!empty($elements)) : ?>
|
||||
<div class="py-5 <?= !empty($classemodulo) ? $classemodulo : 'bg-grigio'; ?>">
|
||||
<div class="titolo-linea mb-4">
|
||||
<div class="ps-5 ps-lg-3 container bg-grigio position-relative"><span class="h2 rosso"><?= $module->title; ?></span></div>
|
||||
</div>
|
||||
<div class="container-jit">
|
||||
|
||||
<div class="swiper carosello<?= $module->id; ?>">
|
||||
<div class="swiper-wrapper">
|
||||
<?php foreach ($elements as $index => $element) : ?>
|
||||
@ -98,4 +102,5 @@ var swiper = new Swiper(".carosello'. $module->id . '", {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@ -24,36 +24,40 @@ $opacita = $params->get('opacita', []);
|
||||
$sfondo = $params->get('sfondo', []);
|
||||
$baseImagePath = Uri::root(false) . "media/templates/site/joomla-italia-theme/images/";
|
||||
|
||||
$nelementi = 1;
|
||||
|
||||
?>
|
||||
|
||||
<?php if (!empty($elements)) : ?>
|
||||
|
||||
<div class="container-xl">
|
||||
<div class="container-lg my-0 my-lg-5">
|
||||
<?php foreach ($elements as $index => $element) : ?>
|
||||
<div class="contatore">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 col-lg-5 order-2 order-lg-1">
|
||||
<?php if (!empty($element->titolo)) : ?>
|
||||
<div class="h2"><?= $element->titolo; ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($element->sottotitolo)) : ?>
|
||||
<p class="sottotitolo"><?= $element->sottotitolo; ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($element->descrizione)) : ?>
|
||||
<p><?= $element->descrizione; ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($element->link_pulsante)) : ?>
|
||||
<a href="<?= $element->link_pulsante; ?>" class="text-uppercase btn btn-primary" title="<?= $element->testo_pulsante; ?>">
|
||||
<?= $element->testo_pulsante; ?>
|
||||
<svg class="icon icon-sm d-inline-block">
|
||||
<use xlink:href="<?= $baseImagePath ?>sprites.svg#it-arrow-right"></use>
|
||||
</svg>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<div class="wrap-contatore row justify-content-center py-3 py-lg-5">
|
||||
<div class="col-12 col-lg-6 order-2 order-lg-1">
|
||||
<div class="wrap-contatore">
|
||||
<?php if (!empty($element->titolo)) : ?>
|
||||
<div class="h2"><?= $element->titolo; ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($element->sottotitolo)) : ?>
|
||||
<p class="sottotitolo"><?= $element->sottotitolo; ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($element->descrizione)) : ?>
|
||||
<p><?= $element->descrizione; ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($element->link_pulsante)) : ?>
|
||||
<a href="<?= $element->link_pulsante; ?>" class="mb-3 text-uppercase btn btn-primary" title="<?= $element->testo_pulsante; ?>">
|
||||
<?= $element->testo_pulsante; ?>
|
||||
<svg class="icon icon-sm d-inline-block">
|
||||
<use xlink:href="<?= $baseImagePath ?>sprites.svg#it-arrow-right"></use>
|
||||
</svg>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-lg-5 order-1 order-lg-2">
|
||||
<div class="countdown"></div>
|
||||
<div class="col-12 col-lg-6 order-1 order-lg-2">
|
||||
<div class="countdown<?= $nelementi; ?>"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -153,12 +157,12 @@ $baseImagePath = Uri::root(false) . "media/templates/site/joomla-italia-theme/im
|
||||
var c = new Clock(deadline, function() { alert('countdown complete'); });
|
||||
|
||||
// Aggiungi il contatore al div con classe countdown
|
||||
var countdownDiv = document.querySelector('.countdown');
|
||||
var countdownDiv = document.querySelector('.countdown<?= $nelementi; ?>');
|
||||
if (countdownDiv) {
|
||||
countdownDiv.appendChild(c.el);
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php $nelementi++;?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
Reference in New Issue
Block a user