gmb_system_info_callback

Display the system info tab.

Description

gmb_system_info_callback(); 

Usage

  1. if ( !function_exists( 'gmb_system_info_callback' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'maps-builder/includes/admin/system-info.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gmb_system_info_callback(); 
  7.  

Defined (2)

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

/includes/admin/system-info.php  
  1. function gmb_system_info_callback() { 
  2.  
  3. if ( ! current_user_can( 'install_plugins' ) ) { 
  4. return; 
  5.  
  6. ?> 
  7. <textarea readonly="readonly" onclick="this.focus(); this.select()" id="system-info-textarea" name="gmb-sysinfo" title="To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac)."><?php echo gmb_tools_sysinfo_get(); ?></textarea> 
  8. <p class="submit"> 
  9. <input type="hidden" name="gmb_action" value="download_sysinfo" /> 
  10. <?php submit_button( __( 'Download System Info File', 'google-maps-builder' ), 'secondary', 'gmb-download-sysinfo', false ); ?> 
  11. </p> 
  12. <style> 
  13. .gmb_forms_page_gmb-settings .gmb-submit-wrap { 
  14. display: none; /* Hide Save settings button on System Info Tab (not needed) */ 
  15. </style> 
  16. <?php 
/vendor/wordimpress/maps-builder-core/includes/admin/system-info.php  
  1. function gmb_system_info_callback() { 
  2.  
  3. if ( ! current_user_can( 'install_plugins' ) ) { 
  4. return; 
  5.  
  6. ?> 
  7. <textarea readonly="readonly" onclick="this.focus(); this.select()" id="system-info-textarea" name="gmb-sysinfo" title="To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac)."><?php echo gmb_tools_sysinfo_get(); ?></textarea> 
  8. <p class="submit"> 
  9. <input type="hidden" name="gmb_action" value="download_sysinfo" /> 
  10. <?php submit_button( __( 'Download System Info File', 'google-maps-builder' ), 'secondary', 'gmb-download-sysinfo', false ); ?> 
  11. </p> 
  12. <style> 
  13. .gmb_forms_page_gmb-settings .gmb-submit-wrap { 
  14. display: none; /* Hide Save settings button on System Info Tab (not needed) */ 
  15. </style> 
  16. <?php