first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2009-2022 Ryan Demmer. All rights reserved
|
||||
* @license GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
* 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
|
||||
*/
|
||||
defined('JPATH_PLATFORM') or die;
|
||||
?>
|
||||
<div class="row">
|
||||
<?php if (!empty($this->sidebar)) : ?>
|
||||
<div id="j-sidebar-container" class="j-sidebar-container span2 col-md-2">
|
||||
<?php echo $this->sidebar; ?>
|
||||
</div>
|
||||
<div id="j-main-container" class="j-main-container span10 col-md-10">
|
||||
<?php else : ?>
|
||||
<div id="j-main-container">
|
||||
<?php endif; ?>
|
||||
<div class="ui-jce row-fluid">
|
||||
<iframe src="<?php echo $this->state->get('url');?>" frameborder="0" class="wf-admin-browser"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
56
administrator/components/com_jce/views/browser/view.html.php
Normal file
56
administrator/components/com_jce/views/browser/view.html.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
// Check to ensure this file is included in Joomla!
|
||||
defined('JPATH_PLATFORM') or die;
|
||||
|
||||
class JceViewBrowser extends JViewLegacy
|
||||
{
|
||||
protected $icons;
|
||||
protected $state;
|
||||
|
||||
/**
|
||||
* Display the view.
|
||||
*/
|
||||
public function display($tpl = null)
|
||||
{
|
||||
if (!JPluginHelper::isEnabled('quickicon', 'jce')) {
|
||||
JFactory::getApplication()->redirect('index.php?option=com_jce');
|
||||
}
|
||||
|
||||
$user = JFactory::getUser();
|
||||
|
||||
$this->state = $this->get('State');
|
||||
$this->params = JComponentHelper::getParams('com_jce');
|
||||
|
||||
// Check for errors.
|
||||
if (count($errors = $this->get('Errors'))) {
|
||||
JError::raiseError(500, implode("\n", $errors));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
JHtml::_('jquery.framework');
|
||||
|
||||
$document = JFactory::getDocument();
|
||||
$document->addStyleSheet(JURI::root(true) . '/media/com_jce/css/browser.min.css');
|
||||
|
||||
$this->addToolbar();
|
||||
|
||||
if (JFactory::getApplication()->input->getInt('sidebar', 1) == 1) {
|
||||
$this->sidebar = JHtmlSidebar::render();
|
||||
}
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the page title and toolbar.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function addToolbar()
|
||||
{
|
||||
JToolbarHelper::title('JCE - ' . JText::_('WF_BROWSER_TITLE'), 'picture');
|
||||
JHtmlSidebar::setAction('index.php?option=com_jce&view=browser');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user