/joomla/www/templates/rt_quasar_j15/features/totop.php

http://sewebar-cms.googlecode.com/
PHP | 34 lines | 19 code | 5 blank | 10 comment | 1 complexity | d387d8d3d9817073d9a7169862b4c132 MD5 | raw file

✨ Summary
  1. <?php
  2. /**
  3. * @package Quasar Template - RocketTheme
  4. * @version @VERSION@ @BUILD_DATE@
  5. * @author RocketTheme http://www.rockettheme.com
  6. * @copyright Copyright (C) 2007 - @COPYRIGHT_YEAR@ RocketTheme, LLC
  7. * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
  8. *
  9. * Rockettheme Quasar Template uses the Joomla Framework (http://www.joomla.org), a GNU/GPLv2 content management system
  10. *
  11. */
  12. defined('JPATH_BASE') or die();
  13. gantry_import('core.gantryfeature');
  14. class GantryFeatureToTop extends GantryFeature {
  15. var $_feature_name = 'totop';
  16. function init() {
  17. global $gantry;
  18. if ($this->get('enabled')) {
  19. $gantry->addScript($gantry->gantryUrl.'/js/gantry-totop.js');
  20. }
  21. }
  22. function render($position="") {
  23. ob_start();
  24. ?>
  25. <a href="#" id="gantry-totop"><span><?php echo $this->get('text'); ?></span></a>
  26. <?php
  27. return ob_get_clean();
  28. }
  29. }