nf_output_step_processing_page

Output our step processing admin page.

Description

nf_output_step_processing_page(); 

Usage

  1. if ( !function_exists( 'nf_output_step_processing_page' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/admin/step-processing.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = nf_output_step_processing_page(); 
  7.  

Defined (2)

The function is defined in the following location(s).

/deprecated/includes/admin/step-processing.php  
  1. function nf_output_step_processing_page() { 
  2. $page_title = isset ( $_REQUEST['title'] ) ? urldecode( esc_html ( $_REQUEST['title'] ) ) : __( 'Ninja Forms - Processing', 'ninja-forms' ); 
  3. ?> 
  4. <style> 
  5. .ui-progressbar { 
  6. position: relative; 
  7. width: 800px; 
  8. max-width: 100%; 
  9. height: 20px; 
  10.  
  11.  
  12. .progress-label { 
  13. line-height: 12px; 
  14. position: absolute; 
  15. left: 40%; 
  16. top: 4px; 
  17. font-weight: bold; 
  18. text-shadow: 1px 1px 0 #fff; 
  19.  
  20.  
  21. .ui-progressbar-value { 
  22. /*background-size: 100% auto;*/ 
  23. background-color: #FFF; 
  24. background-repeat: repeat; 
  25. background-image: url(<?php echo NF_PLUGIN_URL . 'assets/images/pbar-ani.gif'; ?>); 
  26.  
  27. </style> 
  28. <script type="text/javascript"> 
  29.  
  30. <?php 
  31. if ( isset ( $_REQUEST['action'] ) && ! empty ( $_REQUEST['action'] ) ) { 
  32. $action = __( 'Loading...', 'ninja-forms' ); 
  33. ?> 
  34. var nfProcessingAction = 'nf_<?php echo esc_html( $_REQUEST['action'] ); ?>'; 
  35. <?php 
  36. } else { 
  37. $action = __( 'No Action Specified...', 'ninja-forms' ); 
  38. ?> 
  39. var nfProcessingAction = 'none'; 
  40. <?php 
  41.  
  42. $tmp_array = array(); 
  43. $url_params = parse_url( esc_url_raw( add_query_arg( array() ) ) ); 
  44. $query = $url_params['query']; 
  45. $query = parse_str( $query, $tmp_array ); 
  46. unset ( $tmp_array['action'] ); 
  47. unset ( $tmp_array['page'] ); 
  48. ?> 
  49.  
  50. var nfProcessingArgs = <?php echo json_encode( $tmp_array ); ?> 
  51.  
  52. </script> 
  53.  
  54. <?php 
  55.  
  56. ?> 
  57.  
  58. <div class="wrap"> 
  59. <h2><?php echo $page_title ?></h2> 
  60. <div id="nf-upgrade-status"> 
  61. <p><?php _e( 'The process has started, please be patient. This could take several minutes. You will be automatically redirected when the process is finished.', 'ninja-forms' ); ?></p> 
  62. <div id="progressbar"> 
  63. <div class="progress-label"> 
  64. <?php echo $action; ?> 
  65. </div> 
  66. </div> 
  67. </div> 
  68. </div> 
  69.  
  70. <!-- DISPLAY ERRORS --> 
  71. <div id="nf-upgrade-errors" class="hidden nf-upgrade-errors"> 
  72.  
  73. <h3 class="nf-upgrade-errors-header">Error Log</h3> 
  74.  
  75. <ul class="nf-upgrade-errors-list"></ul> 
  76.  
  77. </div> 
  78.  
  79. <?php 
/lib/StepProcessing/menu.php  
  1. function nf_output_step_processing_page() { 
  2. $page_title = isset ( $_REQUEST['title'] ) ? urldecode( esc_html ( $_REQUEST['title'] ) ) : __( 'Ninja Forms - Processing', 'ninja-forms' ); 
  3. ?> 
  4. <style> 
  5. .ui-progressbar { 
  6. position: relative; 
  7. width: 800px; 
  8. max-width: 100%; 
  9. height: 20px; 
  10.  
  11.  
  12. .progress-label { 
  13. line-height: 12px; 
  14. position: absolute; 
  15. left: 40%; 
  16. top: 4px; 
  17. font-weight: bold; 
  18. text-shadow: 1px 1px 0 #fff; 
  19.  
  20.  
  21. .ui-progressbar-value { 
  22. /*background-size: 100% auto;*/ 
  23. background-color: #FFF; 
  24. background-repeat: repeat; 
  25. background-image: url(<?php echo NF_PLUGIN_URL . 'assets/img/pbar-ani.gif'; ?>); 
  26.  
  27. </style> 
  28. <script type="text/javascript"> 
  29.  
  30. <?php 
  31. if ( isset ( $_REQUEST['action'] ) && ! empty ( $_REQUEST['action'] ) ) { 
  32. $action = __( 'Loading...', 'ninja-forms' ); 
  33. ?> 
  34. var nfProcessingAction = 'nf_<?php echo esc_html( $_REQUEST['action'] ); ?>'; 
  35. <?php 
  36. } else { 
  37. $action = __( 'No Action Specified...', 'ninja-forms' ); 
  38. ?> 
  39. var nfProcessingAction = 'none'; 
  40. <?php 
  41.  
  42. $tmp_array = array(); 
  43. $url_params = parse_url( esc_url_raw( add_query_arg( array() ) ) ); 
  44. $query = $url_params['query']; 
  45. $query = parse_str( $query, $tmp_array ); 
  46. unset ( $tmp_array['action'] ); 
  47. unset ( $tmp_array['page'] ); 
  48. ?> 
  49.  
  50. var nfProcessingArgs = <?php echo json_encode( $tmp_array ); ?> 
  51.  
  52. </script> 
  53.  
  54. <?php 
  55.  
  56. ?> 
  57.  
  58. <div class="wrap"> 
  59. <h2><?php echo $page_title ?></h2> 
  60. <div id="nf-upgrade-status"> 
  61. <p><?php _e( 'The process has started, please be patient. This could take several minutes. You will be automatically redirected when the process is finished.', 'ninja-forms' ); ?></p> 
  62. <div id="progressbar"> 
  63. <div class="progress-label"> 
  64. <?php echo $action; ?> 
  65. </div> 
  66. </div> 
  67. </div> 
  68. </div> 
  69.  
  70. <!-- DISPLAY ERRORS --> 
  71. <div id="nf-upgrade-errors" class="hidden nf-upgrade-errors"> 
  72.  
  73. <h3 class="nf-upgrade-errors-header">Error Log</h3> 
  74.  
  75. <ul class="nf-upgrade-errors-list"></ul> 
  76.  
  77. </div> 
  78.  
  79. <?php