Файловый менеджер - Редактировать - /home/lmsyaran/public_html/pusher/quickicon.tar
Назад
extensionupdate/extensionupdate.php 0000644 00000005176 15116743300 0013724 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Quickicon.Extensionupdate * * @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Joomla! update notification plugin * * @since 2.5 */ class PlgQuickiconExtensionupdate extends JPlugin { /** * Load the language file on instantiation. * * @var boolean * @since 3.1 */ protected $autoloadLanguage = true; /** * Returns an icon definition for an icon which looks for extensions updates * via AJAX and displays a notification when such updates are found. * * @param string $context The calling context * * @return array A list of icon definition associative arrays, consisting of the * keys link, image, text and access. * * @since 2.5 */ public function onGetIcons($context) { if ($context !== $this->params->get('context', 'mod_quickicon') || !JFactory::getUser()->authorise('core.manage', 'com_installer')) { return; } JHtml::_('jquery.framework'); $token = JSession::getFormToken() . '=' . 1; $url = JUri::base() . 'index.php?option=com_installer&view=update&task=update.find&' . $token; $ajax_url = JUri::base() . 'index.php?option=com_installer&view=update&task=update.ajax&' . $token; $script = array(); $script[] = 'var plg_quickicon_extensionupdate_url = \'' . $url . '\';'; $script[] = 'var plg_quickicon_extensionupdate_ajax_url = \'' . $ajax_url . '\';'; $script[] = 'var plg_quickicon_extensionupdate_text = {' . '"UPTODATE" : "' . JText::_('PLG_QUICKICON_EXTENSIONUPDATE_UPTODATE', true) . '",' . '"UPDATEFOUND": "' . JText::_('PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND', true) . '",' . '"UPDATEFOUND_MESSAGE": "' . JText::_('PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND_MESSAGE', true) . '",' . '"UPDATEFOUND_BUTTON": "' . JText::_('PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND_BUTTON', true) . '",' . '"ERROR": "' . JText::_('PLG_QUICKICON_EXTENSIONUPDATE_ERROR', true) . '",' . '};'; JFactory::getDocument()->addScriptDeclaration(implode("\n", $script)); JHtml::_('script', 'plg_quickicon_extensionupdate/extensionupdatecheck.js', array('version' => 'auto', 'relative' => true)); return array( array( 'link' => 'index.php?option=com_installer&view=update&task=update.find&' . $token, 'image' => 'asterisk', 'icon' => 'header/icon-48-extension.png', 'text' => JText::_('PLG_QUICKICON_EXTENSIONUPDATE_CHECKING'), 'id' => 'plg_quickicon_extensionupdate', 'group' => 'MOD_QUICKICON_MAINTENANCE' ) ); } } extensionupdate/extensionupdate.xml 0000644 00000002226 15116743300 0013726 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <extension version="3.1" type="plugin" group="quickicon" method="upgrade"> <name>plg_quickicon_extensionupdate</name> <author>Joomla! Project</author> <creationDate>August 2011</creationDate> <copyright>Copyright (C) 2005 - 2020 Open Source Matters. All rights reserved.</copyright> <license>GNU General Public License version 2 or later; see LICENSE.txt</license> <authorEmail>admin@joomla.org</authorEmail> <authorUrl>www.joomla.org</authorUrl> <version>3.0.0</version> <description>PLG_QUICKICON_EXTENSIONUPDATE_XML_DESCRIPTION</description> <files> <filename plugin="extensionupdate">extensionupdate.php</filename> </files> <languages> <language tag="en-GB">en-GB.plg_quickicon_extensionupdate.ini</language> <language tag="en-GB">en-GB.plg_quickicon_extensionupdate.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="context" type="text" label="PLG_QUICKICON_EXTENSIONUPDATE_GROUP_LABEL" description="PLG_QUICKICON_EXTENSIONUPDATE_GROUP_DESC" default="mod_quickicon" /> </fieldset> </fields> </config> </extension> gantry5/gantry5.php 0000644 00000005606 15116743300 0010246 0 ustar 00 <?php /** * @package Gantry 5 * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) 2007 - 2017 RocketTheme, LLC * @license GNU/GPLv2 and later * * http://www.gnu.org/licenses/gpl-2.0.html */ defined('_JEXEC') or die; class plgQuickiconGantry5 extends JPlugin { public function __construct(&$subject, $config) { // Do not load if Gantry libraries are not installed or initialised. if (!class_exists('Gantry5\Loader')) return; parent::__construct($subject, $config); // Always load language. $lang = JFactory::getLanguage(); $lang->load('com_gantry5.sys') || $lang->load('com_gantry5.sys', JPATH_ADMINISTRATOR . '/components/com_gantry5'); $this->loadLanguage('plg_quickicon_gantry5.sys'); } /** * Display Gantry 5 backend icon * * @param string $context * @return array|null */ public function onGetIcons($context) { $user = JFactory::getUser(); if ($context != $this->params->get('context', 'mod_quickicon') || !$user->authorise('core.manage', 'com_gantry5')) { return null; } try { $updates = null; if ($user->authorise('core.manage', 'com_installer')) { // Initialise Gantry. Gantry5\Loader::setup(); $gantry = Gantry\Framework\Gantry::instance(); $gantry['streams']->register(); /** @var Gantry\Framework\Platform $platform */ $platform = $gantry['platform']; $updates = $platform->updates(); } } catch (Exception $e) { $app = JFactory::getApplication(); $app->enqueueMessage($e->getMessage(), 'warning'); $updates = false; } $quickicons = array( array( 'link' => JRoute::_('index.php?option=com_gantry5'), 'image' => 'eye', 'text' => JText::_('COM_GANTRY5'), 'group' => 'MOD_QUICKICON_EXTENSIONS', 'access' => array('core.manage', 'com_gantry5') ) ); if ($updates === false) { // Disabled $quickicons[] = array( 'link' => JRoute::_('index.php?option=com_gantry5'), 'image' => 'eye', 'text' => JText::_('PLG_QUICKICON_GANTRY5_UPDATES_DISABLED'), 'group' => 'MOD_QUICKICON_MAINTENANCE' ); } elseif (!empty($updates)) { // Has updates $quickicons[] = array( 'link' => JRoute::_('index.php?option=com_installer&view=update'), 'image' => 'download', 'text' => JText::_('PLG_QUICKICON_GANTRY5_UPDATE_NOW'), 'group' => 'MOD_QUICKICON_MAINTENANCE' ); } return $quickicons; } } gantry5/gantry5.xml 0000644 00000002262 15116743300 0010252 0 ustar 00 <?xml version="1.0" encoding="UTF-8" standalone="no"?> <extension version="3.4" type="plugin" group="quickicon" method="upgrade"> <name>plg_quickicon_gantry5</name> <version>5.4.37</version> <creationDate>January 25, 2021</creationDate> <author>RocketTheme, LLC</author> <authorEmail>support@rockettheme.com</authorEmail> <authorUrl>http://www.rockettheme.com</authorUrl> <copyright>(C) 2005 - 2019 RocketTheme, LLC. All rights reserved.</copyright> <license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license> <description>PLG_QUICKICON_GANTRY5_DESCRIPTION</description> <files> <filename plugin="gantry5">gantry5.php</filename> <filename>MD5SUMS</filename> <folder>language</folder> </files> <config> <fields name="params"> <fieldset name="basic"> <field name="context" type="text" default="mod_quickicon" description="PLG_QUICKICON_GANTRY5_GROUP_DESC" label="PLG_QUICKICON_GANTRY5_GROUP_LABEL" /> </fieldset> </fields> </config> </extension> gantry5/language/en-GB/en-GB.plg_quickicon_gantry5.sys.ini 0000644 00000000723 15116743300 0017317 0 ustar 00 PLG_QUICKICON_GANTRY5="Quick Icon - Gantry 5" PLG_QUICKICON_GANTRY5_DESCRIPTION="Displays Gantry 5 and its updates in Joomla Control Panel page." PLG_QUICKICON_GANTRY5_UPDATE_NOW="Gantry 5 - Update now!" PLG_QUICKICON_GANTRY5_UPDATES_DISABLED="Gantry 5 Updates disabled" PLG_QUICKICON_GANTRY5_GROUP_DESC="The group of this plugin (this value is compared with the group value used in 'Quick Icons' modules to inject icons)" PLG_QUICKICON_GANTRY5_GROUP_LABEL="Group" gantry5/MD5SUMS 0000644 00000000327 15116743300 0007157 0 ustar 00 language/en-GB/en-GB.plg_quickicon_gantry5.sys.ini 6c74971e95e095ea9511c25336dcd19a gantry5.xml 4e7f62f0fbfddefb16d773510ac0f391 MD5SUMS d41d8cd98f00b204e9800998ecf8427e gantry5.php ce06d8c4f4eaadec5a31bcd300d30f00 hikashop/hikashop.php 0000644 00000002626 15116743300 0010677 0 ustar 00 <?php /** * @package HikaShop for Joomla! * @version 4.4.1 * @author hikashop.com * @copyright (C) 2010-2021 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?><?php class plgQuickiconHikaShop extends JPlugin { public function __construct(&$subject, $config) { parent::__construct($subject, $config); $this->loadLanguage('com_hikashop.sys'); } public function onGetIcons($context) { if(!defined('DS')) define('DS',DIRECTORY_SEPARATOR); $hikashopHelper = rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php'; if($context != $this->params->get('context', 'mod_quickicon') || !file_exists($hikashopHelper) || !JFactory::getUser()->authorise('core.manage', 'com_hikashop')) { return; } if(version_compare(JVERSION, '4.0', '>=')) { $img = 'fa fa-shopping-cart'; } else if(version_compare(JVERSION, '3.0', '>=')) { $img = 'cart'; } else { $img = JURI::base().'../media/com_hikashop/images/icons/icon-48-hikashop.png'; } return array( array( 'link' => JRoute::_('index.php?option=com_hikashop'), 'image' => $img, 'text' => $this->params->get('displayedtext', JText::_('HIKASHOP')), 'access' => array('core.manage', 'com_hikashop'), 'id' => 'plg_quickicon_hikashop' ) ); } } hikashop/hikashop.xml 0000644 00000001707 15116743300 0010707 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <extension version="2.5" type="plugin" group="quickicon" method="upgrade"> <name>HikaShop Quick Icon</name> <creationDate>12 février 2021</creationDate> <version>4.4.1</version> <author>Obsidev</author> <authorEmail>jerome@obsidev.com</authorEmail> <authorUrl>http://www.hikashop.com</authorUrl> <copyright>Copyright (c) 2011-2021 Obsidev S.A.R.L. All rights reserved.</copyright> <license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license> <description>HikaShop Quick Icon</description> <files> <filename plugin="hikashop">hikashop.php</filename> </files> <config> <fields name="params"> <fieldset name="basic"> <field name="context" type="text" default="mod_quickicon" description="QUICKICON_GROUP" label="GROUP" /> <field name="displayedtext" type="text" default="" description="ICON_LEGEND" label="ICON_LEGEND" /> </fieldset> </fields> </config> </extension> hikashop/index.html 0000644 00000000054 15116743300 0010346 0 ustar 00 <html><body bgcolor="#FFFFFF"></body></html>