gglnltcs_line_chart_tab

The BestWebSoft Google Analytics gglnltcs line chart tab function.

Description

gglnltcs_line_chart_tab( $analytics ); 

Parameters (1)

0. $analytics
The analytics.

Usage

  1. if ( !function_exists( 'gglnltcs_line_chart_tab' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bestwebsoft-google-analytics/bws-google-analytics.php'; 
  3.  
  4. // The analytics. 
  5. $analytics = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = gglnltcs_line_chart_tab($analytics); 
  9.  

Defined (1)

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

/bws-google-analytics.php  
  1. function gglnltcs_line_chart_tab( $analytics ) { 
  2. global $gglnltcs_metrics_data, $gglnltcs_dimensions_data; 
  3. /** Load metrics and dimensions data */ 
  4. /** Main Form */ ?> 
  5. <form id="gglnltcs-main-form" method="post" action="admin.php?page=bws-google-analytics.php"> 
  6. <?php wp_nonce_field( plugin_basename( __FILE__ ), 'gglnltcs_nonce_name' ); ?> 
  7. <table class="gglnltcs"><?php 
  8. /** Print Accounts */  
  9. $func_return = gglnltcs_print_accounts( $analytics ); 
  10. $profile_accounts = $func_return[0]; 
  11. $settings = $func_return[1]; 
  12. $accounts_id = $func_return[2]; 
  13. /** Print Webproperties */ 
  14. gglnltcs_print_webproperties( $analytics, $profile_accounts, $accounts_id, $settings ); ?> 
  15. </table><?php 
  16. /** Print Table for Metrics */ 
  17. gglnltcs_build_table( 'metrics-line-chart', __( 'Metrics', 'gglnltcs' ), $gglnltcs_metrics_data, $settings ); ?> 
  18. <table class="gglnltcs"> 
  19. <tr> 
  20. <th><!-- Empty Field --></th> 
  21. <td class="gglnltcs-get-statistics-cell"><!-- Get Data --> 
  22. <input id="gglnltcs-get-statistics-button-line-chart" type="submit" class="button-secondary" value="<?php _e( 'Get Statistic', 'gglnltcs' ); ?>"> 
  23. <noscript> 
  24. <p class="gglnltcs-unsuccess-message"><?php _e( 'This plugin requires JavaScript to work properly.', 'gglnltcs' ); ?></p> 
  25. </noscript> 
  26. </td> 
  27. </tr> 
  28. </table> 
  29. </form> 
  30. <!-- Line Chart --> 
  31. <div id="gglnltcs-continuous_chart_div_container"> 
  32. <div id="gglnltcs-continuous_chart_div" style="width: 98%; height: 200px;"></div> 
  33. </div> 
  34. <br/> 
  35. <div class="bws-plugin-reviews"> 
  36. <div class="bws-plugin-reviews-rate"> 
  37. <?php _e( 'If you enjoy our plugin, please give it 5 stars on WordPress', 'gglnltcs' ); ?>:  
  38. <a href="http://wordpress.org/support/view/plugin-reviews/bws-google-analytics" target="_blank" title="BestWebSoft Google Analytics reviews"><?php _e( 'Rate the plugin', 'gglnltcs' ); ?></a> 
  39. </div> 
  40. <div class="bws-plugin-reviews-support"> 
  41. <?php _e( 'If there is something wrong about it, please contact us', 'gglnltcs' ); ?>:  
  42. <a href="http://support.bestwebsoft.com">http://support.bestwebsoft.com</a> 
  43. </div> 
  44. </div> 
  45. <?php