| Current Path : /home/p/o/n/poneycluc/www/templates/ja_stark/html/mod_articles_category/ |
| Current File : /home/p/o/n/poneycluc/www/templates/ja_stark/html/mod_articles_category/projects.php |
<?php
/**
* ------------------------------------------------------------------------
* JA Stark Template
* ------------------------------------------------------------------------
* Copyright (C) 2004-2018 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
* @license - Copyrighted Commercial Software
* Author: J.O.O.M Solutions Co., Ltd
* Websites: http://www.joomlart.com - http://www.joomlancers.com
* This file may not be redistributed in whole or significant part.
* ------------------------------------------------------------------------
*/
defined('_JEXEC') or die;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Categories\Categories;
$moduleclass_sfx = $params->get('moduleclass_sfx','');
if ($grouped) {
// flat the group list
foreach ($list as $group_name => $group) {
foreach ($group as $item) {
$_list[] = $item;
}
}
} else {
$_list = $list;
}
$catids = $params->get('catid');
if(isset($catids) && $catids['0'] != ''){
$catid = $catids[0];
$jacategoriesModel = Categories::getInstance('content');
$jacategory = $jacategoriesModel->get($catid);
}
?>
<div class="category-module<?php echo $moduleclass_sfx; ?> mod-projects mod-grid">
<div class="row">
<?php foreach ($list as $item) : ?>
<div class="col-sm-6 col-md-3">
<div class="mod-project-item">
<?php echo LayoutHelper::render('joomla.content.intro_image', $item); ?>
<div class="item-info"><div class="inner">
<?php if ($params->get('link_titles') == 1) : ?>
<a class="mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a>
<?php else : ?>
<?php echo $item->title; ?>
<?php endif; ?>
</div></div>
</div>
</div>
<?php endforeach; ?>
</div>
<?php
//Get category info
if(isset($jacategory)) : ?>
<div class="text-center">
<a class="category-link" href="<?php echo Route::_(ContentHelperRoute::getCategoryRoute($jacategory->id));?>">
<?php echo Text::_('TPL_VIEW_ALL_PROJECTS'); ?> <i class="fas fa-long-arrow-alt-right"></i>
</a>
</div>
<?php endif;
//End add
?>
</div>