PageRenderTime 50ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/pdf/code/trunk/administrator/components/com_artofpdf/views/com_menus/tmpl/menu.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 29 lines | 12 code | 5 blank | 12 comment | 0 complexity | c6ac0294c84a635fc9183c110fd063a9 MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: menu.php 278 2010-09-14 11:11:09Z eddieajau $
  4. * @package NewLifeInIT
  5. * @subpackage com_artofpdf
  6. * @copyright Copyright 2010 New Life in IT Pty Ltd. All rights reserved.
  7. * @license GNU General Public License version 2 or later.
  8. * @link http://www.theartofjoomla.com
  9. */
  10. // No direct access
  11. defined('_JEXEC') or die;
  12. JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
  13. //JHtml::stylesheet('default.css', 'administrator/components/com_artofpdf/media/css/');
  14. // This view is rather complicated so we need to work directly with the model.
  15. $model = $this->getModel();
  16. $items = &$model->getItems();
  17. ?>
  18. <?php foreach ($items as $item) : ?>
  19. <?php
  20. // Resolve the item.
  21. $this->resolved = $model->resolve($item);
  22. echo $this->loadTemplate($this->resolved->layout);
  23. ?>
  24. <?php endforeach; ?>