| Server IP : 104.21.84.107 / Your IP : 104.23.243.197 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/reap/libraries/smartslider3/src/SmartSlider3/Form/Element/ |
Upload File : |
<?php
namespace Nextend\SmartSlider3\Form\Element;
use Nextend\Framework\Asset\Js\Js;
use Nextend\Framework\Form\Element\AbstractFieldHidden;
use Nextend\Framework\View\Html;
class WidgetArea extends AbstractFieldHidden {
protected $hasTooltip = false;
protected function fetchElement() {
$areas = '';
for ($i = 1; $i <= 12; $i++) {
$areas .= Html::tag('div', array(
'class' => 'n2_field_widget_area__area' . $this->isSelected($i),
'data-area' => $i
));
}
$html = Html::tag('div', array(
'class' => 'n2_field_widget_area'
), Html::tag('div', array(
'class' => 'n2_field_widget_area__inner'
)) . $areas . parent::fetchElement());
Js::addInline('new _N2.FormElementSliderWidgetArea("' . $this->fieldID . '");');
return $html;
}
function isSelected($i) {
if ($i == $this->getValue()) {
return ' n2_field_widget_area__area--selected';
}
return '';
}
}