monsterinsights_google_auth_done_view

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

Description

monsterinsights_google_auth_done_view( (bool) $reauth = false ); 

Parameters (1)

0. $reauth — Optional. (bool) => false
The reauth.

Usage

  1. if ( !function_exists( 'monsterinsights_google_auth_done_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. // NOTICE! Understand what this does before running. 
  8. $result = monsterinsights_google_auth_done_view($reauth); 
  9.  

Defined (1)

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

/includes/admin/googleauth.php  
  1. function monsterinsights_google_auth_done_view( $reauth = false ) { 
  2. $class = ( $reauth ) ? 'monsterinsights_google_auth_reauth_done_view' : 'monsterinsights_google_auth_done_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( 'Your Google connection has been replaced.', 'google-analytics-for-wordpress' ); ?>  
  10. </div> 
  11. </div> 
  12. <?php } ?> 
  13. <div id="monsterinsights_google_auth_box_contents" <?php if ( $reauth ) { echo 'class="monsterinsights_google_auth_reauth"'; } ?> > 
  14. <div class="monsterinsights_google_auth_view_title monsterinsights_google_auth_start_view_title"><?php esc_html_e( 'DONE', 'google-analytics-for-wordpress' ); ?> </div> 
  15. <div class="monsterinsights_google_auth_view_description monsterinsights_google_auth_start_view_description"><?php esc_html_e( 'You\'re all set!', 'google-analytics-for-wordpress' ); ?> </div> 
  16. <input type="hidden" id="monsterinsightsreauth" name="monsterinsightsreauth" value="<?php echo ( $reauth) ? 'true' : 'false';?>"> 
  17. <input type="hidden" id="monsterinsightsview" name="monsterinsightsview" value="<?php echo 'done';?>"> 
  18. </div> 
  19. <div id="monsterinsights_google_auth_box_footer"> 
  20. <div id="monsterinsights_google_auth_box_footer_left"> 
  21.   
  22. </div> 
  23. <div id="monsterinsights_google_auth_box_footer_center"> 
  24.   
  25. </div> 
  26. <div id="monsterinsights_google_auth_box_footer_right"> 
  27. <a href="#" id="monsterinsights_google_auth_box_done" class="monsterinsights_google_auth_box_done" title="<?php esc_attr_e( 'Save and close', 'google-analytics-for-wordpress' ); ?>" > 
  28. <div id="monsterinsights_google_auth_box_footer_right_next"> 
  29. <?php esc_html_e( 'CLOSE', 'google-analytics-for-wordpress' ); ?>  
  30. </div> 
  31. </a> 
  32. </div> 
  33. </div> 
  34. </div> 
  35. <?php 
  36. $contents = ob_get_contents(); 
  37. ob_end_clean(); 
  38. return $contents;