PageRenderTime 39ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/components/com_contact/views/contact/tmpl/default_articles.php

https://github.com/joebushi/joomla
PHP | 28 lines | 19 code | 2 blank | 7 comment | 1 complexity | 0385a9d134131a87718db2a05fe5870e MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. <?php
  2. /**
  3. * @version
  4. * @package Joomla.Site
  5. * @subpackage Contact
  6. * @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
  7. * @license GNU General Public License version 2 or later; see LICENSE.txt
  8. */
  9. defined('_JEXEC') or die;
  10. ?>
  11. <?php if ($this->contact->params->get('show_articles')) : ?>
  12. <div class="jcontact-articles">
  13. <h4>
  14. <?php echo JText::_('Com_Contact_Contact_Articles_Heading'); ?>
  15. </h4>
  16. <ol>
  17. <?php foreach ($this->contact->articles as $article) : ?>
  18. <li>
  19. <a href="<?php $article->link = JRoute::_('index.php?option=com_content&view=article&id='.$article->id)?>">
  20. <?php echo $article->text = htmlspecialchars($article->title); ?>
  21. </a>
  22. </li>
  23. <?php endforeach; ?>
  24. </ol>
  25. </div>
  26. <?php endif; ?>