public static function init_fields() { if (self::$fields) { retuirn; } self::$fields = apply_filters('dln_submit_product_fields', array('basic' => array(array('id' => 'source_link', 'label' => __('FB Link', DLN_VVF), 'type' => 'fetch-source', 'value' => '', 'placeholder' => __('FB Link', DLN_VVF)), array('id' => 'source_title', 'label' => __('Title', DLN_VVF), 'type' => 'text', 'value' => '', 'placeholder' => __('Source Title', DLN_VVF)), array('id' => 'source_category', 'label' => __('Category', DLN_PRO), 'type' => 'select', 'class' => 'dln-selectize', 'value' => '', 'options' => self::get_category_options(), 'required' => true), array('id' => 'source_tag', 'label' => __('Tag', DLN_PRO), 'type' => 'select', 'class' => 'dln-selectize-create', 'value' => '', 'options' => self::get_tag_options(), 'required' => false, 'multiple' => true)))); }
<?php echo balanceTags(DLN_Controller_Source_Submit::get_field('basic', 'source_title')); ?> </div> <div class="line line-dashed b-b line-lg pull-in"></div> <div class="form-group"> <?php echo balanceTags(DLN_Controller_Source_Submit::get_field('basic', 'source_category')); ?> </div> <div class="line line-dashed b-b line-lg pull-in"></div> <div class="form-group"> <?php echo balanceTags(DLN_Controller_Source_Submit::get_field('basic', 'source_tag')); ?> </div> <div class="line line-dashed b-b line-lg pull-in"></div> <div class="form-group"> <div class="col-sm-4 col-sm-offset-2"> <button type="submit" class="btn btn-default"><?php _e('Cancel', DLN_VVF); ?> </button> <button type="submit" class="btn btn-primary"><?php _e('Submit', DLN_VVF); ?> </button> </div>