- md5
- 74da28a8be68d2ba7a059effd876498d
- sha1
- 227d50569ed1d9adcd8ba57abb09bceaa0b73093
- sha256
- 4e17cee118a1606401a1b2f4bc21ba62e73d705db1622a538ae7e9ca41a7f38f
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
<?php
/**
* @package Joomla.Plugin
* @subpackage Quickicon.Joomla
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Joomla! End of Support Notification Plugin
*
* @since 2.5.28
* @deprecated 3.0
*/
class PlgQuickiconEosnotify extends JPlugin
{
/**
* Constructor
*
* @param object &$subject The object to observe
* @param array $config An optional associative array of configuration settings.
* Recognized key values include 'name', 'group', 'params', 'language'
* (this list is not meant to be comprehensive).
*
* @since 2.5.28
*/
public function __construct(&$subject, $config = array())
{
parent::__construct($subject, $config);
$this->loadLanguage();
}
/**
* This method is called when the Quick Icons module is constructing its set
* of icons. You can return an array which defines a single icon and it will
* be rendered right after the stock Quick Icons.
*
* @param $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.28
*/
public function onGetIcons($context)
{
if (!JFactory::getApplication()->isAdmin() || version_compare(JVERSION, '3.0', '>='))
{
return;
}
$text = JText::_('PLG_EOSNOTIFY_SUPPORT_ENDING');
if (JFactory::getDate() >= '2015-01-01')
{
$text = JText::_('PLG_EOSNOTIFY_SUPPORT_ENDED');
}
if (JAdministratorHelper::findOption() == 'com_cpanel')
{
JFactory::getApplication()->enqueueMessage(JText::sprintf('PLG_EOSNOTIFY_CLICK_FOR_INFORMATION_WITH_LINK', $text), 'error');
}
}
}
No other release has this exact content. See every version of this file.