__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package SP Page Builder
*
* @copyright Copyright (c) 2010 - 2021 JoomShaper. All rights reserved.
* @license GNU General Public License version 2 or later.
*/
defined('JPATH_PLATFORM') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\FormField;
use Joomla\CMS\HTML\HTMLHelper;
class JFormFieldResetcss extends FormField {
protected $type = 'Resetcss';
protected function getInput() {
HTMLHelper::_('jquery.framework');
$doc = Factory::getDocument();
$doc->addScriptDeclaration('jQuery(function($) {
$("#btn-reset-css").on("click", function(event) {
event.preventDefault();
var $this = $(this);
$this.text($this.data("loading"));
var request = {
"option" : "com_sppagebuilder",
"task" : "resetcss"
};
$.ajax({
type : "POST",
data : request,
success: function (data) {
$this.text($this.data("text"));
}
});
});
});');
return '<a id="btn-reset-css" class="btn btn-default" data-text="'. Text::_('COM_SPPAGEBUILDER_RESET_CSS_TEXT') .'" data-loading="'. Text::_('COM_SPPAGEBUILDER_RESET_CSS_TEXT_LOADING') .'" href="#">'. Text::_('COM_SPPAGEBUILDER_RESET_CSS_TEXT') .'</a>';
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| modal | Folder | 0775 |
|
|
| categoryEdit.php | File | 13.21 KB | 0664 |
|
| igtoken.php | File | 4.3 KB | 0664 |
|
| resetcss.php | File | 1.21 KB | 0664 |
|
| spmedia.php | File | 1.79 KB | 0664 |
|