PageRenderTime 146ms CodeModel.GetById 14ms RepoModel.GetById 2ms app.codeStats 0ms

/modules/mod_menu/tmpl/default_url.php

https://github.com/joebushi/joomla
PHP | 29 lines | 15 code | 3 blank | 11 comment | 1 complexity | 15a04c9ac1b90f890c49556e468c748c MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. <?php
  2. /**
  3. * @version $Id$
  4. * @package Joomla.Site
  5. * @subpackage mod_menu
  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. // No direct access.
  10. defined('_JEXEC') or die;
  11. // Note. It is important to remove spaces between elements.
  12. switch ($item->browserNav) :
  13. default:
  14. case 0:
  15. ?><a href="<?php echo $item->link; ?>" class=""><?php echo $item->title; ?></a><?php
  16. break;
  17. case 1:
  18. // _blank
  19. ?><a href="<?php echo $item->link; ?>" class="" target="_blank"><?php echo $item->title; ?></a><?php
  20. break;
  21. case 2:
  22. // window.open
  23. $attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,'.$this->_params->get('window_open');
  24. ?><a href="<?php echo $item->link.'&tmpl=component'; ?>" class="" onclick="window.open(this.href,'targetWindow','<?php echo $attribs;?>');return false;"><?php echo $item->title; ?></a><?php
  25. break;
  26. endswitch;