| Current Path : /home/megadansyp/www/plugins/system/t3/base-bs3/html/com_contact/contact/ |
| Current File : /home/megadansyp/www/plugins/system/t3/base-bs3/html/com_contact/contact/default_articles.php |
<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright Copyright (C) 2005 - 2021 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\HTML\HTMLHelper;
use Joomla\CMS\Router\Route;
if(!class_exists('ContentHelperRoute')){
if(version_compare(JVERSION, '4', 'ge')){
abstract class ContentHelperRoute extends \Joomla\Component\content\Site\Helper\RouteHelper{};
}else{
JLoader::register('ContentHelperRoute', JPATH_ROOT . 'components/com_content/helpers/route.php');
}
}
?>
<?php if ($this->params->get('show_articles')) : ?>
<div class="contact-articles">
<ul class="nav nav-tabs nav-stacked">
<?php foreach ($this->item->articles as $article) : ?>
<li>
<?php echo HTMLHelper::_('link', Route::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language)), htmlspecialchars($article->title, ENT_COMPAT, 'UTF-8')); ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>