[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage com_config 6 * 7 * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 use Joomla\CMS\HTML\HTMLHelper; 12 use Joomla\CMS\Language\Text; 13 use Joomla\CMS\Layout\LayoutHelper; 14 use Joomla\CMS\Router\Route; 15 use Joomla\CMS\Session\Session; 16 17 defined('_JEXEC') or die; 18 19 HTMLHelper::_('form.csrf'); 20 $this->document->getWebAssetManager() 21 ->useScript('webcomponent.field-send-test-mail'); 22 23 // Load JavaScript message titles 24 Text::script('ERROR'); 25 Text::script('WARNING'); 26 Text::script('NOTICE'); 27 Text::script('MESSAGE'); 28 29 // Add strings for JavaScript error translations. 30 Text::script('JLIB_JS_AJAX_ERROR_CONNECTION_ABORT'); 31 Text::script('JLIB_JS_AJAX_ERROR_NO_CONTENT'); 32 Text::script('JLIB_JS_AJAX_ERROR_OTHER'); 33 Text::script('JLIB_JS_AJAX_ERROR_PARSE'); 34 Text::script('JLIB_JS_AJAX_ERROR_TIMEOUT'); 35 36 // Ajax request data. 37 $ajaxUri = Route::_('index.php?option=com_config&task=application.sendtestmail&format=json&' . Session::getFormToken() . '=1'); 38 39 $this->name = Text::_('COM_CONFIG_MAIL_SETTINGS'); 40 $this->fieldsname = 'mail'; 41 $this->formclass = 'options-form'; 42 43 ?> 44 45 <joomla-field-send-test-mail uri="<?php echo $ajaxUri; ?>"> 46 <?php echo LayoutHelper::render('joomla.content.options_default', $this); ?> 47 48 <button class="btn btn-primary" type="button" id="sendtestmail"> 49 <span><?php echo Text::_('COM_CONFIG_SENDMAIL_ACTION_BUTTON'); ?></span> 50 </button> 51 </joomla-field-send-test-mail>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |