PageRenderTime 27ms CodeModel.GetById 11ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/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
Possible License(s): LGPL-2.1
 1<?php
 2/**
 3 * @package     Joomla.Site
 4 * @subpackage  com_contact
 5 *
 6 * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 7 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 8 */
 9
10defined('_JEXEC') or die;
11
12require_once JPATH_SITE . '/components/com_content/helpers/route.php';
13
14?>
15<?php if ($this->params->get('show_articles')) : ?>
16<div class="contact-articles">
17	<ul class="nav nav-tabs nav-stacked">
18		<?php foreach ($this->item->articles as $article) :	?>
19			<li>
20				<?php echo JHtml::_('link', JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catslug)), htmlspecialchars($article->title, ENT_COMPAT, 'UTF-8')); ?>
21			</li>
22		<?php endforeach; ?>
23	</ul>
24</div>
25<?php endif; ?>