Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_community/views/mailqueue/view.html.php
Ðазад
<?php /** * @copyright (C) 2013 iJoomla, Inc. - All rights reserved. * @license GNU General Public License, version 2 (http://www.gnu.org/licenses/gpl-2.0.html) * @author iJoomla.com <webmaster@ijoomla.com> * @url https://www.jomsocial.com/license-agreement * The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0 * More info at https://www.jomsocial.com/license-agreement */ use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\View\HtmlView; use Joomla\CMS\Toolbar\ToolbarHelper; use Joomla\CMS\Uri\Uri; // Disallow direct access to this file defined('_JEXEC') or die('Restricted access'); jimport( 'joomla.application.component.view' ); /** * Configuration view for JomSocial */ class CommunityViewMailqueue extends HtmlView { /** * The default method that will display the output of this view which is called by * Joomla * * @param string template Template file name **/ public function display( $tpl = null ) { $queues = $this->get( 'MailQueues' ); $pagination = $this->get( 'Pagination' ); $this->set( 'mailqueues' , $queues ); $this->set( 'pagination' , $pagination ); parent::display( $tpl ); } public function getStatusText( $status ) { $text = 'Unknown'; switch($status){ case '0': $text = Text::_('COM_COMMUNITY_PENDING') ; break; case '1': $text = '<img src="' . rtrim( Uri::root() , '/' ) . '/administrator/components/com_community/assets/icons/tick.png" />' ; break; case '2': $text = Text::_('COM_COMMUNITY_USER_OPT_OUT') ; break; } return $text; } /** * Private method to set the toolbar for this view * * @access private * * @return null **/ public function setToolBar() { // Set the titlebar text ToolbarHelper::title( Text::_('COM_COMMUNITY_MAIL_QUEUE'), 'mailq' ); // Add the necessary buttons ToolBarHelper::custom('executeCron','tools','tools', Text::_('COM_COMMUNITY_EXECUTE_CRON') , false ); ToolBarHelper::trash('purgequeue', Text::_('COM_COMMUNITY_MAILQUEUE_PURGE_SENT') , false ); ToolBarHelper::divider(); ToolBarHelper::trash('removequeue', Text::_('COM_COMMUNITY_DELETE')); } public function _getStatusHTML() { $jinput = Factory::getApplication()->input; // Check if there are any categories selected $status = $jinput->getInt( 'status' , 3 ); $select = '<select class="no-margin" name="status" onchange="Joomla.submitform();">'; $statusArray = array(3=>Text::_('COM_COMMUNITY_ALL_STATE'),1=>Text::_('COM_COMMUNITY_SEND'),0=>Text::_('COM_COMMUNITY_PENDING'),2=>Text::_('COM_COMMUNITY_USER_OPT_OUT')); foreach($statusArray as $key=>$array) { $selected = ($status == $key) ? 'selected="true"' : ''; $select .='<option value="'.$key.'"'.$selected.' >'.Text::_($array).'</option>'; } $select .= '</select>'; return $select; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка