2
0
mirror of https://github.com/agenceagerix/mod_agx_slideshow.git synced 2024-12-22 16:38:56 +00:00

Small cosmetics

This commit is contained in:
vistamedia 2019-04-06 23:49:35 +02:00
parent 338cff68ec
commit a688a67469

View File

@ -22,35 +22,35 @@ $slideshow_params[] = 'kenburns:' . ($params->get('agx_kenburns', '1') ? 'true'
<div class="uk-slidenav-position uk-overlay-active" data-uk-slideshow="{<?php echo implode(', ', $slideshow_params); ?>}"> <div class="uk-slidenav-position uk-overlay-active" data-uk-slideshow="{<?php echo implode(', ', $slideshow_params); ?>}">
<ul class="uk-slideshow"> <ul class="uk-slideshow">
<?php foreach ($list as $item) : ?> <?php foreach ($list as $item) : ?>
<li> <li>
<img src="<?php echo $item->fields['agx-image']->rawvalue; ?>" width="<?php echo $params->get('agx_largeur', '800'); ?>" height="<?php echo $params->get('agx_hauteur', '600'); ?>" alt=""> <img src="<?php echo $item->fields['agx-image']->rawvalue; ?>" width="<?php echo $params->get('agx_largeur', '800'); ?>" height="<?php echo $params->get('agx_hauteur', '600'); ?>" alt="">
<div class="uk-overlay-panel uk-flex uk-flex-center uk-flex-middle uk-text-center"> <div class="uk-overlay-panel uk-flex uk-flex-center uk-flex-middle uk-text-center">
<div class="uk-width-medium-1-2 uk-width-small-2-3 uk-container-center"> <div class="uk-width-medium-1-2 uk-width-small-2-3 uk-container-center">
<div class="agx-overlay-black"> <div class="agx-overlay-black">
<?php if ($item->fields['agx-title']->rawvalue) : ?> <?php if ($item->fields['agx-title']->rawvalue) : ?>
<h2><?php echo $item->fields['agx-title']->rawvalue; ?></h2> <h2><?php echo $item->fields['agx-title']->rawvalue; ?></h2>
<?php endif; ?> <?php endif; ?>
<?php if ($item->fields['agx-description']->rawvalue) : ?> <?php if ($item->fields['agx-description']->rawvalue) : ?>
<?php echo $item->fields['agx-description']->rawvalue; ?> <?php echo $item->fields['agx-description']->rawvalue; ?>
<?php endif; ?> <?php endif; ?>
<?php if ($item->fields['agx-btntext']->rawvalue) : ?> <?php if ($item->fields['agx-btntext']->rawvalue) : ?>
<a href="<?php echo JRoute::_('index.php?Itemid=' . $item->fields['agx-btnlink']->rawvalue); ?>" class="uk-button uk-button-<?php echo $item->fields['agx-btnsize']->rawvalue[0]; ?> uk-button-<?php echo $item->fields['agx-btnstyle']->rawvalue[0]; ?>"><?php echo $item->fields['agx-btntext']->rawvalue; ?></a> <a href="<?php echo JRoute::_('index.php?Itemid=' . $item->fields['agx-btnlink']->rawvalue); ?>" class="uk-button uk-button-<?php echo $item->fields['agx-btnsize']->rawvalue[0]; ?> uk-button-<?php echo $item->fields['agx-btnstyle']->rawvalue[0]; ?>"><?php echo $item->fields['agx-btntext']->rawvalue; ?></a>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>
</div> </div>
</li> </li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
<?php if ($params->get('agx_nav_arrows', '1')) : ?> <?php if ($params->get('agx_nav_arrows', '1')) : ?>
<a href="#" class="uk-slidenav uk-slidenav-contrast uk-slidenav-previous" data-uk-slideshow-item="previous" style="color: <?php echo $params->get('agx_nav_color', 'rgba(255,255,255,0.7)'); ?>"></a> <a href="#" class="uk-slidenav uk-slidenav-contrast uk-slidenav-previous" data-uk-slideshow-item="previous" style="color: <?php echo $params->get('agx_nav_color', 'rgba(255,255,255,0.7)'); ?>"></a>
<a href="#" class="uk-slidenav uk-slidenav-contrast uk-slidenav-next" data-uk-slideshow-item="next" style="color: <?php echo $params->get('agx_nav_color', 'rgba(255,255,255,0.7)'); ?>"></a> <a href="#" class="uk-slidenav uk-slidenav-contrast uk-slidenav-next" data-uk-slideshow-item="next" style="color: <?php echo $params->get('agx_nav_color', 'rgba(255,255,255,0.7)'); ?>"></a>
<?php endif; ?> <?php endif; ?>
<?php if ($params->get('agx_nav_bubbles', '1')) : ?> <?php if ($params->get('agx_nav_bubbles', '1')) : ?>
<ul class="uk-dotnav uk-dotnav-contrast uk-position-bottom uk-flex-center"> <ul class="uk-dotnav uk-dotnav-contrast uk-position-bottom uk-flex-center">
<?php foreach ($list as $i => $item) : ?> <?php foreach ($list as $i => $item) : ?>
<li data-uk-slideshow-item="<?php echo $i; ?>"><a href="#"><?php echo $item->title; ?></a></li> <li data-uk-slideshow-item="<?php echo $i; ?>"><a href="#"><?php echo $item->title; ?></a></li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
<?php endif; ?> <?php endif; ?>
</div> </div>