Exemple #1
0
 public function admin(EasyBlogTableField &$field)
 {
     // Get multiple select options
     $theme = EB::template();
     // Get the field params
     $params = $field->getParams();
     $theme->set('params', $params);
     $output = $theme->output('admin/fields/types/admin/select');
     $theme = EB::template();
     // Get the options
     $options = $this->getOptions($field);
     $theme->set('formElement', $this->formElement);
     $theme->set('element', $this->element);
     $theme->set('options', $options);
     $theme->set('field', $field);
     $output .= $theme->output('admin/fields/types/admin/options');
     return $output;
 }
Exemple #2
0
 /**
  * Renders the form options for the date field in the admin area
  *
  * @since   5.0
  * @access  public
  * @param   string
  * @return
  */
 public function admin(EasyBlogTableField &$field)
 {
     $theme = EB::template();
     // Get options
     $options = json_decode($field->options);
     // If there's no value, define a standard value
     if (empty($options)) {
         $option = new stdClass();
         $option->title = '';
         $option->value = '';
         $options = array($option);
     }
     $theme->set('params', $field->getParams());
     $theme->set('options', $options);
     $theme->set('field', $field);
     $output = $theme->output('admin/fields/types/admin/date');
     return $output;
 }
Exemple #3
0
 public function admin(EasyBlogTableField &$field)
 {
     $theme = EB::template();
     // Get options
     $options = json_decode($field->options);
     // If there's no value, define a standard value
     if (empty($options)) {
         $option = new stdClass();
         $option->title = '';
         $option->value = '';
         $options = array($option);
     }
     // Get the params for this field.
     $params = $field->getParams();
     $theme->set('formElement', $this->formElement);
     $theme->set('params', $params);
     $theme->set('element', $this->element);
     $theme->set('options', $options);
     $theme->set('field', $field);
     $output = $theme->output('admin/fields/types/admin/textarea');
     return $output;
 }