__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @copyright Copyright (C) 2011 Simplify Your Web, Inc. All rights reserved.
* @license GNU General Public License version 3 or later; see LICENSE.txt
*/
namespace SYW\Library\Field;
defined( '_JEXEC' ) or die;
use Joomla\CMS\Form\Field\ListField;
use Joomla\CMS\HTML\HTMLHelper;
class ImagelibraryselectField extends ListField
{
protected $type = 'Imagelibraryselect';
protected function getOptions() {
$options = array();
if (!extension_loaded('gd') && !extension_loaded('imagick')) {
$options[] = HTMLHelper::_('select.option', 'none', 'JNONE', 'value', 'text', $disable = false);
}
if (!extension_loaded('gd')) {
$options[] = HTMLHelper::_('select.option', 'gd', 'GD', 'value', 'text', $disable = true);
} else {
$options[] = HTMLHelper::_('select.option', 'gd', 'GD', 'value', 'text', $disable = false);
}
if (!extension_loaded('imagick')) {
$options[] = HTMLHelper::_('select.option', 'imagick', 'Imagick', 'value', 'text', $disable = true);
} else {
$options[] = HTMLHelper::_('select.option', 'imagick', 'Imagick', 'value', 'text', $disable = false);
}
// Merge any additional options in the XML definition.
$options = array_merge(parent::getOptions(), $options);
return $options;
}
}
?>