/joomla/www/templates/rt_quasar_j15/features/totop.php
PHP | 34 lines | 19 code | 5 blank | 10 comment | 1 complexity | d387d8d3d9817073d9a7169862b4c132 MD5 | raw file
✨ Summary
- <?php
- /**
- * @package Quasar Template - RocketTheme
- * @version @VERSION@ @BUILD_DATE@
- * @author RocketTheme http://www.rockettheme.com
- * @copyright Copyright (C) 2007 - @COPYRIGHT_YEAR@ RocketTheme, LLC
- * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
- *
- * Rockettheme Quasar Template uses the Joomla Framework (http://www.joomla.org), a GNU/GPLv2 content management system
- *
- */
- defined('JPATH_BASE') or die();
- gantry_import('core.gantryfeature');
- class GantryFeatureToTop extends GantryFeature {
- var $_feature_name = 'totop';
- function init() {
- global $gantry;
-
- if ($this->get('enabled')) {
- $gantry->addScript($gantry->gantryUrl.'/js/gantry-totop.js');
- }
- }
-
- function render($position="") {
- ob_start();
- ?>
- <a href="#" id="gantry-totop"><span><?php echo $this->get('text'); ?></span></a>
- <?php
- return ob_get_clean();
- }
- }