Version Description
- Fix for another "possible" error.
Download this release
Release Info
Developer | joostdevalk |
Plugin | Clicky by Yoast |
Version | 1.4.1.3 |
Comparing to | |
See all releases |
Code changes from version 1.4.1.2 to 1.4.1.3
- clicky.php +6 -10
- readme.txt +5 -1
clicky.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Clicky for WordPress
|
4 |
-
Version: 1.4.1.
|
5 |
Plugin URI: http://getclicky.com/goodies/#wordpress
|
6 |
Description: Integrates Clicky on your blog!
|
7 |
Author: Joost de Valk
|
@@ -220,17 +220,13 @@ if ( ! class_exists( 'Clicky_Admin' ) ) {
|
|
220 |
}
|
221 |
|
222 |
function stats_admin_bar_head() {
|
223 |
-
// if ( function_exists( 'is_admin_bar_showing' ) && !is_admin_bar_showing() ) {
|
224 |
-
// return;
|
225 |
-
// }
|
226 |
-
|
227 |
add_action( 'admin_bar_menu', array(&$this, 'stats_admin_bar_menu'), 1200 );
|
228 |
?>
|
229 |
|
230 |
<style type='text/css'>
|
231 |
-
#wpadminbar .quicklinks li#wp-admin-bar-
|
232 |
-
#wpadminbar .quicklinks li#wp-admin-bar-
|
233 |
-
#wpadminbar .quicklinks li#wp-admin-bar-
|
234 |
}
|
235 |
</style>
|
236 |
<?php
|
@@ -245,7 +241,7 @@ if ( ! class_exists( 'Clicky_Admin' ) ) {
|
|
245 |
|
246 |
$title = __( 'Visitors over 48 hours. Click for more Clicky Site Stats.', 'clicky' );
|
247 |
|
248 |
-
$menu = array( 'id' => '
|
249 |
|
250 |
$wp_admin_bar->add_menu( $menu );
|
251 |
}
|
@@ -255,7 +251,7 @@ if ( ! class_exists( 'Clicky_Admin' ) ) {
|
|
255 |
|
256 |
$resp = wp_remote_get("http://api.getclicky.com/api/stats/4?site_id=".$options['site_id']."&sitekey=".$options['site_key']."&type=visitors&hourly=1&date=last-3-days");
|
257 |
|
258 |
-
if ( !isset($resp['response']['code']) || $resp['response']['code'] != 200 )
|
259 |
return;
|
260 |
|
261 |
$xml = simplexml_load_string( $resp['body'] );
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Clicky for WordPress
|
4 |
+
Version: 1.4.1.3
|
5 |
Plugin URI: http://getclicky.com/goodies/#wordpress
|
6 |
Description: Integrates Clicky on your blog!
|
7 |
Author: Joost de Valk
|
220 |
}
|
221 |
|
222 |
function stats_admin_bar_head() {
|
|
|
|
|
|
|
|
|
223 |
add_action( 'admin_bar_menu', array(&$this, 'stats_admin_bar_menu'), 1200 );
|
224 |
?>
|
225 |
|
226 |
<style type='text/css'>
|
227 |
+
#wpadminbar .quicklinks li#wp-admin-bar-clickystats {height:28px}
|
228 |
+
#wpadminbar .quicklinks li#wp-admin-bar-clickystats a {height:28px;padding:0}
|
229 |
+
#wpadminbar .quicklinks li#wp-admin-bar-clickystats a img {padding:4px 5px; height: 20px; width: 99px;
|
230 |
}
|
231 |
</style>
|
232 |
<?php
|
241 |
|
242 |
$title = __( 'Visitors over 48 hours. Click for more Clicky Site Stats.', 'clicky' );
|
243 |
|
244 |
+
$menu = array( 'id' => 'clickystats', 'title' => "<img width='99' height='20' src='$img_src' alt='$title' title='$title' />", 'href' => $url );
|
245 |
|
246 |
$wp_admin_bar->add_menu( $menu );
|
247 |
}
|
251 |
|
252 |
$resp = wp_remote_get("http://api.getclicky.com/api/stats/4?site_id=".$options['site_id']."&sitekey=".$options['site_key']."&type=visitors&hourly=1&date=last-3-days");
|
253 |
|
254 |
+
if ( is_wp_error($resp) || !isset($resp['response']['code']) || $resp['response']['code'] != 200 )
|
255 |
return;
|
256 |
|
257 |
$xml = simplexml_load_string( $resp['body'] );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://yoast.com/donate/
|
|
4 |
Tags: analytics, statistics, clicky, getclicky, affiliate, outbound links, analysis, Joost de Valk, Yoast
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.3
|
7 |
-
Stable tag: 1.4.1.
|
8 |
|
9 |
Integrates the Clicky (from getClicky.com) web analytics service into your blog.
|
10 |
|
@@ -38,6 +38,10 @@ Read the authors [review of Clicky Analytics](http://yoast.com/clicky-analytics-
|
|
38 |
|
39 |
== Changelog ==
|
40 |
|
|
|
|
|
|
|
|
|
41 |
= 1.4.1.2 =
|
42 |
|
43 |
* Fixed divide by zero on site with empty stats.
|
4 |
Tags: analytics, statistics, clicky, getclicky, affiliate, outbound links, analysis, Joost de Valk, Yoast
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.3
|
7 |
+
Stable tag: 1.4.1.3
|
8 |
|
9 |
Integrates the Clicky (from getClicky.com) web analytics service into your blog.
|
10 |
|
38 |
|
39 |
== Changelog ==
|
40 |
|
41 |
+
= 1.4.1.3 =
|
42 |
+
|
43 |
+
* Fix for another "possible" error.
|
44 |
+
|
45 |
= 1.4.1.2 =
|
46 |
|
47 |
* Fixed divide by zero on site with empty stats.
|