asdadsasd jcefilebrowser.xml000064400000001357151262106150010300 0ustar00 plg_quickicon_jcefilebrowser Ryan Demmer 12 December 2013 Copyright (C) 2006 - 2013 Ryan Demmer. All rights reserved GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @@email@@ www.joomalcontenteditor.net 2.3.4.4 PLG_QUICKICON_JCEFILEBROWSER_XML_DESCRIPTION jcefilebrowser.php jcefilebrowser.php000064400000005700151262106150010263 0ustar00isSite() || JComponentHelper::getComponent('com_jce', true)->enabled === false) { return; } $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 */ public function onGetIcons($context) { @include_once(JPATH_ADMINISTRATOR . '/components/com_jce/models/model.php'); // check for class to prevent fatal errors if (!class_exists('WFModel')) { return; } if ($context != $this->params->get('context', 'mod_quickicon') || WFModel::authorize('browser') === false) { return; } $document = JFactory::getDocument(); $language = JFactory::getLanguage(); $language->load('com_jce', JPATH_ADMINISTRATOR); $width = $this->params->get('width', 800); $height = $this->params->get('height', 600); $filter = $this->params->get('filter', ''); JHtml::_('behavior.modal'); $document->addScriptDeclaration( " window.addEvent('domready', function() { SqueezeBox.assign($$('#plg_quickicon_jcefilebrowser a'), { handler: 'iframe', size: {x: " . $width . ", y: " . $height . "} }); });" ); require_once(JPATH_ADMINISTRATOR . '/components/com_jce/helpers/browser.php'); $version = new JVersion; $icon = $version->isCompatible('3.0') ? 'pictures' : 'header/icon-48-media.png'; return array(array( 'link' => WFBrowserHelper::getBrowserLink('', $filter), 'image' => $icon, 'icon' => 'pictures', 'access' => array('jce.browser', 'com_jce'), 'text' => JText::_('WF_QUICKICON_BROWSER'), 'id' => 'plg_quickicon_jcefilebrowser' )); } }