first commit
This commit is contained in:
93
modules/mod_random_image_extended/tmpl/default.php
Normal file
93
modules/mod_random_image_extended/tmpl/default.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @copyright
|
||||
* @package RIE - Random Image Extended for Joomla! 3.x
|
||||
* @author Viktor Vogel <admin@kubik-rubik.de>
|
||||
* @version 3.4.0-FREE - 2020-09-01
|
||||
* @link https://kubik-rubik.de/rie-random-image-extended
|
||||
*
|
||||
* @license GNU/GPL
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
defined('_JEXEC') || die('Restricted access');
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
|
||||
echo '<!-- RIE - Random Image Extended - Kubik-Rubik Joomla! Extensions - Viktor Vogel -->';
|
||||
?>
|
||||
<div class="random_image_extended <?php echo $moduleclassSfx ?>">
|
||||
<?php if ($imageRotator) : ?>
|
||||
<?php $image = $imagesDisplay[0]; ?>
|
||||
<div id="slideshow-container">
|
||||
<?php if (empty($linkFolder)) : ?>
|
||||
<?php echo HTMLHelper::_('image', $image->folder . '/' . $image->link, $image->name, ['width' => $image->width, 'height' => $image->height, 'class' => 'active']); ?>
|
||||
<?php else : ?>
|
||||
<?php echo HTMLHelper::_('image', $image->folder . '/thumbs/' . $image->link, $image->name, ['width' => $image->width, 'height' => $image->height, 'class' => 'active']); ?>
|
||||
<?php endif; ?>
|
||||
<?php foreach ($images as $image) : ?>
|
||||
<?php if (empty($linkFolder)) : ?>
|
||||
<?php echo HTMLHelper::_('image', $image->folder . '/' . $image->link, $image->name, ['width' => $image->width, 'height' => $image->height]); ?>
|
||||
<?php else : ?>
|
||||
<?php echo HTMLHelper::_('image', $image->folder . '/thumbs/' . $image->link, $image->name, ['width' => $image->width, 'height' => $image->height]); ?>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?php foreach ($imagesDisplay as $image) : ?>
|
||||
<?php if (empty($linkFolder)) : ?>
|
||||
<?php $imagePath = HTMLHelper::_('image', $image->folder . '/' . $image->link, $image->name, ['width' => $image->width]); ?>
|
||||
<?php else : ?>
|
||||
<?php $imagePath = HTMLHelper::_('image', $image->folder . '/thumbs/' . $image->link, $image->name, ['width' => $image->width]); ?>
|
||||
<?php endif; ?>
|
||||
<div class="random_image_extended_single">
|
||||
<?php if ($lightbox && (empty($link) && empty($image->linkto))) : ?>
|
||||
<a href="<?php echo $image->folder . '/' . $image->link ?>" title="<?php echo $image->name; ?>" <?php echo $lightboxAttribute; ?>>
|
||||
<?php echo $imagePath; ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($link) || !empty($image->linkto)) : ?>
|
||||
<?php if (!empty($image->linkto)) : ?>
|
||||
<a href="<?php echo $image->linkto; ?>" title="<?php echo $image->name; ?>" <?php echo ($newWindow) ? 'target="_blank"' : ''; ?>>
|
||||
<?php echo $imagePath; ?>
|
||||
</a>
|
||||
<?php elseif (!empty($link)) : ?>
|
||||
<a href="<?php echo $link; ?>" title="<?php echo $link; ?>" <?php echo ($newWindow) ? 'target="_blank"' : ''; ?>>
|
||||
<?php echo $imagePath; ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($caption)) : ?>
|
||||
<div class="random_image_extended <?php echo $moduleclassSfx ?>">
|
||||
<em>
|
||||
<?php echo $caption; ?>
|
||||
</em>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($imageName) : ?>
|
||||
<div class="random_image_extended <?php echo $moduleclassSfx ?>">
|
||||
<strong>
|
||||
<?php echo $image->name; ?>
|
||||
</strong>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($allPics && $lightbox && empty($link)) : ?>
|
||||
<?php foreach ($images as $image) : ?>
|
||||
<a <?php echo $lightboxAttribute; ?> href="<?php echo $image->folder . '/' . $image->link; ?>" title="<?php echo $image->name; ?>"></a>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user