/components/com_contact/views/contact/tmpl/default_articles.php
https://bitbucket.org/eternaware/joomus · PHP · 25 lines · 15 code · 3 blank · 7 comment · 1 complexity · 248d1ea6763bb0a6a122c45d07bdb554 MD5 · raw file
- <?php
- /**
- * @package Joomla.Site
- * @subpackage com_contact
- *
- * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
- * @license GNU General Public License version 2 or later; see LICENSE.txt
- */
- defined('_JEXEC') or die;
- require_once JPATH_SITE . '/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 JHtml::_('link', JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catslug)), htmlspecialchars($article->title, ENT_COMPAT, 'UTF-8')); ?>
- </li>
- <?php endforeach; ?>
- </ul>
- </div>
- <?php endif; ?>