monsterinsights_google_auth_error_view

The Google Analytics for WordPress by MonsterInsights monsterinsights google auth error view function.

Description

monsterinsights_google_auth_error_view( (constant) $reauth = false, (string) $error = '' ); 

Parameters (2)

0. $reauth — Optional. (constant) => false
The reauth.
1. $error — Optional. (string) => ''
The error.

Usage

  1. if ( !function_exists( 'monsterinsights_google_auth_error_view' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/includes/admin/googleauth.php'; 
  3.  
  4. // The reauth. 
  5. $reauth = false; 
  6.  
  7. // The error. 
  8. $error = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = monsterinsights_google_auth_error_view($reauth, $error); 
  12.  

Defined (1)

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

/includes/admin/googleauth.php  
  1. function monsterinsights_google_auth_error_view( $reauth = false, $error = '' ) { 
  2. $class = ( $reauth ) ? 'monsterinsights_google_auth_reauth_exit_view' : 'monsterinsights_google_auth_exit_view' ; 
  3. ob_start();  
  4. ?> 
  5. <div class="<?php echo $class; ?>"> 
  6. <?php if ( $reauth ) { ?> 
  7. <div id="monsterinsights_google_auth_box_header"> 
  8. <div class="monsterinsights_google_auth_box_header_reauth"> 
  9. <?php esc_html_e( 'Anerrorhas occured.', 'google-analytics-for-wordpress' ); ?>  
  10. <a href="" class="monsterinsights_google_auth_box_cancel" title="<?php esc_attr_e( 'Exit', 'google-analytics-for-wordpress' ); ?>" >  
  11. <?php esc_html_e( 'Exit', 'google-analytics-for-wordpress' ); ?> 
  12. </a>  
  13. </div> 
  14. </div> 
  15. <?php } ?> 
  16. <div id="monsterinsights_google_auth_box_contents" <?php if ( $reauth ) { echo 'class="monsterinsights_google_auth_reauth"'; } ?> > 
  17. <div class="monsterinsights_google_auth_view_title monsterinsights_google_auth_exit_view_title"><?php esc_html_e( ERROR, 'google-analytics-for-wordpress' ); ?> </div> 
  18. <div class="monsterinsights_google_auth_view_description monsterinsights_google_auth_exit_view_description"><?php echo $error; ?> </div> 
  19. <input type="hidden" id="monsterinsightsreauth" name="monsterinsightsreauth" value="<?php echo ( $reauth) ? 'true' : 'false';?>"> 
  20. <input type="hidden" id="monsterinsightsview" name="monsterinsightsview" value="<?php echo 'done';?>"> 
  21. </div> 
  22. <div id="monsterinsights_google_auth_box_footer"> 
  23. <div id="monsterinsights_google_auth_box_footer_left"> 
  24.   
  25. </div> 
  26. <div id="monsterinsights_google_auth_box_footer_center"> 
  27.   
  28. </div> 
  29. <div id="monsterinsights_google_auth_box_footer_right"> 
  30. <a href="#" id="monsterinsights_google_auth_box_cancel_error" class="monsterinsights_google_auth_box_cancel_error" title="<?php esc_attr_e( 'Exit', 'google-analytics-for-wordpress' ); ?>" > 
  31. <div id="monsterinsights_google_auth_box_footer_right_next"> 
  32. <?php esc_html_e( 'EXIT', 'google-analytics-for-wordpress' ); ?>  
  33. </div> 
  34. </a> 
  35. </div> 
  36. </div> 
  37. </div> 
  38. <?php 
  39. $contents = ob_get_contents(); 
  40. ob_end_clean(); 
  41. return $contents;