Google Analyticator - Version 4.3.2

Version Description

  • Adds support for WordPress' new changelog readme.txt standard. Version information is now available from within the plugin updater.
  • Enhances the links on the plugin page. Adds a settings, FAQ, and support link.
Download this release

Release Info

Developer cavemonkey50
Plugin Icon 128x128 Google Analyticator
Version 4.3.2
Comparing to
See all releases

Code changes from version 4.3.1 to 4.3.2

Files changed (2) hide show
  1. google-analyticator.php +30 -4
  2. readme.txt +7 -2
google-analyticator.php CHANGED
@@ -1,14 +1,14 @@
1
<?php
2
/*
3
* Plugin Name: Google Analyticator
4
- * Version: 4.3.1
5
* Plugin URI: http://plugins.spiralwebconsulting.com/analyticator.html
6
* Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin visit <a href="options-general.php?page=google-analyticator.php">the settings page</a> and enter your Google Analytics' UID and enable logging.
7
* Author: Spiral Web Consulting
8
* Author URI: http://spiralwebconsulting.com/
9
*/
10
11
- define('GOOGLE_ANALYTICATOR_VERSION', '4.3.1');
12
13
# Include Google Analytics Stats widget
14
if ( function_exists('curl_init') ) {
@@ -113,9 +113,26 @@ function add_ga_option_page() {
113
114
add_action('plugin_action_links_' . plugin_basename(__FILE__), 'ga_filter_plugin_actions');
115
116
- // Adds FAQ and changelog options
117
function ga_filter_plugin_actions($links) {
118
- $links[] = '<a href="http://plugins.spiralwebconsulting.com/forums/viewforum.php?f=5">FAQ</a>';
119
120
return $links;
121
}
@@ -223,6 +240,15 @@ function ga_options_page() {
223
<form method="post" action="options-general.php?page=google-analyticator.php">
224
<h2>Google Analyticator Settings</h2>
225
226
<p><em>
227
Google Analyticator is brought to you for free by <a href="http://spiralwebconsulting.com/">Spiral Web Consulting</a>. Spiral Web Consulting is a small web development firm specializing in PHP development. Visit our website to learn more, and don't hesitate to ask us to develop your next big WordPress plugin idea.
228
</em></p>
1
<?php
2
/*
3
* Plugin Name: Google Analyticator
4
+ * Version: 4.3.2
5
* Plugin URI: http://plugins.spiralwebconsulting.com/analyticator.html
6
* Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin visit <a href="options-general.php?page=google-analyticator.php">the settings page</a> and enter your Google Analytics' UID and enable logging.
7
* Author: Spiral Web Consulting
8
* Author URI: http://spiralwebconsulting.com/
9
*/
10
11
+ define('GOOGLE_ANALYTICATOR_VERSION', '4.3.2');
12
13
# Include Google Analytics Stats widget
14
if ( function_exists('curl_init') ) {
113
114
add_action('plugin_action_links_' . plugin_basename(__FILE__), 'ga_filter_plugin_actions');
115
116
+ // Add settings option
117
function ga_filter_plugin_actions($links) {
118
+ $new_links = array();
119
+
120
+ $new_links[] = '<a href="options-general.php?page=google-analyticator.php">Settings</a>';
121
+
122
+ return array_merge($new_links, $links);
123
+ }
124
+
125
+ add_filter('plugin_row_meta', 'ga_filter_plugin_links', 10, 2);
126
+
127
+ // Add FAQ and support information
128
+ function ga_filter_plugin_links($links, $file)
129
+ {
130
+ if ( $file == plugin_basename(__FILE__) )
131
+ {
132
+ $links[] = '<a href="http://plugins.spiralwebconsulting.com/forums/viewforum.php?f=5">FAQ</a>';
133
+ $links[] = '<a href="http://plugins.spiralwebconsulting.com/forums/viewforum.php?f=6">Support</a>';
134
+ $links[] = '<a href="http://plugins.spiralwebconsulting.com/analyticator.html#donate">Donate</a>';
135
+ }
136
137
return $links;
138
}
240
<form method="post" action="options-general.php?page=google-analyticator.php">
241
<h2>Google Analyticator Settings</h2>
242
243
+ <div style="float: right;">
244
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
245
+ <input type="hidden" name="cmd" value="_s-xclick">
246
+ <input type="hidden" name="hosted_button_id" value="6309412">
247
+ <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
248
+ <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
249
+ </form>
250
+ </div>
251
+
252
<p><em>
253
Google Analyticator is brought to you for free by <a href="http://spiralwebconsulting.com/">Spiral Web Consulting</a>. Spiral Web Consulting is a small web development firm specializing in PHP development. Visit our website to learn more, and don't hesitate to ask us to develop your next big WordPress plugin idea.
254
</em></p>
readme.txt CHANGED
@@ -1,9 +1,10 @@
1
=== Google Analyticator ===
2
Contributors: cavemonkey50, jesse_altman, spiralwebconsulting
3
Tags: stats, statistics, google, analytics, google analytics, tracking, widget
4
Requires at least: 2.7
5
Tested up to: 2.8
6
- Stable tag: 4.3.1
7
8
Adds the necessary JavaScript code to enable Google Analytics.
9
@@ -42,7 +43,11 @@ Please visit [Spiral Web Consulting's forum](http://plugins.spiralwebconsulting.
42
43
Please visit the [Google Analyticator plugin page](http://plugins.spiralwebconsulting.com/analyticator.html#screenshots) for the latest screenshots.
44
45
- == Changelog ==
46
47
= 4.3.1 =
48
* Fixes a bug that broke the widget page when a username was not entered in settings.
1
=== Google Analyticator ===
2
Contributors: cavemonkey50, jesse_altman, spiralwebconsulting
3
+ Donate link: http://plugins.spiralwebconsulting.com/analyticator.html#donate
4
Tags: stats, statistics, google, analytics, google analytics, tracking, widget
5
Requires at least: 2.7
6
Tested up to: 2.8
7
+ Stable tag: 4.3.2
8
9
Adds the necessary JavaScript code to enable Google Analytics.
10
43
44
Please visit the [Google Analyticator plugin page](http://plugins.spiralwebconsulting.com/analyticator.html#screenshots) for the latest screenshots.
45
46
+ == Changelog ==
47
+
48
+ = 4.3.2 =
49
+ * Adds support for WordPress' new changelog readme.txt standard. Version information is now available from within the plugin updater.
50
+ * Enhances the links on the plugin page. Adds a settings, FAQ, and support link.
51
52
= 4.3.1 =
53
* Fixes a bug that broke the widget page when a username was not entered in settings.