Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_jchat/View/Recorder/HtmlView.php
Ðазад
<?php namespace JExtstore\Component\JChat\Administrator\View\Recorder; /** * @package JCHAT::RECORDER::administrator::components::com_jchat * @subpackage views * @subpackage recorder * @author Joomla! Extensions Store * @Copyright (C) 2015 - Joomla! Extensions Store * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html */ defined ( '_JEXEC' ) or die ( 'Restricted access' ); use Joomla\CMS\Language\Text; use Joomla\CMS\Toolbar\ToolbarHelper; use Joomla\CMS\Pagination\Pagination; use JExtstore\Component\JChat\Administrator\Framework\View as JChatView; /** * User messages view implementation * * @package JCHAT::RECORDER::administrator::components::com_jchat * @subpackage views * @since 2.9 */ class HtmlView extends JChatView { // Template view variables protected $pagination; protected $order; protected $searchword; protected $lists; protected $orders; protected $items; protected $dates; protected $componentParams; /** * Add the page title and toolbar. */ protected function addDisplayToolbar() { // Model state cparams $cParams = $this->getModel()->getState('cparams'); $keepDays = $cParams->get('keep_latest_msgs', 7); $doc = $this->app->getDocument(); ToolbarHelper::title( Text::_('COM_JCHAT_MAINTITLE_TOOLBAR') . Text::_('COM_JCHAT_RECORDED_MEDIAS_LIST' ), 'jchat' ); ToolbarHelper::deleteList('COM_JCHAT_DELETE_MEDIAS', 'recorder.deleteEntity'); ToolbarHelper::custom('cpanel.display', 'home', 'home', 'COM_JCHAT_CPANEL', false); } /** * Default listEntities * @access public */ public function display($tpl = 'list') { $doc = $this->app->getDocument (); $this->loadJQuery($doc); $this->loadJQueryUI($doc); // Required for draggable feature $this->loadBootstrap($doc); $doc->getWebAssetManager()->addInlineStyle('@media (max-width: 1024px) and (min-width: 768px) { body.admin.com_jchat { min-width: 1024px; }} @media (max-width: 640px) { body.admin.com_jchat { min-width: 640px; }}'); // Get main records $rows = $this->get('Data'); $lists = $this->get('Filters'); $total = $this->get('Total'); $orders = array(); $orders['order'] = $this->getModel()->getState('order'); $orders['order_Dir'] = $this->getModel()->getState('order_dir'); // Pagination view object model state populated $pagination = new Pagination( $total, $this->getModel()->getState('limitstart'), $this->getModel()->getState('limit') ); $dates = array('start'=>$this->getModel()->getState('fromPeriod'), 'to'=>$this->getModel()->getState('toPeriod')); $this->pagination = $pagination; $this->order = $this->getModel()->getState('order'); $this->searchword = $this->getModel()->getState('searchword'); $this->lists = $lists; $this->orders = $orders; $this->items = $rows; $this->option = $this->getModel()->getState('option'); $this->dates = $dates; $this->componentParams = $this->getModel()->getComponentParams(); // Add toolbar $this->addDisplayToolbar(); parent::display($tpl); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка