/deprecated/includes/admin/pages/ninja-forms/tabs/field-settings/edit-field-ul.php

  1. <?php if ( ! defined( 'ABSPATH' ) ) exit; 
  2. add_action( 'ninja_forms_edit_field_ul', 'ninja_forms_edit_field_output_ul' ); 
  3. function ninja_forms_edit_field_output_ul( $form_id ) { 
  4. $fields = ninja_forms_get_fields_by_form_id( $form_id ); 
  5. ?> 
  6. <div id="ninja-forms-viewport"> 
  7. <input class="button-primary menu-save nf-save-admin-fields" id="ninja_forms_save_data_top" type="button" value="<?php _e('Save', 'ninja-forms'); ?>" /> 
  8. <a href="#" class="button-secondary nf-save-spinner" style="display:none;" disabled><span class="spinner nf-save-spinner" style="float:left;"></span></a> 
  9. <ul class="menu ninja-forms-field-list" id="ninja_forms_field_list"> 
  10. <?php 
  11. if( is_array( $fields ) AND !empty( $fields ) ) { 
  12. foreach( $fields as $field ) { 
  13. ninja_forms_edit_field( $field['id'] ); 
  14. ?> 
  15. </ul> 
  16.  
  17. <input class="button-primary menu-save nf-save-admin-fields" id="ninja_forms_save_data_bot" type="button" value="<?php _e('Save', 'ninja-forms'); ?>" /> 
  18. <a href="#" class="button-secondary nf-save-spinner" style="display:none;" disabled><span class="spinner nf-save-spinner" style="float:left;"></span></a> 
  19. </div> 
  20. <?php 
  21.  
.