forked from joomla/joomla-cms
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from renekreijveld/Extensionupdate
[imp] Move extensionupdater markup to JLayouts
- Loading branch information
Showing
2 changed files
with
34 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/** | ||
* @package Joomla.Site | ||
* @subpackage Layout | ||
* | ||
* @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('JPATH_BASE') or die; | ||
|
||
extract($displayData); | ||
|
||
/** | ||
* Variables | ||
* --------------------- | ||
* $ajax_url : (string) The url of the ajax call to be executed | ||
*/ | ||
|
||
JHtml::_('jquery.framework'); | ||
|
||
$script = "var plg_quickicon_extensionupdate_ajax_url = '$ajaxUrl';\n"; | ||
$script .= 'var plg_quickicon_extensionupdate_text = {"UPTODATE" : "' | ||
. JText::_('PLG_QUICKICON_EXTENSIONUPDATE_UPTODATE', true) . '", "UPDATEFOUND": "' | ||
. JText::_('PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND', true) . '", "ERROR": "' | ||
. JText::_('PLG_QUICKICON_EXTENSIONUPDATE_ERROR', true) . "\"};\n"; | ||
$document = JFactory::getDocument(); | ||
$document->addScriptDeclaration($script); | ||
JHtml::_('script', 'plg_quickicon_extensionupdate/extensionupdatecheck.js', false, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters