| Server IP : 87.98.154.146 / Your IP : 216.73.216.101 Web Server : Apache System : Linux webm005.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : bsiadvisil ( 110003) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/bsiadvisil/old/administrator/components/com_spsimpleportfolio/models/fields/ |
Upload File : |
<?php
/**
* @package SP Simple Portfolio
*
* @copyright Copyright (C) 2010 - 2018 JoomShaper. All rights reserved.
* @license GNU General Public License version 2 or later.
*/
defined('JPATH_PLATFORM') or die;
jimport('joomla.form.formfield');
class JFormFieldResetthumbs extends JFormField {
protected $type = 'Resetthumbs';
protected function getInput() {
Jhtml::_('jquery.framework');
$doc = JFactory::getDocument();
$doc->addScriptDeclaration('jQuery(function($) {
$("#btn-reset-thumbs").on("click", function() {
$(this).attr("disabled","disabled").text($(this).data("generating"));
});
});');
$url = 'index.php?option=com_spsimpleportfolio&task=resetThumbs';
return '<a id="btn-reset-thumbs" class="btn btn-primary" data-generating="'. JText::_('COM_SPPORTFOLIO_RESET_THUMBNAIL_TEXT_LOADING') .'" href="'. $url .'">'. JText::_('COM_SPPORTFOLIO_RESET_THUMBNAIL_TEXT') .'</a>';
}
}