Statify - Version 1.8.2

Version Description

Download this release

Release Info

Developer patrickrobrecht
Plugin Icon 128x128 Statify
Version 1.8.2
Comparing to
See all releases

Code changes from version 1.8.1 to 1.8.2

CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
  # Changelog
2
  All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
3
 
 
 
 
 
4
  ## 1.8.1
5
  * Fix AMP compatibility for Standard and Transitional mode (#181) (#182)
6
  * JavaScript is no longer embedded if request is served by AMP (#181) (#182)
1
  # Changelog
2
  All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
3
 
4
+ ## 1.8.2
5
+ * Minor adjustments for the dashboard widget (#197) (#199)
6
+ * Tested up to WordPress 5.7
7
+
8
  ## 1.8.1
9
  * Fix AMP compatibility for Standard and Transitional mode (#181) (#182)
10
  * JavaScript is no longer embedded if request is served by AMP (#181) (#182)
css/dashboard.css CHANGED
@@ -1,14 +1,14 @@
1
  /* @group Front page */
2
 
3
  #statify_chart {
4
- color: #aaa;
 
5
  direction: rtl;
6
  height: 140px;
7
  margin: 0 -4px;
8
  overflow-x: auto;
9
  overflow-y: hidden;
10
  text-align: center;
11
- width: 100%;
12
  }
13
 
14
  #statify_chart_data {
@@ -23,18 +23,18 @@
23
  }
24
 
25
  #statify_chart .ct-line {
26
- stroke: #0074a2;
27
  stroke-width: 2px;
28
  }
29
 
30
  #statify_chart .ct-point {
31
  fill: #fff;
32
- stroke: #0074a2;
33
  stroke-width: 1.5px;
34
  }
35
 
36
  #statify_chart .ct-area {
37
- fill: #0074a2;
38
  }
39
 
40
  .statify-chartist-tooltip {
@@ -49,7 +49,7 @@
49
  }
50
 
51
  .statify-chartist-tooltip .chartist-tooltip-meta {
52
- color: #0074a2;
53
  }
54
 
55
  #statify_dashboard .postbox-title-action a,
@@ -60,6 +60,8 @@
60
  }
61
 
62
  #statify_dashboard .inside {
 
 
63
  height: 1%;
64
  margin: 0;
65
  padding-bottom: 0;
@@ -72,7 +74,7 @@
72
  }
73
 
74
  #statify_dashboard .table p.sub {
75
- color: #bbb;
76
  margin: 0 0 -4px;
77
  }
78
 
@@ -80,20 +82,13 @@
80
  overflow: hidden;
81
  }
82
 
83
- #statify_dashboard .table.referrer {
84
- float: left;
85
- width: 45%;
86
- }
87
-
88
  #statify_dashboard .table.target {
89
- float: right;
90
- width: 55%;
91
  }
92
 
93
  #statify_dashboard .table.total {
94
- clear: both;
95
- float: left;
96
- width: 45%;
97
  }
98
 
99
  #statify_dashboard td {
@@ -104,7 +99,7 @@
104
  #statify_dashboard td.b {
105
  text-align: right;
106
  padding-right: 4px;
107
- color: #777;
108
  }
109
 
110
  #statify_dashboard label {
@@ -118,6 +113,7 @@
118
  /* @group Back stage */
119
 
120
  #statify_dashboard form {
 
121
  padding: 18px 0;
122
  }
123
 
1
  /* @group Front page */
2
 
3
  #statify_chart {
4
+ color: #a7aaad;
5
+ flex: 0 0 100%;
6
  direction: rtl;
7
  height: 140px;
8
  margin: 0 -4px;
9
  overflow-x: auto;
10
  overflow-y: hidden;
11
  text-align: center;
 
12
  }
13
 
14
  #statify_chart_data {
23
  }
24
 
25
  #statify_chart .ct-line {
26
+ stroke: #3582c4;
27
  stroke-width: 2px;
28
  }
29
 
30
  #statify_chart .ct-point {
31
  fill: #fff;
32
+ stroke: #3582c4;
33
  stroke-width: 1.5px;
34
  }
35
 
36
  #statify_chart .ct-area {
37
+ fill: #3582c4;
38
  }
39
 
40
  .statify-chartist-tooltip {
49
  }
50
 
51
  .statify-chartist-tooltip .chartist-tooltip-meta {
52
+ color: #3582c4;
53
  }
54
 
55
  #statify_dashboard .postbox-title-action a,
60
  }
61
 
62
  #statify_dashboard .inside {
63
+ display: flex;
64
+ flex-wrap: wrap;
65
  height: 1%;
66
  margin: 0;
67
  padding-bottom: 0;
74
  }
75
 
76
  #statify_dashboard .table p.sub {
77
+ color: #646970;
78
  margin: 0 0 -4px;
79
  }
80
 
82
  overflow: hidden;
83
  }
84
 
85
+ #statify_dashboard .table.referrer,
 
 
 
 
86
  #statify_dashboard .table.target {
87
+ flex: 1 0 50%;
 
88
  }
89
 
90
  #statify_dashboard .table.total {
91
+ flex: 0 0 100%;
 
 
92
  }
93
 
94
  #statify_dashboard td {
99
  #statify_dashboard td.b {
100
  text-align: right;
101
  padding-right: 4px;
102
+ color: #646970;
103
  }
104
 
105
  #statify_dashboard label {
113
  /* @group Back stage */
114
 
115
  #statify_dashboard form {
116
+ flex: 0 0 100%;
117
  padding: 18px 0;
118
  }
119
 
css/dashboard.min.css CHANGED
@@ -1 +1 @@
1
- #statify_chart{color:#aaa;direction:rtl;height:140px;margin:0 -4px;overflow-x:auto;overflow-y:hidden;text-align:center;width:100%}#statify_chart_data{display:none}#statify_chart .ct-label.ct-vertical.ct-start{-webkit-justify-content:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}#statify_chart .ct-line{stroke:#0074a2;stroke-width:2px}#statify_chart .ct-point{fill:#fff;stroke:#0074a2;stroke-width:1.5px}#statify_chart .ct-area{fill:#0074a2}.statify-chartist-tooltip{border:1px solid #000;background-color:#fff;border-radius:.2em;padding:.1em .5em}.statify-chartist-tooltip::before{border-top-color:#0009}.statify-chartist-tooltip .chartist-tooltip-meta{color:#0074a2}#statify_dashboard .postbox-title-action a,#statify_dashboard .settings-link a{display:block;line-height:20px;text-decoration:none}#statify_dashboard .inside{height:1%;margin:0;padding-bottom:0;overflow:hidden;position:relative}#statify_dashboard .table{padding-bottom:12px}#statify_dashboard .table p.sub{color:#bbb;margin:0 0 -4px}#statify_dashboard .table div{overflow:hidden}#statify_dashboard .table.referrer{float:left;width:45%}#statify_dashboard .table.target{float:right;width:55%}#statify_dashboard .table.total{clear:both;float:left;width:45%}#statify_dashboard td{padding:8px 0 0;line-height:1.4}#statify_dashboard td.b{text-align:right;padding-right:4px;color:#777}#statify_dashboard label{display:block;margin-bottom:1.1em!important}#statify_dashboard form{padding:18px 0}#statify_dashboard input[type="number"]{width:100px}#statify_dashboard .meta-links{float:right;margin:0;line-height:28px}
1
+ #statify_chart{color:#a7aaad;flex:0 0 100%;direction:rtl;height:140px;margin:0 -4px;overflow-x:auto;overflow-y:hidden;text-align:center}#statify_chart_data{display:none}#statify_chart .ct-label.ct-vertical.ct-start{-webkit-justify-content:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}#statify_chart .ct-line{stroke:#3582c4;stroke-width:2px}#statify_chart .ct-point{fill:#fff;stroke:#3582c4;stroke-width:1.5px}#statify_chart .ct-area{fill:#3582c4}.statify-chartist-tooltip{border:1px solid #000;background-color:#fff;border-radius:.2em;padding:.1em .5em}.statify-chartist-tooltip::before{border-top-color:#0009}.statify-chartist-tooltip .chartist-tooltip-meta{color:#3582c4}#statify_dashboard .postbox-title-action a,#statify_dashboard .settings-link a{display:block;line-height:20px;text-decoration:none}#statify_dashboard .inside{display:flex;flex-wrap:wrap;height:1%;margin:0;padding-bottom:0;overflow:hidden;position:relative}#statify_dashboard .table{padding-bottom:12px}#statify_dashboard .table p.sub{color:#646970;margin:0 0 -4px}#statify_dashboard .table div{overflow:hidden}#statify_dashboard .table.referrer,#statify_dashboard .table.target{flex:1 0 50%}#statify_dashboard .table.total{flex:0 0 100%}#statify_dashboard td{padding:8px 0 0;line-height:1.4}#statify_dashboard td.b{text-align:right;padding-right:4px;color:#646970}#statify_dashboard label{display:block;margin-bottom:1.1em!important}#statify_dashboard form{flex:0 0 100%;padding:18px 0}#statify_dashboard input[type="number"]{width:100px}#statify_dashboard .meta-links{float:right;margin:0;line-height:28px}
readme.txt CHANGED
@@ -3,9 +3,9 @@
3
  * Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW
4
  * Tags: analytics, dashboard, pageviews, privacy, statistics, stats, visits, web stats, widget
5
  * Requires at least: 4.7
6
- * Tested up to: 5.6
7
  * Requires PHP: 5.2
8
- * Stable tag: 1.8.1
9
  * License: GPLv3 or later
10
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -117,6 +117,10 @@ has to be added to the theme's `functions.php`. The condition has modified such
117
  ## Changelog ##
118
  You can find the full changelog in [our GitHub repository](https://github.com/pluginkollektiv/statify/blob/master/CHANGELOG.md).
119
 
 
 
 
 
120
  ### 1.8.1
121
  * Fix AMP compatibility for Standard and Transitional mode (#181) (#182)
122
  * JavaScript is no longer embedded if request is served by AMP (#181) (#182)
@@ -163,6 +167,9 @@ For the complete changelog, check out our [GitHub repository](https://github.com
163
 
164
  ## Upgrade Notice ##
165
 
 
 
 
166
  ### 1.8.1 ###
167
  This is a bugfix release improving AMP compatibility and excluding native sitemaps as of WordPress 5.5. It is recommended for all users.
168
 
3
  * Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW
4
  * Tags: analytics, dashboard, pageviews, privacy, statistics, stats, visits, web stats, widget
5
  * Requires at least: 4.7
6
+ * Tested up to: 5.7
7
  * Requires PHP: 5.2
8
+ * Stable tag: 1.8.2
9
  * License: GPLv3 or later
10
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
117
  ## Changelog ##
118
  You can find the full changelog in [our GitHub repository](https://github.com/pluginkollektiv/statify/blob/master/CHANGELOG.md).
119
 
120
+ ### 1.8.2
121
+ * Minor adjustments for the dashboard widget (#197) (#199)
122
+ * Tested up to WordPress 5.7
123
+
124
  ### 1.8.1
125
  * Fix AMP compatibility for Standard and Transitional mode (#181) (#182)
126
  * JavaScript is no longer embedded if request is served by AMP (#181) (#182)
167
 
168
  ## Upgrade Notice ##
169
 
170
+ ### 1.8.2 ###
171
+ This is a maintenance release with minor changes in the dashboard widget. Compatible with WordPress 5.7.
172
+
173
  ### 1.8.1 ###
174
  This is a bugfix release improving AMP compatibility and excluding native sitemaps as of WordPress 5.5. It is recommended for all users.
175
 
statify.php CHANGED
@@ -7,7 +7,7 @@
7
  * Author URI: https://pluginkollektiv.org
8
  * Plugin URI: https://wordpress.org/plugins/statify/
9
  * License: GPLv3 or later
10
- * Version: 1.8.1
11
  *
12
  * @package WordPress
13
  */
@@ -20,7 +20,7 @@ defined( 'ABSPATH' ) || exit;
20
  define( 'STATIFY_FILE', __FILE__ );
21
  define( 'STATIFY_DIR', dirname( __FILE__ ) );
22
  define( 'STATIFY_BASE', plugin_basename( __FILE__ ) );
23
- define( 'STATIFY_VERSION', '1.8.1' );
24
 
25
 
26
  /* Hooks */
7
  * Author URI: https://pluginkollektiv.org
8
  * Plugin URI: https://wordpress.org/plugins/statify/
9
  * License: GPLv3 or later
10
+ * Version: 1.8.2
11
  *
12
  * @package WordPress
13
  */
20
  define( 'STATIFY_FILE', __FILE__ );
21
  define( 'STATIFY_DIR', dirname( __FILE__ ) );
22
  define( 'STATIFY_BASE', plugin_basename( __FILE__ ) );
23
+ define( 'STATIFY_VERSION', '1.8.2' );
24
 
25
 
26
  /* Hooks */
views/widget-front.php CHANGED
@@ -32,22 +32,22 @@ $stats = Statify_Dashboard::get_stats( $refresh ); ?>
32
  </div>
33
 
34
 
35
- <?php if ( ! empty( $stats['target'] ) ) { ?>
36
- <div class="table target">
37
  <p class="sub">
38
- <?php esc_html_e( 'Top targets', 'statify' ); ?>
39
  </p>
40
 
41
  <div>
42
  <table>
43
- <?php foreach ( (array) $stats['target'] as $target ) { ?>
44
  <tr>
45
  <td class="b">
46
- <?php echo (int) $target['count']; ?>
47
  </td>
48
  <td class="t">
49
- <a href="<?php echo esc_url( home_url( $target['url'] ) ); ?>" target="_blank" rel="noopener noreferrer">
50
- <?php echo esc_html( $target['url'] ); ?>
51
  </a>
52
  </td>
53
  </tr>
@@ -57,23 +57,22 @@ $stats = Statify_Dashboard::get_stats( $refresh ); ?>
57
  </div>
58
  <?php } ?>
59
 
60
-
61
- <?php if ( ! empty( $stats['referrer'] ) ) { ?>
62
- <div class="table referrer">
63
  <p class="sub">
64
- <?php esc_html_e( 'Top referers', 'statify' ); ?>
65
  </p>
66
 
67
  <div>
68
  <table>
69
- <?php foreach ( (array) $stats['referrer'] as $referrer ) { ?>
70
  <tr>
71
  <td class="b">
72
- <?php echo (int) $referrer['count']; ?>
73
  </td>
74
  <td class="t">
75
- <a href="<?php echo esc_url( $referrer['url'] ); ?>" target="_blank" rel="noopener noreferrer">
76
- <?php echo esc_html( $referrer['host'] ); ?>
77
  </a>
78
  </td>
79
  </tr>
@@ -83,7 +82,6 @@ $stats = Statify_Dashboard::get_stats( $refresh ); ?>
83
  </div>
84
  <?php } ?>
85
 
86
-
87
  <?php if ( ! empty( $stats['visit_totals'] ) ) { ?>
88
  <div class="table total">
89
  <p class="sub">
@@ -113,7 +111,7 @@ $stats = Statify_Dashboard::get_stats( $refresh ); ?>
113
  </div>
114
  <?php } ?>
115
 
116
- <form method="post" class="clear">
117
  <?php wp_nonce_field( 'statify-dashboard-refresh' ); ?>
118
  <button class="button button-primary" name="statify-fresh"><?php esc_html_e( 'Refresh', 'statify' ); ?></button>
119
  </form>
32
  </div>
33
 
34
 
35
+ <?php if ( ! empty( $stats['referrer'] ) ) { ?>
36
+ <div class="table referrer">
37
  <p class="sub">
38
+ <?php esc_html_e( 'Top referers', 'statify' ); ?>
39
  </p>
40
 
41
  <div>
42
  <table>
43
+ <?php foreach ( (array) $stats['referrer'] as $referrer ) { ?>
44
  <tr>
45
  <td class="b">
46
+ <?php echo (int) $referrer['count']; ?>
47
  </td>
48
  <td class="t">
49
+ <a href="<?php echo esc_url( $referrer['url'] ); ?>" target="_blank" rel="noopener noreferrer">
50
+ <?php echo esc_html( $referrer['host'] ); ?>
51
  </a>
52
  </td>
53
  </tr>
57
  </div>
58
  <?php } ?>
59
 
60
+ <?php if ( ! empty( $stats['target'] ) ) { ?>
61
+ <div class="table target">
 
62
  <p class="sub">
63
+ <?php esc_html_e( 'Top targets', 'statify' ); ?>
64
  </p>
65
 
66
  <div>
67
  <table>
68
+ <?php foreach ( (array) $stats['target'] as $target ) { ?>
69
  <tr>
70
  <td class="b">
71
+ <?php echo (int) $target['count']; ?>
72
  </td>
73
  <td class="t">
74
+ <a href="<?php echo esc_url( home_url( $target['url'] ) ); ?>" target="_blank" rel="noopener noreferrer">
75
+ <?php echo esc_html( $target['url'] ); ?>
76
  </a>
77
  </td>
78
  </tr>
82
  </div>
83
  <?php } ?>
84
 
 
85
  <?php if ( ! empty( $stats['visit_totals'] ) ) { ?>
86
  <div class="table total">
87
  <p class="sub">
111
  </div>
112
  <?php } ?>
113
 
114
+ <form method="post">
115
  <?php wp_nonce_field( 'statify-dashboard-refresh' ); ?>
116
  <button class="button button-primary" name="statify-fresh"><?php esc_html_e( 'Refresh', 'statify' ); ?></button>
117
  </form>