public function getFormElement()
 {
     $this->type = 'file';
     $this->element_params = isset($this->params['element_property']) ? (array) $this->params['element_property'] : array();
     $value = $this->getConfigValue();
     if (!empty($value)) {
         $baseUrl = Mage::getConfig()->substDistroServerVars('{{base_url}}');
         $this->before_html = '<div class="meigee-thumb"><img src="' . $baseUrl . $value . '" /></div>';
         $this->after_html = '<p><label class="inline"><input type="checkbox" name="delete::' . $this->getConfigId() . '" value="' . $value . '" />Delete<label></p>';
     }
     return parent::getFormElement();
 }
Esempio n. 2
0
 public function getFormElement()
 {
     $this->type = 'hidden';
     $value = $this->getConfigValue();
     $this->element_params += array('class' => '_input_checkbox_value thememanagerFormSelect', 'data-value' => $this->params['data_values'], 'value' => $value);
     $checked = '__empty__' != $value ? 'checked="checked"' : '';
     $id = 'check-' . $this->getConfigId();
     $html = '<div class="input_checkbox">';
     $html .= parent::getFormElement();
     $html .= '<div class="slide pull-right">
                 <input type="checkbox"  id="' . $id . '" ' . $checked . ' onchange="setInputCheckboxChanged(this);" class="thememanagerFormSelect" value="' . $value . '" />
                 <label for="' . $id . '" class="slider">
                 <label for="' . $id . '" class="display on">Display</label>
                 <span class="switch"></span>
                 <label for="' . $id . '" class="display off">Hide</label>
               </label>
             </div>
             </div>
             ';
     return $html;
 }
 public function getFormElement()
 {
     $this->type = 'range';
     $this->element_params = isset($this->params['element_property']) ? (array) $this->params['element_property'] : array();
     return parent::getFormElement();
 }