function getElementHtml()
 {
     $this->setAttributes('class', 'option-text');
     $this->setAttributes('value', $this->value);
     $element = (array) $this->element;
     if (isset($element['min'])) {
         $this->setAttributes('min', (int) $element['min']);
     }
     if (isset($element['max'])) {
         $this->setAttributes('max', (int) $element['max']);
     }
     return parent::getElementHtml();
 }
 function getElementHtml()
 {
     if (!empty($this->element->element_property->min)) {
         $this->setAttributes('min', (string) $this->element->element_property->min);
     }
     if (!empty($this->element->element_property->max)) {
         $this->setAttributes('max', (string) $this->element->element_property->max);
     }
     if (!empty($this->element->element_property->step)) {
         $this->setAttributes('step', (string) $this->element->element_property->step);
     }
     $this->setAttributes('class', 'option-range');
     return parent::getElementHtml();
 }
 function getElementHtml()
 {
     $html = '';
     foreach ($this->element->values->value as $value) {
         $val = (string) $value['data'];
         $this->attributes['checked'] = $val == $this->value ? 'checked' : '';
         $this->attributes['value'] = $val;
         $this->attributes['id'] = $this->id . '-' . $val;
         $html .= '<div class="left a-center meigee-radio ' . ($this->attributes['checked'] ? "active" : '') . '">
                         <label class="inline">
                              ' . parent::getElementHtml() . $val . '
                         </label>
                     </div>';
     }
     $html .= '</select>';
     return $html;
 }
 function getElementHtml()
 {
     $html = '';
     $this->setAttributes('name', (string) $this->element->element_property->max);
     foreach ($this->element->values->value as $value) {
         $val = (string) $value['data'];
         $this->attributes['checked'] = $val == $this->value ? 'checked' : '';
         $this->attributes['value'] = $val;
         $this->attributes['name'] = $this->name . '[]';
         $this->attributes['id'] = $this->id . '-' . $val;
         $html .= '<div class="left a-center meigee-radio ">
                         <label class="inline">
                              ' . parent::getElementHtml() . (string) $value . '
                         </label>
                     </div>';
     }
     $html .= '</select>';
     return $html;
 }
 function getElementHtml()
 {
     $this->setAttributes('class', 'on-off-selector');
     if ($this->value > 0) {
         $this->setAttributes('checked', 'checked');
     }
     $this->setAttributes('value', (int) $this->value);
     $display_on = !empty($this->element->label_on) ? $this->element->label_on : 'Display';
     $display_off = !empty($this->element->label_off) ? $this->element->label_off : 'Hide';
     return '<div class="input_checkbox">
                 <input class="_input_checkbox_value no-save" value="' . $this->value . '" type="hidden" >
                 <div class="slide pull-right">
                     ' . parent::getElementHtml() . '
                     <label for="' . $this->id . '" class="slider">
                         <label for="' . $this->id . '" class="display on">' . $display_on . '</label>
                         <span class="switch"></span>
                         <label for="' . $this->id . '" class="display off">' . $display_off . '</label>
                     </label>
                 </div>
             </div>';
 }
 function getElementHtml()
 {
     $html = '';
     //      $this->setAttributes('name', (string)$this->element->element_property->max);
     $vertical_class = $this->is_vertical ? 'vertical' : 'left';
     foreach ($this->element->values->value as $value) {
         $src = Mage::getDesign()->getSkinUrl("ajaxkit/images/" . (string) $value['data'] . '.png', array('_default' => true));
         $val = (string) $value['data'];
         $this->attributes['checked'] = $val == $this->value ? 'checked' : '';
         $this->attributes['value'] = $val;
         $this->attributes['id'] = $this->id . '-' . $val;
         $html .= '<div class="a-center meigee-radio ' . $vertical_class . '">
                         <label class="inline">
                             <div class="meigee-thumb ' . ($this->attributes['checked'] ? "active" : '') . '">
                                 <img src="' . $src . '">
                             </div>
                             ' . parent::getElementHtml() . $val . '
                         </label>
                     </div>';
     }
     $html .= '</select>';
     return $html;
 }
Beispiel #7
0
 function getElementHtml()
 {
     $this->setAttributes('class', 'option-text');
     $this->setAttributes('value', $this->value);
     return parent::getElementHtml();
 }