/** * Function to customize fields source category when edit * * @param array $term * @param array $taxonomy */ public static function edit_source_cat_fields($term, $taxonomy) { $source = DLN_Helper_Source::select_source($term->term_id); $source_link = !empty($source->link) ? $source->link : ''; $source_type = !empty($source->type) ? $source->type : ''; ?> <tr class="form-field"> <th scope="row" valign="top"><label for="dln_source_link"><?php _e('Link', DLN_NEW); ?> </label></th> <td> <input id="dln_source_link" name="dln_source_link" type="text" value="<?php echo esc_attr($source_link); ?> " size="40" /> </td> </tr> <tr class="form-field"> <th scope="row" valign="top"><label for="dln_source_type"><?php _e('Type', DLN_NEW); ?> </label></th> <td> <input id="dln_source_type" name="dln_source_type" type="text" value="<?php echo esc_attr($source_type); ?> " size="40" /> </td> </tr> <?php }