Beispiel #1
0
 function fetchElement()
 {
     if (N2XmlHelper::getAttribute($this->_xml, 'alpha') == 1) {
         $this->alpha = 1;
     }
     $html = parent::fetchElement();
     N2JS::addInline('new NextendElementColor("' . $this->_id . '", ' . $this->alpha . ');');
     return $html;
 }
 function fetchElement()
 {
     $html = parent::fetchElement();
     $options = array();
     if (count($this->_xml->option)) {
         foreach ($this->_xml->option as $option) {
             $options[] = (string) $option;
         }
     }
     N2JS::addInline('new NextendElementAutocomplete("' . $this->_id . '", ' . json_encode($options) . ');');
     return $html;
 }
Beispiel #3
0
 function fetchElement()
 {
     $fixed = N2XmlHelper::getAttribute($this->_xml, 'fixed');
     if ($fixed == '1') {
         $this->fixed = true;
     }
     N2ImageAviary::init();
     $html = parent::fetchElement();
     $params = array();
     N2ImageHelper::initLightbox();
     N2JS::addInline("new NextendElementImage('" . $this->_id . "', " . json_encode($params) . " );");
     if ($this->fixed) {
         $aviary = '';
         $html .= '<div id="' . $this->_id . '_preview" class="n2-form-element-preview n2-form-element-preview-fixed n2-border-radius" style="' . $this->getImageStyle() . '">
             ' . $aviary . '
         </div>';
     } else {
         $aviary = '';
         $html .= $aviary;
     }
     return $html;
 }
Beispiel #4
0
 function fetchElement()
 {
     N2JS::addInline('$("#' . $this->_id . '").datetimepicker({lazyInit: true, format:"Y-m-d H:i:s", weeks: false, className: "n2"});');
     return parent::fetchElement();
 }
Beispiel #5
0
 function fetchElement()
 {
     $html = parent::fetchElement();
     N2JS::addInline("new NextendElementUrl('" . $this->_id . "', " . self::getNextendElementUrlParameters() . " );");
     return $html;
 }
Beispiel #6
0
 function fetchElement()
 {
     N2ImageHelper::initLightbox();
     N2JS::addInline("new NextendElementFolders('" . $this->_id . "' );");
     return parent::fetchElement();
 }
Beispiel #7
0
 protected function getClass()
 {
     return 'n2-form-element-autocomplete ui-front ' . parent::getClass();
 }