Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 function fetchElement()
 {
     $html = parent::fetchElement();
     $fontSettings = N2Fonts::loadSettings();
     $families = explode("\n", $fontSettings['preset-families']);
     sort($families);
     N2JS::addInline('new NextendElementAutocompleteSimple("' . $this->_id . '", ' . json_encode($families) . ');');
     return $html;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
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;
 }
Ejemplo n.º 5
0
 function fetchElement()
 {
     N2JS::addInline('$("#' . $this->_id . '").datetimepicker({lazyInit: true, format:"Y-m-d H:i:s", weeks: false, className: "n2"});');
     return parent::fetchElement();
 }
Ejemplo n.º 6
0
 function fetchElement()
 {
     $html = parent::fetchElement();
     N2JS::addInline("new NextendElementUrl('" . $this->_id . "', " . self::getNextendElementUrlParameters() . " );");
     return $html;
 }
Ejemplo n.º 7
0
 function fetchElement()
 {
     N2ImageHelper::initLightbox();
     N2JS::addInline("new NextendElementFolders('" . $this->_id . "' );");
     return parent::fetchElement();
 }
Ejemplo n.º 8
0
 function fetchElement()
 {
     $html = parent::fetchElement();
     N2JS::addInline('new NextendElementAutocompleteSimple("' . $this->_id . '", ' . json_encode(explode(',', N2XmlHelper::getAttribute($this->_xml, 'values'))) . ');');
     return $html;
 }