- md5
- fc2cf102dd8c30b674832ca86e70a7db
- sha1
- 1a2564a4910f40f33cf9e3ea1a75d352dccea91d
- sha256
- ed7bf5a9f9c73198af37c0c103a9a8183be5e7e94817caa849d0a0bf4df365e8
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
<?php
/**
* @package Joomla.Administrator
* @subpackage com_users
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Component\Users\Administrator\View\Mail;
defined('_JEXEC') or die;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
/**
* Users mail view.
*
* @since 1.6
*/
class HtmlView extends BaseHtmlView
{
/**
* The \JForm object
*
* @var \JForm
*/
protected $form;
/**
* Display the view
*
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return void
*/
public function display($tpl = null)
{
// Redirect to admin index if mass mailer disabled in conf
if (\JFactory::getApplication()->get('massmailoff', 0) == 1)
{
\JFactory::getApplication()->redirect(\JRoute::_('index.php', false));
}
// Get data from the model
$this->form = $this->get('Form');
$this->addToolbar();
parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
* @return void
*
* @since 1.6
*/
protected function addToolbar()
{
\JFactory::getApplication()->input->set('hidemainmenu', true);
\JToolbarHelper::title(\JText::_('COM_USERS_MASS_MAIL'), 'users massmail');
\JToolbarHelper::custom('mail.send', 'envelope.png', 'send_f2.png', 'COM_USERS_TOOLBAR_MAIL_SEND_MAIL', false);
\JToolbarHelper::cancel('mail.cancel');
\JToolbarHelper::divider();
\JToolbarHelper::preferences('com_users');
\JToolbarHelper::divider();
\JToolbarHelper::help('JHELP_USERS_MASS_MAIL_USERS');
}
}
No other release has this exact content. See every version of this file.