| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 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 : /Old Sites/eadsa/plugins/editors/jce/tiny_mce/plugins/advcode/classes/ |
Upload File : |
<?php
/**
* $Id: config.php 72 2009-06-03 18:13:26Z happynoodleboy $
* @package JCE
* @copyright Copyright (C) 2005 - 2009 Ryan Demmer. All rights reserved.
* @author Ryan Demmer
* @license GNU/GPL
* JCE is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
class AdvcodeConfig
{
function getConfig(&$vars) {
$document =& JFactory::getDocument();
$jce =& JContentEditor::getInstance();
$toggle = $jce->getSharedParam('advcode', 'toggle', '1');
$state = $jce->getSharedParam('advcode', 'editor_state', '1');
$text = htmlspecialchars($jce->getSharedParam('advcode', 'toggle_text', '[show/hide]'));
$document->addScript(JURI::root(true) . '/plugins/editors/jce/tiny_mce/plugins/advcode/js/toggle.js?version='. $jce->getVersion());
$vars['onpageload'] = "function(){AdvCode.init('". $text ."', ".$state .", ". $toggle .");}";
}
}
?>