| Server IP : 195.130.67.5 / Your IP : 216.73.216.231 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/icd/plugins/quickicon/ |
Upload File : |
<?php
/**
* Mobile Joomla!
* http://www.mobilejoomla.com
*
* @version 1.2.9
* @license GNU/GPL v2 - http://www.gnu.org/licenses/gpl-2.0.html
* @copyright (C) 2008-2014 Kuneri Ltd.
* @date June 2014
*/
defined('_JEXEC') or die;
class plgQuickiconMjcpanel extends JPlugin
{
public function __construct(&$subject, $config)
{
parent::__construct($subject, $config);
// $this->loadLanguage();
}
public function onGetIcons($context)
{
if($context != 'mod_quickicon' || !JFactory::getUser()->authorise('core.manage', 'com_mobilejoomla'))
return null;
return self::getIcons();
}
public static function getIcons()
{
if(!self::isMJInstalled())
return array();
JHtml::_('behavior.modal', 'a.modal');
$document = JFactory::getDocument();
$document->addStyleSheet('components/com_mobilejoomla/css/mod_mj_adminicon.css');
require_once(JPATH_ADMINISTRATOR.'/components/com_mobilejoomla/classes/mobilejoomla.php');
MobileJoomla::loadLanguageFile('com_mobilejoomla', JPATH_ADMINISTRATOR);
include_once JPATH_ADMINISTRATOR.'/components/com_mobilejoomla/mobilejoomla.html.php';
HTML_MobileJoomla::CheckForUpdate();
if(version_compare(JVERSION, '3.0', '>='))
{
$image_prefix = '';
$image_suffix = '';
}
else
{
$image_prefix = JUri::base().'components/com_mobilejoomla/images/';
$image_suffix = '.png';
}
return array(
array(
'id' => 'mjnoupdate',
'link' => 'index.php?option=com_mobilejoomla',
'image' => $image_prefix.'mj-cpanel'.$image_suffix,
'text' => JText::_('COM_MJ__MOBILEJOOMLA')
),
array(
'id' => 'mjupdate',
'link' => 'index.php?tmpl=component&option=com_mobilejoomla&task=update',
'target'=> '_self" class="modal" rel="{handler: \'iframe\', size: {x: 480, y: 320}}',
'image' => $image_prefix.'mj-update'.$image_suffix,
'text' => JText::_('COM_MJ__UPDATE_AVAILABLE')
)
);
}
private static function isMJInstalled()
{
return is_file(JPATH_ADMINISTRATOR.'/components/com_mobilejoomla/mobilejoomla.html.php');
}
}