__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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;
use Nextend\Framework\Asset\Js\Js;
use Nextend\Framework\Form\AbstractField;
use Nextend\Framework\Form\ContainerInterface;
use Nextend\Framework\Form\TraitFieldset;
use Nextend\Framework\View\Html;
class Breakpoint extends AbstractField implements ContainerInterface {
use TraitFieldset;
protected $fields = array();
protected $enables = false;
protected $global = false;
public function __construct($insertAt, $name = '', $fields = array(), $enables = false, $global = false) {
$this->fields = $fields;
$this->enables = $enables;
$this->global = $global;
parent::__construct($insertAt, $name, false, '');
}
public function getLabelClass() {
return parent::getLabelClass() . ' n2_field--raw';
}
protected function fetchElement() {
$orientation = new Tab($this, $this->name . '-orientation', n2_('Orientation'), 'portrait', array(
'options' => array(
'portrait' => n2_('Portrait'),
'landscape' => n2_('Landscape')
)
));
$devices = array(
array(
'id' => 'mobileportrait',
'icon' => 'ssi_16 ssi_16--mobileportrait',
'label' => n2_('Mobile')
),
array(
'id' => 'tabletportrait',
'icon' => 'ssi_16 ssi_16--tabletportrait',
'label' => n2_('Tablet')
),
array(
'id' => 'desktopportrait',
'icon' => 'ssi_16 ssi_16--desktopportrait',
'label' => n2_('Desktop')
)
);
$preHtml = '';
$element = $this->first;
while ($element) {
$preHtml .= $this->decorateElement($element);
$element = $element->getNext();
}
$html = '';
for ($i = 0; $i < count($devices); $i++) {
$html .= Html::tag('div', array(
'data-id' => $devices[$i]['id'],
'class' => 'n2_field_breakpoint__device'
), '<div class="n2_field_breakpoint__device_enable" data-n2tip="' . $devices[$i]['label'] . '"><i class="' . $devices[$i]['icon'] . '"></i></div>');
}
$options = array(
'orientation' => $orientation->getID(),
'fields' => $this->fields,
'enables' => $this->enables,
'global' => $this->global
);
Js::addInline('new _N2.FormElementBreakpoint("' . $this->fieldID . '", ' . json_encode($options) . ');');
return '<div id="' . $this->getID() . '" class="n2_field_breakpoint"><div class="n2_field_breakpoint__pre_fields">' . $preHtml . '</div><div class="n2_field_breakpoint__breakpoint_container" data-orientation="portrait">' . $html . '</div></div>';
}
public function decorateElement($element) {
return $this->parent->decorateElement($element);
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Button | Folder | 0775 |
|
|
| Group | Folder | 0775 |
|
|
| Hidden | Folder | 0775 |
|
|
| Message | Folder | 0775 |
|
|
| MixedField | Folder | 0775 |
|
|
| Radio | Folder | 0775 |
|
|
| Select | Folder | 0775 |
|
|
| Text | Folder | 0775 |
|
|
| Textarea | Folder | 0775 |
|
|
| AbstractChooser.php | File | 1.58 KB | 0664 |
|
| AbstractChooserText.php | File | 2.09 KB | 0664 |
|
| AbstractFieldHidden.php | File | 979 B | 0664 |
|
| Breakpoint.php | File | 2.96 KB | 0664 |
|
| Button.php | File | 1.41 KB | 0664 |
|
| CheckboxOnOff.php | File | 1.63 KB | 0664 |
|
| Connected.php | File | 554 B | 0664 |
|
| Decoration.php | File | 1.73 KB | 0664 |
|
| Devices.php | File | 1.32 KB | 0664 |
|
| EmptyArea.php | File | 303 B | 0664 |
|
| Font.php | File | 1.51 KB | 0664 |
|
| Gap.php | File | 2.08 KB | 0664 |
|
| Grouping.php | File | 877 B | 0664 |
|
| Hidden.php | File | 396 B | 0664 |
|
| IconTab.php | File | 2.6 KB | 0664 |
|
| LayerWindowFocus.php | File | 1.6 KB | 0664 |
|
| MarginPadding.php | File | 2.09 KB | 0664 |
|
| Message.php | File | 557 B | 0664 |
|
| MixedField.php | File | 1.87 KB | 0664 |
|
| OnOff.php | File | 2.65 KB | 0664 |
|
| Radio.php | File | 1.76 KB | 0664 |
|
| RichTextarea.php | File | 1.71 KB | 0664 |
|
| Select.php | File | 4.53 KB | 0664 |
|
| SelectIcon.php | File | 1.68 KB | 0664 |
|
| Style.php | File | 2.17 KB | 0664 |
|
| Tab.php | File | 1.7 KB | 0664 |
|
| Text.php | File | 2.23 KB | 0664 |
|
| Textarea.php | File | 1.5 KB | 0664 |
|
| Token.php | File | 196 B | 0664 |
|
| Unit.php | File | 1.41 KB | 0664 |
|
| Upload.php | File | 1.01 KB | 0664 |
|