__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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\Select;
use Nextend\Framework\Form\Element\Text\Color;
use Nextend\Framework\Form\Element\Text\NumberAutoComplete;
use Nextend\Framework\View\Html;
class Border extends MixedField {
protected $rowClass = 'n2_field_mixed_border ';
public function __construct($insertAt, $name = '', $label = '', $default = '', $parameters = array()) {
parent::__construct($insertAt, $name, $label, $default, $parameters);
new NumberAutoComplete($this, $this->name . '-1', false, '', array(
'values' => array(
0,
1,
3,
5
),
'min' => 0,
'wide' => 3,
'unit' => 'px',
'relatedFields' => array(
$this->generateId($this->getControlName() . $this->name . '-2'),
$this->generateId($this->getControlName() . $this->name . '-3')
)
));
new Select($this, $this->name . '-2', false, '', array(
'options' => array(
'none' => n2_('None'),
'dotted' => n2_('Dotted'),
'dashed' => n2_('Dashed'),
'solid' => n2_('Solid'),
'double' => n2_('Double'),
'groove' => n2_('Groove'),
'ridge' => n2_('Ridge'),
'inset' => n2_('Inset'),
'outset' => n2_('Outset')
)
));
new Color($this, $this->name . '-3', false, '', array(
'alpha' => true
));
}
/**
* @param AbstractField $element
*
* @return string
*/
public function decorateElement($element) {
$elementHtml = $element->render();
return Html::tag('div', array(
'data-field' => $element->getID()
), $elementHtml[1]);
}
protected function decorate($html) {
return '<div class="n2_field_mixed_border__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 |
|