File manager - Edit - /home/jardides/www/Jardi-design/administrator/components/com_templateck/widgets/scrollto/scrollto.php
Back
<?php /** * @name Template Creator CK 3 * @package com_templateck * @copyright Copyright (C) 2013. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @author Cedric Keiflin - http://www.template-creator.com - http://www.joomlack.fr */ defined('_JEXEC') or die; class TCK_WidgetScrollto { private $name = 'scrollto'; private $pluginUrl = 'http://www.joomlack.fr/index.php?option=com_dms&task=doc_download&id=138&updater=true'; private $pluginName = 'scrolltock'; public function loadWidget() { ?> <script src="<?php echo JUri::root(true) ?>/administrator/components/com_templateck/widgets/<?php echo $this->name ?>/interface.js" type="text/javascript"></script> <?php } public function renderFrontendWidget($templatepath, $templatename) { return; } public function onAfterInstall() { require_once(JPATH_ROOT . '/administrator/components/com_templateck/helpers/ckinstaller.php'); $installer = new CKInstaller(); $result = $installer->install($this->pluginUrl, $this->pluginName, 'plugin'); return $result; } public function enablePlugin() { return $this->updatePluginState('1'); } public function disablePlugin() { return $this->updatePluginState('0'); } public function updatePluginState($state) { // auto enable the plugin $db = JFactory::getDbo(); $db->setQuery("UPDATE #__extensions SET enabled = '" . $state . "' WHERE `element` = 'scrolltock' AND `type` = 'plugin'"); return $db->query(); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings