public function __construct() { //Call the parent::__constructor() parent::__construct(); //Here set your own fields. $this->fields = array($this->field('title', 'Title', 'The widget title field.', 'text', 'Enter Title', '', $this->textDomain), $this->field('html', 'Html Body', '', 'html', 'html here...'), $this->field('image', 'Image', '', 'media')); }
public function __construct() { //Call the parent::__constructor() parent::__construct(); //Here set your own fields. $this->fields = array($this->field('image_id', 'Image', '', 'media'), $this->field('icon_id', 'Icon', '', 'media'), $this->field('small_title', 'Small Title'), $this->field('title', 'Title'), $this->field('body', 'Text Body', '', 'textarea'), $this->field('bg_color', 'Background Color', '', array('dataType' => 'input', 'attr' => array('type' => 'color')), '#143260'), $this->field('opacity', 'Background Opacity', '', array('dataType' => 'input', 'attr' => array('type' => 'range', 'min' => '0', 'max' => '1', 'step' => '0.05')), '0.35')); }