PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/content/code/trunk/modules/mod_artofcontent_add/tmpl/default.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 23 lines | 11 code | 2 blank | 10 comment | 0 complexity | a1249400c1297ad0f8dfb031f71cabc1 MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id:combolayout.php 2547 2007-11-10 04:37:15Z masterchief $
  4. * @package NewLifeInIT
  5. * @subpackage mod_artofcontent_add
  6. * @copyright Copyright 2005 - 2010 New Life in IT Pty Ltd. All rights reserved.
  7. * @license GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
  8. * @author Andrew Eddie <andrew.eddie@newlifeinit.com>
  9. * @link http://www.theartofjoomla.com/extensions/artof-content.html
  10. */
  11. // No direct access.
  12. defined('JPATH_BASE') or die();
  13. $uri = JFactory::getUri();
  14. $return = base64_encode(JRoute::_($uri->toString()));
  15. $itemId = $params->get('alt_itemid', 1175); //JRequest::getInt('Itemid');
  16. $link = JRoute::_(
  17. 'index.php?option=com_content&view=article&id=0&task=new&sectionid='.$sectionId.'&cat_id='.$categoryId.'&ret='.$return
  18. );
  19. ?>
  20. <a href="<?php echo $link; ?>">
  21. <?php echo JText::_('MOD_ARTOFCONTENT_ADD_LINKTEXT'); ?></a>