Files
idpan.poznan.pl/administrator/components/com_jchoptimize/fields/customextension.php
2026-02-08 21:16:11 +01:00

38 lines
803 B
PHP

<?php
/**
* JCH Optimize - Performs several front-end optimizations for fast downloads
*
* @package jchoptimize/joomla-platform
* @author Samuel Marshall <samuel@jch-optimize.net>
* @copyright Copyright (c) 2020 Samuel Marshall / JCH Optimize
* @license GNU/GPLv3, or later. See LICENSE file
*
* If LICENSE file missing, see <http://www.gnu.org/licenses/>.
*/
use JchOptimize\Core\Admin\Helper;
defined('_JEXEC') or die;
include_once dirname(__FILE__) . '/exclude.php';
class JFormFieldCustomextension extends JFormFieldExclude {
public $type = 'customextension';
public string $filetype = 'url';
public string $filegroup = 'file';
protected function getInput()
{
if ( ! JCH_PRO )
{
return Helper::proOnlyField();
}
else
{
return parent::getInput();
}
}
}