Your IP : 216.73.216.84


Current Path : /home/helpink/www/modules/mod_article_grid/tmpl/
Upload File :
Current File : /home/helpink/www/modules/mod_article_grid/tmpl/default.php

<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_article_grid
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Helper\TagsHelper;
use Joomla\CMS\Layout\FileLayout;
use Joomla\Component\Tags\Site\Helpers\TagsHelperRoute;

$tags = new TagsHelper;
$taglayout = new FileLayout('joomla.content.tags');
$introtext_limit   = $params->get('introtext_limit');
$item_style   = $params->get('item_style');
$img_popup   = $params->get('img_popup');
$readmoretext   = $params->get('readmoretext');
$readmore_class   = $params->get('readmore_class');
$strip_tags   = $params->get('strip_tags');

?>

<div uk-filter="target: .js-filter; duration: 1000" animation="delayed-fade">

	<?php if ($params->get('show_tag_filter')) : ?>
    <ul class="uk-subnav">
		<li class="uk-active" uk-filter-control><a href="#"><?php echo Text::_('MOD_UK_GRID_ALL'); ?></a></li>
		<!-- <li uk-filter-control="filter: .politik"><a href="#">Politik</a></li>	
		<li uk-filter-control="filter: .technik"><a href="#">Technik</a></li>	 -->
		<?php foreach($tagsList['index'] as $tag => $tagClass):?>
			<li uk-filter-control="filter: .<?php echo $tagClass; ?>"><a href="#"><?php echo $tag; ?></a></li>
		<?php endforeach; ?>

    </ul>
	<?php endif; ?>
	
	<div class="js-filter <?php echo $grid_class, $classes; ?> <?php echo $moduleclass_sfx; ?>" uk-grid<?php echo $grid_params, $hm_param; ?> >
	
	<?php foreach ($list as $item) : ?>
		<?php 
			$itemTags = $tagsList['items'][$item->id];
			$itemClass = ' ';
			foreach ($itemTags as $tag) {
				$itemClass .= $tagsList['index'][$tag] .' ';
			}					
		?>
		<div class="<?php echo $itemClass; ?> <?php echo $grid_center; ?>">
			<div class="<?php if ($params->get('animation')) : ?>grid-hover<?php endif; ?> <?php echo $item_style; ?>">	
				<?php if ($params->get('img_intro_full') !== 'none' && !empty($item->imageSrc)) : ?>	
					<figure>
					<img src="<?php echo $item->imageSrc; ?>" alt="<?php echo $item->imageAlt; ?>" >
				</figure>
				<?php endif; ?>
			
				<div class="p-3" >
				<?php if ($params->get('item_title')) : ?>
					<?php $item_heading = $params->get('item_heading', 'h4'); ?>
					<<?php echo $item_heading; ?> class="newsflash-title<?php echo $params->get('moduleclass_sfx'); ?>">
					<?php if ($item->link !== '' && $params->get('link_titles')) : ?>
						<a href="<?php echo $item->link; ?>">
							<?php echo $item->title; ?>
						</a>
					<?php else : ?>
						<?php echo $item->title; ?>
					<?php endif; ?>
					</<?php echo $item_heading; ?>>
				<?php endif; ?>
				
				<?php if ($params->get('displayDate')) : ?>
					<p class="uk-text-small uk-margin-remove"><?php echo HTMLHelper::_('date',$item->created, Text::_('DATE_FORMAT_LC1')); ?></p>
				<?php endif; ?>

				<?php if ($params->get('show_tags')) : ?>
					<?php $tags->getItemTags('com_content.article', $item->id)?>
					
					<p>Tags:
					<?php foreach ($tags->itemTags as $tag) : ?>
					<span class="badge badge-primary d-inline"><?php echo $tag->title;?></span>
					<?php endforeach; ?>
					</p>
	
				<?php endif; ?>

				<?php if ($params->get('show_introtext', 1)) : ?>
					<?php if ($params->get('strip_tags') == '1' ) : ?>
					
						<?php echo HTMLHelper::_('string.truncate', strip_tags($item->introtext), $introtext_limit); ?>
					<br/>
					<?php endif; ?>

					<?php if ($params->get('strip_tags') == '2' ) : ?>
						
						<?php echo HTMLHelper::_('string.truncate', $item->introtext, $introtext_limit); ?>
					<br/>
					<?php endif; ?>
					
				<?php endif; ?>

				<?php echo $item->afterDisplayContent; ?>

						<?php if ($params->get('readmore') == '1' ) : ?>
							
							<?php if ($params->get('readmore_popup') == '1' ) : ?>
								<p class="<?php echo $readmore_class; ?>" ><?php echo '<a class="readmore" href="' . $item->link . '">' . $readmoretext . '</a>'; ?></p>
							<?php endif; ?>
							
							<?php if ($params->get('readmore_popup') == '2' ) : ?>
							<p uk-lightbox class="<?php echo $readmore_class; ?>" ><?php echo '<a data-type="iframe" class="readmore" href="' . $item->link . '?tmpl=component">' . $readmoretext . '</a>'; ?></p>
							<?php endif; ?>
							
						<?php endif; ?>
				</div>
				
			</div>
		</div>
	<?php endforeach; ?>
   
	</div>
</div>

<style type="text/css">
.uk-lightbox-iframe {
    width: 800px;
    height: 60%;
}
.none .p-3 {padding:0!important;padding-top:1rem!important}
.none .p-3 {padding:0!important;padding-top:1rem!important}
figure {
	overflow: hidden;
}
.grid-hover figure img {
	-webkit-transform: scale(1);
	transform: scale(1);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.grid-hover figure:hover img {
	-webkit-transform: scale(1.3);
	transform: scale(1.3);
}
</style>