PATH:
home
/
lab2454c
/
incforce.com
/
wp-content
/
plugins
/
smart-slider-3
/
Nextend
/
Framework
/
Form
/
Element
<?php namespace Nextend\Framework\Form\Element; use Nextend\Framework\Asset\Js\Js; use Nextend\Framework\View\Html; class Devices extends AbstractFieldHidden { private $values = array(); protected function fetchElement() { $html = Html::tag('div', array( 'id' => $this->fieldID, 'class' => 'n2_field_radio_icon' ), $this->generateOptions()); Js::addInline('new _N2.FormElementDevices("' . $this->fieldID . '", ' . json_encode($this->values) . ');'); return $html; } function generateOptions() { $options = array( 'desktop-portrait' => 'ssi_16 ssi_16--desktopportrait', 'tablet-portrait' => 'ssi_16 ssi_16--tabletportrait', 'mobile-portrait' => 'ssi_16 ssi_16--mobileportrait' ); $html = ''; $i = 0; foreach ($options as $value => $class) { $this->values[] = $value; $html .= Html::tag('div', array( 'class' => 'n2_field_radio__option' ), Html::tag('i', array( 'class' => $class )) . Html::tag('input', array( 'type' => 'hidden', 'id' => $this->fieldID . '-' . $value ))); $i++; } return $html; } }
[-] Message.php
[edit]
[+]
Button
[-] Tab.php
[edit]
[-] Upload.php
[edit]
[+]
Radio
[-] Devices.php
[edit]
[+]
..
[-] Textarea.php
[edit]
[+]
Select
[-] IconTab.php
[edit]
[-] Grouping.php
[edit]
[-] Decoration.php
[edit]
[-] CheckboxOnOff.php
[edit]
[-] Breakpoint.php
[edit]
[-] MarginPadding.php
[edit]
[+]
Message
[-] Token.php
[edit]
[-] RichTextarea.php
[edit]
[-] Connected.php
[edit]
[-] LayerWindowFocus.php
[edit]
[-] AbstractFieldHidden.php
[edit]
[-] AbstractChooserText.php
[edit]
[+]
MixedField
[-] Unit.php
[edit]
[+]
Textarea
[-] EmptyArea.php
[edit]
[-] MixedField.php
[edit]
[+]
Text
[-] SelectIcon.php
[edit]
[-] Radio.php
[edit]
[-] Text.php
[edit]
[+]
Group
[-] Select.php
[edit]
[-] Hidden.php
[edit]
[-] AbstractChooser.php
[edit]
[-] Style.php
[edit]
[-] Font.php
[edit]
[-] Gap.php
[edit]
[-] OnOff.php
[edit]
[+]
Hidden
[-] Button.php
[edit]