Post Views Counter - Version 1.3.6

Version Description

  • Fix: Option to hide admin bar chart
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Post Views Counter
Version 1.3.6
Comparing to
See all releases

Code changes from version 1.3.5 to 1.3.6

includes/settings.php CHANGED
@@ -402,7 +402,7 @@ class Post_Views_Counter_Settings {
402
  }
403
 
404
  echo '
405
- <p class="description">' . __( 'Use it to hide the post views counter from selected type of visitors.', 'post-views-counter' ) . '</p>
406
  <div class="pvc_user_roles"' . (in_array( 'roles', Post_Views_Counter()->options['general']['exclude']['groups'], true ) ? '' : ' style="display: none;"') . '>';
407
 
408
  foreach ( $this->user_roles as $role => $role_name ) {
@@ -411,7 +411,7 @@ class Post_Views_Counter_Settings {
411
  }
412
 
413
  echo '
414
- <p class="description">' . __( 'Use it to hide the post views counter from selected user roles.', 'post-views-counter' ) . '</p>
415
  </div>
416
  </fieldset>
417
  </div>';
@@ -747,7 +747,6 @@ class Post_Views_Counter_Settings {
747
  $input['update_notice'] = $pvc->options['general']['update_notice'];
748
  // save display settings
749
  } elseif ( isset( $_POST['save_pvc_display'] ) ) {
750
-
751
  // post views label
752
  $input['label'] = isset( $input['label'] ) ? $input['label'] : $pvc->defaults['display']['label'];
753
 
@@ -767,7 +766,8 @@ class Post_Views_Counter_Settings {
767
  // icon class
768
  $input['icon_class'] = isset( $input['icon_class'] ) ? trim( $input['icon_class'] ) : $pvc->defaults['display']['icon_class'];
769
 
770
- $input['toolbar_statistics'] = isset( $input['toolbar_statistics'] ) ? trim( $input['toolbar_statistics'] ) : $pvc->defaults['display']['toolbar_statistics'];
 
771
 
772
  // post types display
773
  if ( isset( $input['post_types_display'] ) ) {
402
  }
403
 
404
  echo '
405
+ <p class="description">' . __( 'Use it exclude specific user groups from post views count.', 'post-views-counter' ) . '</p>
406
  <div class="pvc_user_roles"' . (in_array( 'roles', Post_Views_Counter()->options['general']['exclude']['groups'], true ) ? '' : ' style="display: none;"') . '>';
407
 
408
  foreach ( $this->user_roles as $role => $role_name ) {
411
  }
412
 
413
  echo '
414
+ <p class="description">' . __( 'Use it exclude specific user roles from post views count.', 'post-views-counter' ) . '</p>
415
  </div>
416
  </fieldset>
417
  </div>';
747
  $input['update_notice'] = $pvc->options['general']['update_notice'];
748
  // save display settings
749
  } elseif ( isset( $_POST['save_pvc_display'] ) ) {
 
750
  // post views label
751
  $input['label'] = isset( $input['label'] ) ? $input['label'] : $pvc->defaults['display']['label'];
752
 
766
  // icon class
767
  $input['icon_class'] = isset( $input['icon_class'] ) ? trim( $input['icon_class'] ) : $pvc->defaults['display']['icon_class'];
768
 
769
+ // toolbar statistics
770
+ $input['toolbar_statistics'] = isset( $input['toolbar_statistics'] );
771
 
772
  // post types display
773
  if ( isset( $input['post_types_display'] ) ) {
languages/post-views-counter.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Post Views Counter\n"
5
- "POT-Creation-Date: 2021-08-18 09:35+0200\n"
6
  "PO-Revision-Date: 2015-04-08 18:59+0100\n"
7
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
8
  "Language-Team: dFactory <info@dfactory.eu>\n"
@@ -389,12 +389,12 @@ msgid ""
389
  "interval."
390
  msgstr ""
391
 
392
- #: ../includes/settings.php:405 ../includes/settings.php:590
393
- msgid "Use it to hide the post views counter from selected type of visitors."
394
  msgstr ""
395
 
396
- #: ../includes/settings.php:414 ../includes/settings.php:599
397
- msgid "Use it to hide the post views counter from selected user roles."
398
  msgstr ""
399
 
400
  #: ../includes/settings.php:434 ../includes/settings.php:440
@@ -478,6 +478,14 @@ msgid ""
478
  "counted."
479
  msgstr ""
480
 
 
 
 
 
 
 
 
 
481
  #: ../includes/settings.php:632
482
  msgid "Post views data imported succesfully."
483
  msgstr ""
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Post Views Counter\n"
5
+ "POT-Creation-Date: 2021-09-16 11:46+0200\n"
6
  "PO-Revision-Date: 2015-04-08 18:59+0100\n"
7
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
8
  "Language-Team: dFactory <info@dfactory.eu>\n"
389
  "interval."
390
  msgstr ""
391
 
392
+ #: ../includes/settings.php:405
393
+ msgid "Use it exclude specific user groups from post views count."
394
  msgstr ""
395
 
396
+ #: ../includes/settings.php:414
397
+ msgid "Use it exclude specific user roles from post views count."
398
  msgstr ""
399
 
400
  #: ../includes/settings.php:434 ../includes/settings.php:440
478
  "counted."
479
  msgstr ""
480
 
481
+ #: ../includes/settings.php:590
482
+ msgid "Use it to hide the post views counter from selected type of visitors."
483
+ msgstr ""
484
+
485
+ #: ../includes/settings.php:599
486
+ msgid "Use it to hide the post views counter from selected user roles."
487
+ msgstr ""
488
+
489
  #: ../includes/settings.php:632
490
  msgid "Post views data imported succesfully."
491
  msgstr ""
post-views-counter.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Post Views Counter
4
  Description: Post Views Counter allows you to display how many times a post, page or custom post type had been viewed in a simple, fast and reliable way.
5
- Version: 1.3.5
6
  Author: Digital Factory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/post-views-counter/
@@ -31,7 +31,7 @@ if ( ! class_exists( 'Post_Views_Counter' ) ) :
31
  * Post Views Counter final class.
32
  *
33
  * @class Post_Views_Counter
34
- * @version 1.3.5
35
  */
36
  final class Post_Views_Counter {
37
 
@@ -85,7 +85,7 @@ if ( ! class_exists( 'Post_Views_Counter' ) ) :
85
  'icon_class' => 'dashicons-chart-bar',
86
  'toolbar_statistics' => true
87
  ),
88
- 'version' => '1.3.5'
89
  );
90
 
91
  /**
2
  /*
3
  Plugin Name: Post Views Counter
4
  Description: Post Views Counter allows you to display how many times a post, page or custom post type had been viewed in a simple, fast and reliable way.
5
+ Version: 1.3.6
6
  Author: Digital Factory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/post-views-counter/
31
  * Post Views Counter final class.
32
  *
33
  * @class Post_Views_Counter
34
+ * @version 1.3.6
35
  */
36
  final class Post_Views_Counter {
37
 
85
  'icon_class' => 'dashicons-chart-bar',
86
  'toolbar_statistics' => true
87
  ),
88
+ 'version' => '1.3.6'
89
  );
90
 
91
  /**
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: http://dfactory.eu/
4
  Tags: counter, hits, posts, postviews, post views, views, count, statistics, stats, analytics, pageviews, tracking
5
  Requires at least: 5.0
6
  Requires PHP: 5.2.4
7
- Tested up to: 5.8
8
- Stable tag: 1.3.5
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
11
 
@@ -62,6 +62,9 @@ No questions yet.
62
 
63
  == Changelog ==
64
 
 
 
 
65
  = 1.3.5 =
66
  * New: Option to hide admin bar chart
67
  * Fix: Small security bug with views label
@@ -216,7 +219,5 @@ Initial release
216
 
217
  == Upgrade Notice ==
218
 
219
- = 1.3.5 =
220
- * New: Option to hide admin bar chart
221
- * Fix: Small security bug with views label
222
- * Tweak: Remove unnecessary CSS on every page
4
  Tags: counter, hits, posts, postviews, post views, views, count, statistics, stats, analytics, pageviews, tracking
5
  Requires at least: 5.0
6
  Requires PHP: 5.2.4
7
+ Tested up to: 5.8.1
8
+ Stable tag: 1.3.6
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
11
 
62
 
63
  == Changelog ==
64
 
65
+ = 1.3.6 =
66
+ * Fix: Option to hide admin bar chart
67
+
68
  = 1.3.5 =
69
  * New: Option to hide admin bar chart
70
  * Fix: Small security bug with views label
219
 
220
  == Upgrade Notice ==
221
 
222
+ = 1.3.6 =
223
+ * Fix: Option to hide admin bar chart