monsterinsights_google_auth_selectprofile_view

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

Description

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

Parameters (3)

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

Usage

  1. if ( !function_exists( 'monsterinsights_google_auth_selectprofile_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 selectprofile. 
  8. $selectprofile = ''; 
  9.  
  10. // The error. 
  11. $error = ''; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = monsterinsights_google_auth_selectprofile_view($reauth, $selectprofile, $error); 
  15.  

Defined (1)

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

/includes/admin/googleauth.php  
  1. function monsterinsights_google_auth_selectprofile_view( $reauth = false, $selectprofile = '', $error = '' ) { 
  2. $class = ( $reauth ) ? 'monsterinsights_google_auth_reauth_selectprofile_view' : 'monsterinsights_google_auth_selectprofile_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( 'This process will replace your current Google Analytics connection.', 'google-analytics-for-wordpress' ); ?>  
  10. <a href="" class="monsterinsights_google_auth_box_cancel" title="<?php esc_attr_e( 'Cancel', 'google-analytics-for-wordpress' ); ?>" >  
  11. <?php esc_html_e( 'Cancel', '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.  
  18. <div class="monsterinsights_google_auth_view_title monsterinsights_google_auth_start_view_title"><?php esc_html_e( 'SELECT PROFILE', 'google-analytics-for-wordpress' ); ?> </div> 
  19. <div class="monsterinsights_google_auth_view_description monsterinsights_google_auth_start_view_description"><?php esc_html_e( 'Select the Google Analytics Profile to Use', 'google-analytics-for-wordpress' ); ?> </div> 
  20. <?php echo $selectprofile; ?> 
  21. <input type="hidden" id="monsterinsightsreauth" name="monsterinsightsreauth" value="<?php echo ( $reauth) ? 'true' : 'false';?>"> 
  22. <input type="hidden" id="monsterinsightsview" name="monsterinsightsview" value="<?php echo 'selectprofile';?>"> 
  23. <?php if ( ! empty( $error ) ) { ?> 
  24. <div class="monsterinsights_google_auth_selectprofile_error notice notice-warning" style="margin:0px;padding:0px;"><p><?php esc_html_e( $error ); ?><p></div> 
  25. <?php } ?> 
  26. </div> 
  27. <div id="monsterinsights_google_auth_box_footer"> 
  28. <div id="monsterinsights_google_auth_box_footer_left"> 
  29. <a href="#" class="monsterinsights_google_auth_box_cancel" title="<?php esc_attr_e( 'Cancel', 'google-analytics-for-wordpress' ); ?>" > <?php esc_html_e( 'CANCEL', 'google-analytics-for-wordpress' ); ?></a>  
  30. </div> 
  31. <div id="monsterinsights_google_auth_box_footer_center"> 
  32.   
  33. </div> 
  34. <div id="monsterinsights_google_auth_box_footer_right"> 
  35. <a href="#" id="monsterinsights_google_auth_box_next" class="monsterinsights_google_auth_box_next" title="<?php esc_attr_e( 'Next', 'google-analytics-for-wordpress' ); ?>" > 
  36. <div id="monsterinsights_google_auth_box_footer_right_next"> 
  37. <?php esc_html_e( 'NEXT', 'google-analytics-for-wordpress' ); ?>  
  38. </div> 
  39. </a> 
  40. </div> 
  41. </div> 
  42. </div> 
  43. <?php 
  44. $contents = ob_get_contents(); 
  45. ob_end_clean(); 
  46. return $contents;