| Current Path : /home/wuectly/www/03cbe/ |
| Current File : /home/wuectly/www/03cbe/cpanel.tar |
view.html.php 0000604 00000003645 15245653265 0007213 0 ustar 00 <?php
/**
* @package JCE
* @subpackage Admin
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (c) 2009-2024 Ryan Demmer. All rights reserved
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
\defined('_JEXEC') or die;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\Helpers\Sidebar;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\HtmlView;
use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\CMS\Uri\Uri;
class JceViewCpanel extends HtmlView
{
protected $icons;
protected $state;
/**
* Display the view.
*/
public function display($tpl = null)
{
$user = Factory::getUser();
$this->state = $this->get('State');
$this->icons = $this->get('Icons');
$this->params = ComponentHelper::getParams('com_jce');
// Check for errors.
if (count($errors = $this->get('Errors'))) {
throw new Exception(implode("\n", $errors), 500);
}
HTMLHelper::_('jquery.framework');
$document = Factory::getDocument();
$document->addScript(Uri::root(true) . '/media/com_jce/admin/js/cpanel.min.js');
$document->addStyleSheet(Uri::root(true) . '/media/com_jce/admin/css/cpanel.min.css');
$this->addToolbar();
$this->sidebar = Sidebar::render();
parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
$state = $this->get('State');
$user = Factory::getUser();
ToolbarHelper::title('JCE - ' . Text::_('WF_CPANEL'), 'home');
Sidebar::setAction('index.php?option=com_jce&view=cpanel');
if ($user->authorise('core.admin', 'com_jce')) {
ToolbarHelper::preferences('com_jce');
}
}
}
tmpl/default.php 0000604 00000005226 15245653265 0007673 0 ustar 00 <?php
/**
* @package JCE
* @subpackage Admin
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (c) 2009-2024 Ryan Demmer. All rights reserved
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
\defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
$user = Factory::getUser();
$canEditPref = $user->authorise('core.admin', 'com_jce');
?>
<div class="ui-jce row row-fluid">
<div class="span12 col-md-12">
<nav id="wf-cpanel" class="quick-icons bg-transparent">
<ul class="unstyled mb-0 nav flex-wrap row-fluid">
<?php echo implode("\n", $this->icons); ?>
</ul>
</nav>
<dl class="dl-horizontal card card-body well">
<dt class="wf-tooltip" title="<?php echo Text::_('WF_CPANEL_SUPPORT') . '::' . Text::_('WF_CPANEL_SUPPORT_DESC'); ?>">
<?php echo Text::_('WF_CPANEL_SUPPORT'); ?>
</dt>
<dd><a href="https://www.joomlacontenteditor.net/support" target="_new">https://www.joomlacontenteditor.com/support</a></dd>
<dt class="wf-tooltip" title="<?php echo Text::_('WF_CPANEL_LICENCE') . '::' . Text::_('WF_CPANEL_LICENCE_DESC'); ?>">
<?php echo Text::_('WF_CPANEL_LICENCE'); ?>
</dt>
<dd><?php echo $this->state->get('licence'); ?></dd>
<dt class="wf-tooltip" title="<?php echo Text::_('WF_CPANEL_VERSION') . '::' . Text::_('WF_CPANEL_VERSION_DESC'); ?>">
<?php echo Text::_('WF_CPANEL_VERSION'); ?>
</dt>
<dd><?php echo $this->state->get('version'); ?></dd>
<?php if ($this->params->get('feed', 0) || $canEditPref): ?>
<dt class="wf-tooltip" title="<?php echo Text::_('WF_CPANEL_FEED') . '::' . Text::_('WF_CPANEL_FEED_DESC'); ?>">
<?php echo Text::_('WF_CPANEL_FEED'); ?>
</dt>
<dd>
<?php if ($this->params->get('feed', 0)): ?>
<ul class="unstyled wf-cpanel-newsfeed">
<li><?php echo Text::_('WF_CPANEL_FEED_NONE'); ?></li>
</ul>
<?php else: ?>
<?php echo Text::_('WF_CPANEL_FEED_DISABLED'); ?> :: <a id="newsfeed_enable" title="<?php echo Text::_('WF_PREFERENCES'); ?>" href="#">[<?php echo Text::_('WF_CPANEL_FEED_ENABLE'); ?>]</a>
<?php endif;?>
</dd>
<?php endif;?>
</dl>
<?php if (!$this->state->get('pro', 0)) :
echo LayoutHelper::render('message.upgrade', $this);
endif;?>
</div>
</div>