Ejemplo n.º 1
0
 public static function init_fields()
 {
     if (self::$fields) {
         retuirn;
     }
     self::$fields = apply_filters('dln_submit_photo_fields', array('basic' => array(array('id' => 'product_img', 'label' => __('Photo', DLN_ABE), 'type' => 'select-photo'), array('id' => 'product_title', 'label' => __('Title', DLN_ABE), 'type' => 'text', 'value' => '', 'placeholder' => __('Product Title', DLN_ABE), 'required' => true), array('id' => 'product_category', 'label' => __('Category', DLN_ABE), 'type' => 'select', 'class' => 'dln-selectize', 'value' => '', 'options' => self::get_category_options(), 'required' => true), array('id' => 'product_price', 'label' => __('Price', DLN_ABE), 'type' => 'text-append', 'value' => '', 'placeholder' => __('', DLN_ABE), 'required' => true, 'append' => __('.000 vnđ', DLN_ABE), 'input_type' => 'number'), array('id' => 'product_desc', 'label' => __('Description', DLN_ABE), 'type' => 'textcomplete', 'class' => 'dln-textcomplete', 'value' => '', 'rows' => '4'), array('id' => 'product_tag', 'label' => __('Tag', DLN_ABE), 'type' => 'select', 'class' => 'dln-selectize-create', 'value' => '', 'options' => self::get_tag_options(), 'required' => false, 'multiple' => true))));
 }