Post Views Counter - Version 1.2.1

Version Description

  • New: Option to display post views on select page types
  • Tweak: Dashboard widget query optimization
Download this release

Release Info

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

Code changes from version 1.2.0 to 1.2.1

includes/dashboard.php CHANGED
@@ -70,8 +70,10 @@ class Post_Views_Counter_Dashboard {
70
  $query_args = array(
71
  'post_type' => $post_types,
72
  'posts_per_page' => -1,
 
73
  'orderby' => 'post_views',
74
- 'suppress_filters' => false
 
75
  );
76
 
77
  // set range
@@ -139,15 +141,30 @@ class Post_Views_Counter_Dashboard {
139
 
140
  // this month day loop
141
  for ( $i = 1; $i <= date( 't' ); $i++ ) {
142
- $query = new WP_Query( wp_parse_args( $query_args, array( 'views_query' => array( 'year' => date( 'Y' ), 'month' => date( 'n' ), 'day' => str_pad( $i, 2, '0', STR_PAD_LEFT ) ) ) ) );
143
 
144
- // get data for specific post types
145
- $post_type_views = $empty_post_type_views;
146
-
147
- if ( ! empty( $query->posts ) ) {
148
- foreach ( $query->posts as $index => $post ) {
149
- $post_type_views[$post->post_type] += $post->post_views;
 
 
 
 
 
150
  }
 
 
 
 
 
 
 
 
 
 
 
151
  }
152
 
153
  // generate chart data
70
  $query_args = array(
71
  'post_type' => $post_types,
72
  'posts_per_page' => -1,
73
+ 'paged' => false,
74
  'orderby' => 'post_views',
75
+ 'suppress_filters' => false,
76
+ 'no_found_rows' => true
77
  );
78
 
79
  // set range
141
 
142
  // this month day loop
143
  for ( $i = 1; $i <= date( 't' ); $i++ ) {
 
144
 
145
+ if ( $i <= $now['mday'] ) {
146
+
147
+ $query = new WP_Query( wp_parse_args( $query_args, array( 'views_query' => array( 'year' => date( 'Y' ), 'month' => date( 'n' ), 'day' => str_pad( $i, 2, '0', STR_PAD_LEFT ) ) ) ) );
148
+
149
+ // get data for specific post types
150
+ $post_type_views = $empty_post_type_views;
151
+
152
+ if ( ! empty( $query->posts ) ) {
153
+ foreach ( $query->posts as $index => $post ) {
154
+ $post_type_views[$post->post_type] += $post->post_views;
155
+ }
156
  }
157
+
158
+ } else {
159
+
160
+ $post_type_views = $empty_post_type_views;
161
+
162
+ foreach ( $post_types as $id => $post_type ) {
163
+ $post_type_views[$post_type ] = 0;
164
+ }
165
+
166
+ $query->total_views = 0;
167
+
168
  }
169
 
170
  // generate chart data
includes/frontend.php CHANGED
@@ -12,10 +12,7 @@ class Post_Views_Counter_Frontend {
12
  // actions
13
  add_action( 'after_setup_theme', array( $this, 'register_shortcode' ) );
14
  add_action( 'wp_enqueue_scripts', array( $this, 'frontend_scripts_styles' ) );
15
-
16
- // filters
17
- add_filter( 'the_content', array( $this, 'add_post_views_count' ) );
18
- add_filter( 'the_excerpt', array( $this, 'remove_post_views_count' ) );
19
  }
20
 
21
  /**
@@ -40,6 +37,31 @@ class Post_Views_Counter_Frontend {
40
 
41
  return pvc_post_views( $args['id'], false );
42
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
  /**
45
  * Add post views counter to content.
@@ -47,11 +69,36 @@ class Post_Views_Counter_Frontend {
47
  * @param mixed $content
48
  * @return mixed
49
  */
50
- public function add_post_views_count( $content ) {
 
 
51
  $display = false;
 
 
 
52
 
53
- if ( is_singular() && in_array( get_post_type(), Post_Views_Counter()->options['display']['post_types_display'], true ) )
54
- $display = true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
 
56
  // get groups to check it faster
57
  $groups = Post_Views_Counter()->options['display']['restrict_display']['groups'];
@@ -62,22 +109,28 @@ class Post_Views_Counter_Frontend {
62
  if ( in_array( 'users', $groups, true ) )
63
  $display = false;
64
  // exclude specific roles?
65
- elseif ( in_array( 'roles', $groups, true ) && Post_Views_Counter()->counter->is_user_roles_excluded( Post_Views_Counter()->options['display']['restrict_display']['roles'] ) )
66
  $display = false;
67
  }
68
  // exclude guests?
69
  elseif ( in_array( 'guests', $groups, true ) )
70
  $display = false;
71
-
 
 
 
72
 
73
  if ( apply_filters( 'pvc_display_views_count', $display ) === true ) {
74
- switch ( Post_Views_Counter()->options['display']['position'] ) {
 
 
 
75
  case 'after':
76
- $content = $content . '[post-views]';
77
  break;
78
 
79
  case 'before':
80
- $content = '[post-views]' . $content;
81
  break;
82
 
83
  case 'manual':
@@ -89,18 +142,6 @@ class Post_Views_Counter_Frontend {
89
  return $content;
90
  }
91
 
92
- /**
93
- * Remove post views shortcode from excerpt.
94
- *
95
- * @param mixed $excerpt
96
- * @return mixed
97
- */
98
- public function remove_post_views_count( $excerpt ) {
99
- remove_shortcode( 'post-views' );
100
- $excerpt = preg_replace( '/\[post-views[^\]]*\]/', '', $excerpt );
101
- return $excerpt;
102
- }
103
-
104
  /**
105
  * Enqueue frontend scripts and styles.
106
  */
12
  // actions
13
  add_action( 'after_setup_theme', array( $this, 'register_shortcode' ) );
14
  add_action( 'wp_enqueue_scripts', array( $this, 'frontend_scripts_styles' ) );
15
+ add_action( 'wp', array( $this, 'run' ) );
 
 
 
16
  }
17
 
18
  /**
37
 
38
  return pvc_post_views( $args['id'], false );
39
  }
40
+
41
+ /**
42
+ * Set up plugin hooks.
43
+ */
44
+ public function run() {
45
+
46
+ if ( is_admin() && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) )
47
+ return;
48
+
49
+ $filter = apply_filters( 'pvc_shortcode_filter_hook', Post_Views_Counter()->options['display']['position'] );
50
+
51
+ if ( ! empty( $filter ) && in_array( $filter, array( 'before', 'after' ) ) ) {
52
+ // post content
53
+ add_filter( 'the_content', array( $this, 'add_post_views_count' ) );
54
+ // add_filter( 'the_excerpt', array( $this, 'add_post_views_count' ) );
55
+
56
+ // bbpress
57
+ add_filter( 'bbp_get_topic_content', array( $this, 'add_post_views_count' ) );
58
+ add_filter( 'bbp_get_reply_content', array( $this, 'add_post_views_count' ) );
59
+ } else {
60
+ // custom
61
+ if ( $filter != 'manual' && is_string( $filter ) )
62
+ add_filter( $filter, array( $this, 'add_post_views_count' ) );
63
+ }
64
+ }
65
 
66
  /**
67
  * Add post views counter to content.
69
  * @param mixed $content
70
  * @return mixed
71
  */
72
+ public function add_post_views_count( $content = '' ) {
73
+ global $post, $wp_current_filter;
74
+
75
  $display = false;
76
+
77
+ // get post types
78
+ $post_types = Post_Views_Counter()->options['display']['post_types_display'];
79
 
80
+ // get pages
81
+ $pages = Post_Views_Counter()->options['display']['page_types_display'];
82
+
83
+ // page visibility check
84
+ if ( $pages ) {
85
+ foreach ( $pages as $page ) {
86
+ switch ( $page ) {
87
+ case 'singular' :
88
+ if ( is_singular( $post_types ) ) $display = true;
89
+ break;
90
+ case 'archive' :
91
+ if ( is_archive() ) $display = true;
92
+ break;
93
+ case 'search' :
94
+ if ( is_search() ) $display = true;
95
+ break;
96
+ case 'home' :
97
+ if ( is_home() || is_front_page() ) $display = true;
98
+ break;
99
+ }
100
+ }
101
+ }
102
 
103
  // get groups to check it faster
104
  $groups = Post_Views_Counter()->options['display']['restrict_display']['groups'];
109
  if ( in_array( 'users', $groups, true ) )
110
  $display = false;
111
  // exclude specific roles?
112
+ elseif ( in_array( 'roles', $groups, true ) && Post_Views_Counter()->counter->is_user_role_excluded( Post_Views_Counter()->options['display']['restrict_display']['roles'] ) )
113
  $display = false;
114
  }
115
  // exclude guests?
116
  elseif ( in_array( 'guests', $groups, true ) )
117
  $display = false;
118
+
119
+ // we don't want to mess custom loops
120
+ if ( ! in_the_loop() )
121
+ $display = false;
122
 
123
  if ( apply_filters( 'pvc_display_views_count', $display ) === true ) {
124
+
125
+ $filter = apply_filters( 'pvc_shortcode_filter_hook', Post_Views_Counter()->options['display']['position'] );
126
+
127
+ switch ( $filter ) {
128
  case 'after':
129
+ $content = $content . do_shortcode( '[post-views]' );
130
  break;
131
 
132
  case 'before':
133
+ $content = do_shortcode( '[post-views]' ) . $content;
134
  break;
135
 
136
  case 'manual':
142
  return $content;
143
  }
144
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  /**
146
  * Enqueue frontend scripts and styles.
147
  */
includes/functions.php CHANGED
@@ -51,7 +51,8 @@ if ( ! function_exists( 'pvc_get_post_views' ) ) {
51
  */
52
  if ( ! function_exists( 'pvc_post_views' ) ) {
53
 
54
- function pvc_post_views( $post_id = 0, $display = true ) {
 
55
  // get all data
56
  $post_id = (int) ( empty( $post_id ) ? get_the_ID() : $post_id );
57
  $options = Post_Views_Counter()->options['display'];
@@ -70,7 +71,7 @@ if ( ! function_exists( 'pvc_post_views' ) ) {
70
  </div>', $post_id, $views, $label, $icon
71
  );
72
 
73
- if ( $display )
74
  echo $html;
75
  else
76
  return $html;
51
  */
52
  if ( ! function_exists( 'pvc_post_views' ) ) {
53
 
54
+ function pvc_post_views( $post_id = 0, $echo = true ) {
55
+
56
  // get all data
57
  $post_id = (int) ( empty( $post_id ) ? get_the_ID() : $post_id );
58
  $options = Post_Views_Counter()->options['display'];
71
  </div>', $post_id, $views, $label, $icon
72
  );
73
 
74
+ if ( $echo )
75
  echo $html;
76
  else
77
  return $html;
includes/settings.php CHANGED
@@ -17,6 +17,7 @@ class Post_Views_Counter_Settings {
17
  private $positions;
18
  private $display_styles;
19
  public $post_types;
 
20
 
21
  public function __construct() {
22
  // actions
@@ -79,6 +80,13 @@ class Post_Views_Counter_Settings {
79
  );
80
 
81
  $this->user_roles = $this->get_user_roles();
 
 
 
 
 
 
 
82
  }
83
 
84
  /**
@@ -210,8 +218,9 @@ class Post_Views_Counter_Settings {
210
  register_setting( 'post_views_counter_settings_display', 'post_views_counter_settings_display', array( $this, 'validate_settings' ) );
211
  add_settings_section( 'post_views_counter_settings_display', __( 'Display settings', 'post-views-counter' ), '', 'post_views_counter_settings_display' );
212
  add_settings_field( 'pvc_post_views_label', __( 'Post Views Label', 'post-views-counter' ), array( $this, 'post_views_label' ), 'post_views_counter_settings_display', 'post_views_counter_settings_display' );
213
- add_settings_field( 'pvc_post_types_display', __( 'Post Types Display', 'post-views-counter' ), array( $this, 'post_types_display' ), 'post_views_counter_settings_display', 'post_views_counter_settings_display' );
214
- add_settings_field( 'pvc_restrict_display', __( 'Restrict Display', 'post-views-counter' ), array( $this, 'restrict_display' ), 'post_views_counter_settings_display', 'post_views_counter_settings_display' );
 
215
  add_settings_field( 'pvc_position', __( 'Position', 'post-views-counter' ), array( $this, 'position' ), 'post_views_counter_settings_display', 'post_views_counter_settings_display' );
216
  add_settings_field( 'pvc_display_style', __( 'Display Style', 'post-views-counter' ), array( $this, 'display_style' ), 'post_views_counter_settings_display', 'post_views_counter_settings_display' );
217
  add_settings_field( 'pvc_icon_class', __( 'Icon Class', 'post-views-counter' ), array( $this, 'icon_class' ), 'post_views_counter_settings_display', 'post_views_counter_settings_display' );
@@ -260,7 +269,7 @@ class Post_Views_Counter_Settings {
260
  }
261
 
262
  echo '
263
- <p class="description">' . esc_html__( 'Select post types for which post views will be displayed.', 'post-views-counter' ) . '</p>
264
  </div>';
265
  }
266
 
@@ -442,6 +451,23 @@ class Post_Views_Counter_Settings {
442
  <label class="cb-checkbox"><input type="checkbox" name="post_views_counter_settings_general[deactivation_delete]" value="1" ' . checked( true, Post_Views_Counter()->options['general']['deactivation_delete'], false ) . ' />' . esc_html__( 'Enable to delete all plugin data on deactivation.', 'post-views-counter' ) . '</label>
443
  </div>';
444
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
445
 
446
  /**
447
  * Counter position option.
@@ -676,6 +702,19 @@ class Post_Views_Counter_Settings {
676
  $input['post_types_display'] = array_unique( $post_types );
677
  } else
678
  $input['post_types_display'] = array();
 
 
 
 
 
 
 
 
 
 
 
 
 
679
 
680
  // restrict display
681
  if ( isset( $input['restrict_display']['groups'] ) ) {
17
  private $positions;
18
  private $display_styles;
19
  public $post_types;
20
+ public $page_types;
21
 
22
  public function __construct() {
23
  // actions
80
  );
81
 
82
  $this->user_roles = $this->get_user_roles();
83
+
84
+ $this->page_types = apply_filters( 'pvc_page_types_display_options', array(
85
+ 'home' => __( 'Home', 'post-views-counter' ),
86
+ 'archive' => __( 'Archives', 'post-views-counter' ),
87
+ 'singular' => __( 'Single pages', 'post-views-counter' ),
88
+ 'search' => __( 'Search results', 'post-views-counter' ),
89
+ ) );
90
  }
91
 
92
  /**
218
  register_setting( 'post_views_counter_settings_display', 'post_views_counter_settings_display', array( $this, 'validate_settings' ) );
219
  add_settings_section( 'post_views_counter_settings_display', __( 'Display settings', 'post-views-counter' ), '', 'post_views_counter_settings_display' );
220
  add_settings_field( 'pvc_post_views_label', __( 'Post Views Label', 'post-views-counter' ), array( $this, 'post_views_label' ), 'post_views_counter_settings_display', 'post_views_counter_settings_display' );
221
+ add_settings_field( 'pvc_post_types_display', __( 'Post Type', 'post-views-counter' ), array( $this, 'post_types_display' ), 'post_views_counter_settings_display', 'post_views_counter_settings_display' );
222
+ add_settings_field( 'pvc_page_types_display', __( 'Page Type', 'post-views-counter' ), array( $this, 'page_types_display' ), 'post_views_counter_settings_display', 'post_views_counter_settings_display' );
223
+ add_settings_field( 'pvc_restrict_display', __( 'User Type', 'post-views-counter' ), array( $this, 'restrict_display' ), 'post_views_counter_settings_display', 'post_views_counter_settings_display' );
224
  add_settings_field( 'pvc_position', __( 'Position', 'post-views-counter' ), array( $this, 'position' ), 'post_views_counter_settings_display', 'post_views_counter_settings_display' );
225
  add_settings_field( 'pvc_display_style', __( 'Display Style', 'post-views-counter' ), array( $this, 'display_style' ), 'post_views_counter_settings_display', 'post_views_counter_settings_display' );
226
  add_settings_field( 'pvc_icon_class', __( 'Icon Class', 'post-views-counter' ), array( $this, 'icon_class' ), 'post_views_counter_settings_display', 'post_views_counter_settings_display' );
269
  }
270
 
271
  echo '
272
+ <p class="description">' . esc_html__( 'Select post types for which the views count will be displayed.', 'post-views-counter' ) . '</p>
273
  </div>';
274
  }
275
 
451
  <label class="cb-checkbox"><input type="checkbox" name="post_views_counter_settings_general[deactivation_delete]" value="1" ' . checked( true, Post_Views_Counter()->options['general']['deactivation_delete'], false ) . ' />' . esc_html__( 'Enable to delete all plugin data on deactivation.', 'post-views-counter' ) . '</label>
452
  </div>';
453
  }
454
+
455
+ /**
456
+ * Visibility option.
457
+ */
458
+ public function page_types_display() {
459
+ echo '
460
+ <div id="pvc_post_types_display">';
461
+
462
+ foreach ( $this->page_types as $key => $label ) {
463
+ echo '
464
+ <label class="cb-checkbox"><input id="pvc_page_types_display-' . esc_attr( $key ) . '" type="checkbox" name="post_views_counter_settings_display[page_types_display][' . esc_attr( $key ) . ']" value="1" ' . checked( in_array( $key, Post_Views_Counter()->options['display']['page_types_display'], true ), true, false ) . ' />' . esc_html( $label ) . '</label>';
465
+ }
466
+
467
+ echo '
468
+ <p class="description">' . esc_html__( 'Select page types where the views count will be displayed.', 'post-views-counter' ) . '</p>
469
+ </div>';
470
+ }
471
 
472
  /**
473
  * Counter position option.
702
  $input['post_types_display'] = array_unique( $post_types );
703
  } else
704
  $input['post_types_display'] = array();
705
+
706
+ // page types display
707
+ if ( isset( $input['page_types_display'] ) ) {
708
+ $page_types = array();
709
+
710
+ foreach ( $input['page_types_display'] as $page_type => $set ) {
711
+ if ( isset( $this->page_types[$page_type] ) )
712
+ $page_types[] = $page_type;
713
+ }
714
+
715
+ $input['page_types_display'] = array_unique( $page_types );
716
+ } else
717
+ $input['page_types_display'] = array();
718
 
719
  // restrict display
720
  if ( isset( $input['restrict_display']['groups'] ) ) {
languages/post-views-counter-pl_PL.mo CHANGED
Binary file
languages/post-views-counter-pl_PL.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Post Views Counter\n"
4
- "POT-Creation-Date: 2016-02-12 10:50+0100\n"
5
- "PO-Revision-Date: 2016-02-12 10:51+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: pl_PL\n"
@@ -19,8 +19,8 @@ msgstr ""
19
 
20
  #: ../includes/columns.php:59 ../includes/columns.php:194
21
  #: ../includes/columns.php:200 ../includes/columns.php:272
22
- #: ../includes/dashboard.php:28 ../includes/dashboard.php:87
23
- #: ../includes/dashboard.php:97 ../includes/dashboard.php:107
24
  msgid "Post Views"
25
  msgstr "Odwiedziny"
26
 
@@ -53,233 +53,253 @@ msgstr "Czas czyszczenia danych o odsłonach z cache"
53
  msgid "You do not have permission to access this page."
54
  msgstr "Nie masz uprawnień dostępu do tej strony."
55
 
56
- #: ../includes/dashboard.php:121
57
  msgid "Total Views"
58
  msgstr "Odwiedzin ogółem"
59
 
60
- #: ../includes/functions.php:132
61
  msgid "No Posts"
62
  msgstr "Brak wpisów"
63
 
64
- #: ../includes/settings.php:35
65
  msgid "PHP"
66
  msgstr "PHP"
67
 
68
- #: ../includes/settings.php:36
69
  msgid "JavaScript"
70
  msgstr "JavaScript"
71
 
72
- #: ../includes/settings.php:40
73
  msgid "minutes"
74
  msgstr "minuty"
75
 
76
- #: ../includes/settings.php:41
77
  msgid "hours"
78
  msgstr "godziny"
79
 
80
- #: ../includes/settings.php:42
81
  msgid "days"
82
  msgstr "dni"
83
 
84
- #: ../includes/settings.php:43
85
  msgid "weeks"
86
  msgstr "tygodnie"
87
 
88
- #: ../includes/settings.php:44
89
  msgid "months"
90
  msgstr "miesiące"
91
 
92
- #: ../includes/settings.php:45
93
  msgid "years"
94
  msgstr "lata"
95
 
96
- #: ../includes/settings.php:49
97
  msgid "robots"
98
  msgstr "roboty"
99
 
100
- #: ../includes/settings.php:50
101
  msgid "logged in users"
102
  msgstr "zalogowani użytkownicy"
103
 
104
- #: ../includes/settings.php:51
105
  msgid "guests"
106
  msgstr "goście"
107
 
108
- #: ../includes/settings.php:52
109
  msgid "selected user roles"
110
  msgstr "wybrane role użytkowników"
111
 
112
- #: ../includes/settings.php:56
113
  msgid "before the content"
114
  msgstr "przed treścią"
115
 
116
- #: ../includes/settings.php:57
117
  msgid "after the content"
118
  msgstr "po treści"
119
 
120
- #: ../includes/settings.php:58
121
  msgid "manual"
122
  msgstr "ręcznie"
123
 
124
- #: ../includes/settings.php:62
125
  msgid "icon"
126
  msgstr "ikona"
127
 
128
- #: ../includes/settings.php:63
129
  msgid "label"
130
  msgstr "etykieta"
131
 
132
- #: ../includes/settings.php:68
133
  msgid "General"
134
  msgstr "Ogólne"
135
 
136
- #: ../includes/settings.php:74
137
  msgid "Display"
138
  msgstr "Wyświetlanie"
139
 
140
- #: ../includes/settings.php:129 ../includes/settings.php:141
141
- #: ../includes/settings.php:153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  msgid "Post Views Counter"
143
  msgstr "Licznik odwiedzin"
144
 
145
- #: ../includes/settings.php:155
146
  msgid "Need support?"
147
  msgstr "Potrzebujesz pomocy?"
148
 
149
- #: ../includes/settings.php:156
150
  msgid ""
151
  "If you are having problems with this plugin, please talk about them in the"
152
  msgstr "Jeśli masz jakieś problemy z tą wtyczką, powiedz o nich"
153
 
154
- #: ../includes/settings.php:156
155
  msgid "Support forum"
156
  msgstr "Forum pomocy"
157
 
158
- #: ../includes/settings.php:158
159
  msgid "Do you like this plugin?"
160
  msgstr "Lubisz tę wtyczkę?"
161
 
162
- #: ../includes/settings.php:159
163
  msgid "Rate it 5"
164
  msgstr "Oceń ją na 5"
165
 
166
- #: ../includes/settings.php:159
167
  msgid "on WordPress.org"
168
  msgstr "na WordPress.org"
169
 
170
- #: ../includes/settings.php:160
171
  msgid "Blog about it & link to the"
172
  msgstr "Napisz o niej i dodaj link"
173
 
174
- #: ../includes/settings.php:160
175
  msgid "plugin page"
176
  msgstr "do strony wtyczki"
177
 
178
- #: ../includes/settings.php:161
179
  msgid "Check out our other"
180
  msgstr "Sprawdż nasze inne"
181
 
182
- #: ../includes/settings.php:161
183
  msgid "WordPress plugins"
184
  msgstr "wtyczki do WordPressa"
185
 
186
- #: ../includes/settings.php:164
187
  msgid "Created by"
188
  msgstr "Stworzone przez"
189
 
190
- #: ../includes/settings.php:180
191
  msgid "Reset to defaults"
192
  msgstr "Resetuj do domyślnych"
193
 
194
- #: ../includes/settings.php:196
195
  msgid "General settings"
196
  msgstr "Ustawienia ogólne"
197
 
198
- #: ../includes/settings.php:197
199
  msgid "Post Types Count"
200
  msgstr "Własne typy wpisów"
201
 
202
- #: ../includes/settings.php:198
203
  msgid "Counter Mode"
204
  msgstr "Tryb pracy licznika"
205
 
206
- #: ../includes/settings.php:199
207
  msgid "Post Views Column"
208
  msgstr "Kolumna z liczbą odwiedzin"
209
 
210
- #: ../includes/settings.php:200
211
  msgid "Restrict Edit"
212
  msgstr "Ograniczenie edycji"
213
 
214
- #: ../includes/settings.php:201
215
  msgid "Time Between Counts"
216
  msgstr "Czas między zliczaniem"
217
 
218
- #: ../includes/settings.php:202
219
  msgid "Reset Data Interval"
220
  msgstr "Czas resetowania danych"
221
 
222
- #: ../includes/settings.php:203
223
  msgid "Flush Object Cache Interval"
224
  msgstr "Czas czyszczenia cache"
225
 
226
- #: ../includes/settings.php:204
227
  msgid "Exclude Visitors"
228
  msgstr "Wykluczanie odwiedzających"
229
 
230
- #: ../includes/settings.php:205
231
  msgid "Exclude IPs"
232
  msgstr "Wykluczanie IP"
233
 
234
- #: ../includes/settings.php:206
235
  msgid "WP-PostViews"
236
  msgstr "WP-PostViews"
237
 
238
- #: ../includes/settings.php:207
239
  msgid "Deactivation"
240
  msgstr "Deaktywacja wtyczki"
241
 
242
- #: ../includes/settings.php:211
243
  msgid "Display settings"
244
  msgstr "Ustawienia wyświetlania"
245
 
246
- #: ../includes/settings.php:212
247
  msgid "Post Views Label"
248
  msgstr "Etykieta licznika"
249
 
250
- #: ../includes/settings.php:213
251
- msgid "Post Types Display"
252
- msgstr "Wyświetlanie licznika"
253
 
254
- #: ../includes/settings.php:214
255
- msgid "Restrict Display"
256
- msgstr "Ograniczenia wyświetlania"
257
 
258
- #: ../includes/settings.php:215
 
 
 
 
259
  msgid "Position"
260
  msgstr "Pozycja"
261
 
262
- #: ../includes/settings.php:216
263
  msgid "Display Style"
264
  msgstr "Styl wyświetlania"
265
 
266
- #: ../includes/settings.php:217
267
  msgid "Icon Class"
268
  msgstr "Klasa ikony"
269
 
270
- #: ../includes/settings.php:228
271
  msgid "Enter the label for the post views counter field."
272
  msgstr "Wpisz etykietę jaka będzie wyświetlana w liczniku odwiedzin wpisu."
273
 
274
- #: ../includes/settings.php:246
275
  msgid "Select post types for which post views will be counted."
276
  msgstr "Wybierz typy wpisów dla których będzie włączone zliczanie."
277
 
278
- #: ../includes/settings.php:263
279
- msgid "Select post types for which post views will be displayed."
280
- msgstr "Wybierz typy wpisów dla których licznik będzie wyświetlony."
281
 
282
- #: ../includes/settings.php:282
283
  msgid ""
284
  "Select the method of collecting post views data. If you are using any of the "
285
  "caching plugins select Javascript."
@@ -287,17 +307,17 @@ msgstr ""
287
  "Wybierz metodę gromadzenia danych. Jeśli używaż jakiejkolwiek wtyczki do "
288
  "cachowania wybierz Javascript."
289
 
290
- #: ../includes/settings.php:292
291
  msgid ""
292
  "Enable to display post views count column for each of the selected post "
293
  "types."
294
  msgstr "Włącz aby wyświetlić kolumnę z liczbą odsłon."
295
 
296
- #: ../includes/settings.php:312
297
  msgid "Enter the time between single user visit count."
298
  msgstr "Określ czas pomiędzy zliczaniem wizyt poszczególnego użytkownika."
299
 
300
- #: ../includes/settings.php:332
301
  msgid ""
302
  "Delete single day post views data older than specified above. Enter 0 "
303
  "(number zero) if you want to preserve your data regardless of its age."
@@ -305,7 +325,7 @@ msgstr ""
305
  "Usuwanie dziennych danych o liczbie wpisów po określonym powyżej czasie. "
306
  "Wpisz 0 jeśli chcesz przetrzymywać te dane bez ograniczeń."
307
 
308
- #: ../includes/settings.php:352
309
  msgid ""
310
  "How often to flush cached view counts from the object cache into the "
311
  "database. This feature is used only if a persistent object cache is detected "
@@ -324,56 +344,60 @@ msgstr ""
324
  "jeśli cachowanie obiektowe nie będzie dostępne lub cache zostanie "
325
  "wyczyszczony w trakcie trwania wybranego okresu."
326
 
327
- #: ../includes/settings.php:369 ../includes/settings.php:512
328
  msgid "Use it to hide the post views counter from selected type of visitors."
329
  msgstr ""
330
  "Użyj tego aby ograniczyć wyświetlanie licznika do określonych typów "
331
  "użytkowników."
332
 
333
- #: ../includes/settings.php:376 ../includes/settings.php:519
334
  msgid "Use it to hide the post views counter from selected user roles."
335
  msgstr ""
336
  "Użyj tego aby ograniczyć wyświetlanie licznika do określonych tról "
337
  "użytkowników."
338
 
339
- #: ../includes/settings.php:396 ../includes/settings.php:402
340
  msgid "Remove"
341
  msgstr "Usuń"
342
 
343
- #: ../includes/settings.php:407
344
  msgid "Add new"
345
  msgstr "Dodaj nowy"
346
 
347
- #: ../includes/settings.php:407
348
  msgid "Add my current IP"
349
  msgstr "Dodaj mój aktualny IP"
350
 
351
- #: ../includes/settings.php:408
352
  msgid "Enter the IP addresses to be excluded from post views count."
353
  msgstr "Wpisz adresy IP, któe mają być wyłączone z działania licznika."
354
 
355
- #: ../includes/settings.php:419
356
  msgid "Import"
357
  msgstr "Importuj"
358
 
359
- #: ../includes/settings.php:420
360
  msgid "Import post views data from WP-PostViews plugin."
361
  msgstr "Importuj dane o liczbie odwiedzin z wtyczki WP-PostViews."
362
 
363
- #: ../includes/settings.php:421
364
  msgid "Override existing Post Views Counter data."
365
  msgstr "Nadpisz istniejące dane Licznika odwiedzin."
366
 
367
- #: ../includes/settings.php:432
368
  msgid "Enable to restrict post views editing to admins only."
369
  msgstr ""
370
  "Włącz aby ograniczyć możliwość edycji liczby wpisów do administratorów."
371
 
372
- #: ../includes/settings.php:442
373
  msgid "Enable to delete all plugin data on deactivation."
374
  msgstr "Włącz aby usunąć wszystkie dane wtyczki podczas deaktywacji"
375
 
376
- #: ../includes/settings.php:461
 
 
 
 
377
  msgid ""
378
  "Select where would you like to display the post views counter. Use [post-"
379
  "views] shortcode for manual display."
@@ -381,11 +405,11 @@ msgstr ""
381
  "Wybierz w którym miejscu chcesz wyświetlać licznik odwiedzin. Użyj skrótu "
382
  "[post-views] aby wyświetlić licznik ręcznie."
383
 
384
- #: ../includes/settings.php:480
385
  msgid "Choose how to display the post views counter."
386
  msgstr "Wybierz w jaki sposób chcesz wyświetlać licznik."
387
 
388
- #: ../includes/settings.php:491
389
  #, php-format
390
  msgid ""
391
  "Enter the post views icon class. Any of the <a href=\"%s\" target=\"_blank"
@@ -394,19 +418,19 @@ msgstr ""
394
  "Wpisz klasę CSS ikony. Każda z ikond typu <a href=\"%s\" target=\"_blank"
395
  "\">Dashicons</a> może być tutaj zastosowana."
396
 
397
- #: ../includes/settings.php:550
398
  msgid "Post views data imported succesfully."
399
  msgstr "Dane dotyczące liczby odwiedzin zostały zaimportowane pomyślnie."
400
 
401
- #: ../includes/settings.php:552
402
  msgid "There was no post views data to import."
403
  msgstr "Nie znaleziono danych do zaimportowania,"
404
 
405
- #: ../includes/settings.php:710
406
  msgid "General settings restored to defaults."
407
  msgstr "Ustawienia zostały przywrócone do domyślnych."
408
 
409
- #: ../includes/settings.php:714
410
  msgid "Display settings restored to defaults."
411
  msgstr "Ustawienia wyświetlania została przywrócone do domyślnych."
412
 
@@ -466,18 +490,27 @@ msgstr "WYświetlanie miniatury?"
466
  msgid "Thumbnail size"
467
  msgstr "WIelkość miniatury"
468
 
469
- #: ../post-views-counter.php:280
470
  msgid "Are you sure you want to reset these settings to defaults?"
471
  msgstr "Czy jesteś pewny, że chcesz zresetować ustawienia do domyślnych?"
472
 
473
- #: ../post-views-counter.php:323
474
  msgid "Support"
475
  msgstr "Forum pomocy"
476
 
477
- #: ../post-views-counter.php:342
478
  msgid "Settings"
479
  msgstr "Ustawienia"
480
 
 
 
 
 
 
 
 
 
 
481
  #~ msgid "WP-PostViews data imported succesfully."
482
  #~ msgstr "Dane z wtyczki WP-PostViews zostały zaimportowane pomyślnie."
483
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Post Views Counter\n"
4
+ "POT-Creation-Date: 2016-04-13 12:19+0200\n"
5
+ "PO-Revision-Date: 2016-04-13 12:20+0200\n"
6
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: pl_PL\n"
19
 
20
  #: ../includes/columns.php:59 ../includes/columns.php:194
21
  #: ../includes/columns.php:200 ../includes/columns.php:272
22
+ #: ../includes/dashboard.php:28 ../includes/dashboard.php:89
23
+ #: ../includes/dashboard.php:99 ../includes/dashboard.php:109
24
  msgid "Post Views"
25
  msgstr "Odwiedziny"
26
 
53
  msgid "You do not have permission to access this page."
54
  msgstr "Nie masz uprawnień dostępu do tej strony."
55
 
56
+ #: ../includes/dashboard.php:123
57
  msgid "Total Views"
58
  msgstr "Odwiedzin ogółem"
59
 
60
+ #: ../includes/functions.php:133
61
  msgid "No Posts"
62
  msgstr "Brak wpisów"
63
 
64
+ #: ../includes/settings.php:36
65
  msgid "PHP"
66
  msgstr "PHP"
67
 
68
+ #: ../includes/settings.php:37
69
  msgid "JavaScript"
70
  msgstr "JavaScript"
71
 
72
+ #: ../includes/settings.php:41
73
  msgid "minutes"
74
  msgstr "minuty"
75
 
76
+ #: ../includes/settings.php:42
77
  msgid "hours"
78
  msgstr "godziny"
79
 
80
+ #: ../includes/settings.php:43
81
  msgid "days"
82
  msgstr "dni"
83
 
84
+ #: ../includes/settings.php:44
85
  msgid "weeks"
86
  msgstr "tygodnie"
87
 
88
+ #: ../includes/settings.php:45
89
  msgid "months"
90
  msgstr "miesiące"
91
 
92
+ #: ../includes/settings.php:46
93
  msgid "years"
94
  msgstr "lata"
95
 
96
+ #: ../includes/settings.php:50
97
  msgid "robots"
98
  msgstr "roboty"
99
 
100
+ #: ../includes/settings.php:51
101
  msgid "logged in users"
102
  msgstr "zalogowani użytkownicy"
103
 
104
+ #: ../includes/settings.php:52
105
  msgid "guests"
106
  msgstr "goście"
107
 
108
+ #: ../includes/settings.php:53
109
  msgid "selected user roles"
110
  msgstr "wybrane role użytkowników"
111
 
112
+ #: ../includes/settings.php:57
113
  msgid "before the content"
114
  msgstr "przed treścią"
115
 
116
+ #: ../includes/settings.php:58
117
  msgid "after the content"
118
  msgstr "po treści"
119
 
120
+ #: ../includes/settings.php:59
121
  msgid "manual"
122
  msgstr "ręcznie"
123
 
124
+ #: ../includes/settings.php:63
125
  msgid "icon"
126
  msgstr "ikona"
127
 
128
+ #: ../includes/settings.php:64
129
  msgid "label"
130
  msgstr "etykieta"
131
 
132
+ #: ../includes/settings.php:69
133
  msgid "General"
134
  msgstr "Ogólne"
135
 
136
+ #: ../includes/settings.php:75
137
  msgid "Display"
138
  msgstr "Wyświetlanie"
139
 
140
+ #: ../includes/settings.php:85
141
+ msgid "Home"
142
+ msgstr "Strona główna"
143
+
144
+ #: ../includes/settings.php:86
145
+ msgid "Archives"
146
+ msgstr "Archiwa"
147
+
148
+ #: ../includes/settings.php:87
149
+ msgid "Single pages"
150
+ msgstr "Pojedyncze strony"
151
+
152
+ #: ../includes/settings.php:88
153
+ msgid "Search results"
154
+ msgstr "Wyniki wyszukiwania"
155
+
156
+ #: ../includes/settings.php:137 ../includes/settings.php:149
157
+ #: ../includes/settings.php:161
158
  msgid "Post Views Counter"
159
  msgstr "Licznik odwiedzin"
160
 
161
+ #: ../includes/settings.php:163
162
  msgid "Need support?"
163
  msgstr "Potrzebujesz pomocy?"
164
 
165
+ #: ../includes/settings.php:164
166
  msgid ""
167
  "If you are having problems with this plugin, please talk about them in the"
168
  msgstr "Jeśli masz jakieś problemy z tą wtyczką, powiedz o nich"
169
 
170
+ #: ../includes/settings.php:164
171
  msgid "Support forum"
172
  msgstr "Forum pomocy"
173
 
174
+ #: ../includes/settings.php:166
175
  msgid "Do you like this plugin?"
176
  msgstr "Lubisz tę wtyczkę?"
177
 
178
+ #: ../includes/settings.php:167
179
  msgid "Rate it 5"
180
  msgstr "Oceń ją na 5"
181
 
182
+ #: ../includes/settings.php:167
183
  msgid "on WordPress.org"
184
  msgstr "na WordPress.org"
185
 
186
+ #: ../includes/settings.php:168
187
  msgid "Blog about it & link to the"
188
  msgstr "Napisz o niej i dodaj link"
189
 
190
+ #: ../includes/settings.php:168
191
  msgid "plugin page"
192
  msgstr "do strony wtyczki"
193
 
194
+ #: ../includes/settings.php:169
195
  msgid "Check out our other"
196
  msgstr "Sprawdż nasze inne"
197
 
198
+ #: ../includes/settings.php:169
199
  msgid "WordPress plugins"
200
  msgstr "wtyczki do WordPressa"
201
 
202
+ #: ../includes/settings.php:172
203
  msgid "Created by"
204
  msgstr "Stworzone przez"
205
 
206
+ #: ../includes/settings.php:188
207
  msgid "Reset to defaults"
208
  msgstr "Resetuj do domyślnych"
209
 
210
+ #: ../includes/settings.php:204
211
  msgid "General settings"
212
  msgstr "Ustawienia ogólne"
213
 
214
+ #: ../includes/settings.php:205
215
  msgid "Post Types Count"
216
  msgstr "Własne typy wpisów"
217
 
218
+ #: ../includes/settings.php:206
219
  msgid "Counter Mode"
220
  msgstr "Tryb pracy licznika"
221
 
222
+ #: ../includes/settings.php:207
223
  msgid "Post Views Column"
224
  msgstr "Kolumna z liczbą odwiedzin"
225
 
226
+ #: ../includes/settings.php:208
227
  msgid "Restrict Edit"
228
  msgstr "Ograniczenie edycji"
229
 
230
+ #: ../includes/settings.php:209
231
  msgid "Time Between Counts"
232
  msgstr "Czas między zliczaniem"
233
 
234
+ #: ../includes/settings.php:210
235
  msgid "Reset Data Interval"
236
  msgstr "Czas resetowania danych"
237
 
238
+ #: ../includes/settings.php:211
239
  msgid "Flush Object Cache Interval"
240
  msgstr "Czas czyszczenia cache"
241
 
242
+ #: ../includes/settings.php:212
243
  msgid "Exclude Visitors"
244
  msgstr "Wykluczanie odwiedzających"
245
 
246
+ #: ../includes/settings.php:213
247
  msgid "Exclude IPs"
248
  msgstr "Wykluczanie IP"
249
 
250
+ #: ../includes/settings.php:214
251
  msgid "WP-PostViews"
252
  msgstr "WP-PostViews"
253
 
254
+ #: ../includes/settings.php:215
255
  msgid "Deactivation"
256
  msgstr "Deaktywacja wtyczki"
257
 
258
+ #: ../includes/settings.php:219
259
  msgid "Display settings"
260
  msgstr "Ustawienia wyświetlania"
261
 
262
+ #: ../includes/settings.php:220
263
  msgid "Post Views Label"
264
  msgstr "Etykieta licznika"
265
 
266
+ #: ../includes/settings.php:221
267
+ msgid "Post Type"
268
+ msgstr "Typ wpisu"
269
 
270
+ #: ../includes/settings.php:222
271
+ msgid "Page Type"
272
+ msgstr "Rodzaj strony"
273
 
274
+ #: ../includes/settings.php:223
275
+ msgid "User Type"
276
+ msgstr "Typ użytkownika"
277
+
278
+ #: ../includes/settings.php:224
279
  msgid "Position"
280
  msgstr "Pozycja"
281
 
282
+ #: ../includes/settings.php:225
283
  msgid "Display Style"
284
  msgstr "Styl wyświetlania"
285
 
286
+ #: ../includes/settings.php:226
287
  msgid "Icon Class"
288
  msgstr "Klasa ikony"
289
 
290
+ #: ../includes/settings.php:237
291
  msgid "Enter the label for the post views counter field."
292
  msgstr "Wpisz etykietę jaka będzie wyświetlana w liczniku odwiedzin wpisu."
293
 
294
+ #: ../includes/settings.php:255
295
  msgid "Select post types for which post views will be counted."
296
  msgstr "Wybierz typy wpisów dla których będzie włączone zliczanie."
297
 
298
+ #: ../includes/settings.php:272
299
+ msgid "Select post types for which the views count will be displayed."
300
+ msgstr "Wybierz typy wpisów na których chcesz wyświetlać liczbę odwiedzin."
301
 
302
+ #: ../includes/settings.php:291
303
  msgid ""
304
  "Select the method of collecting post views data. If you are using any of the "
305
  "caching plugins select Javascript."
307
  "Wybierz metodę gromadzenia danych. Jeśli używaż jakiejkolwiek wtyczki do "
308
  "cachowania wybierz Javascript."
309
 
310
+ #: ../includes/settings.php:301
311
  msgid ""
312
  "Enable to display post views count column for each of the selected post "
313
  "types."
314
  msgstr "Włącz aby wyświetlić kolumnę z liczbą odsłon."
315
 
316
+ #: ../includes/settings.php:321
317
  msgid "Enter the time between single user visit count."
318
  msgstr "Określ czas pomiędzy zliczaniem wizyt poszczególnego użytkownika."
319
 
320
+ #: ../includes/settings.php:341
321
  msgid ""
322
  "Delete single day post views data older than specified above. Enter 0 "
323
  "(number zero) if you want to preserve your data regardless of its age."
325
  "Usuwanie dziennych danych o liczbie wpisów po określonym powyżej czasie. "
326
  "Wpisz 0 jeśli chcesz przetrzymywać te dane bez ograniczeń."
327
 
328
+ #: ../includes/settings.php:361
329
  msgid ""
330
  "How often to flush cached view counts from the object cache into the "
331
  "database. This feature is used only if a persistent object cache is detected "
344
  "jeśli cachowanie obiektowe nie będzie dostępne lub cache zostanie "
345
  "wyczyszczony w trakcie trwania wybranego okresu."
346
 
347
+ #: ../includes/settings.php:378 ../includes/settings.php:538
348
  msgid "Use it to hide the post views counter from selected type of visitors."
349
  msgstr ""
350
  "Użyj tego aby ograniczyć wyświetlanie licznika do określonych typów "
351
  "użytkowników."
352
 
353
+ #: ../includes/settings.php:385 ../includes/settings.php:545
354
  msgid "Use it to hide the post views counter from selected user roles."
355
  msgstr ""
356
  "Użyj tego aby ograniczyć wyświetlanie licznika do określonych tról "
357
  "użytkowników."
358
 
359
+ #: ../includes/settings.php:405 ../includes/settings.php:411
360
  msgid "Remove"
361
  msgstr "Usuń"
362
 
363
+ #: ../includes/settings.php:416
364
  msgid "Add new"
365
  msgstr "Dodaj nowy"
366
 
367
+ #: ../includes/settings.php:416
368
  msgid "Add my current IP"
369
  msgstr "Dodaj mój aktualny IP"
370
 
371
+ #: ../includes/settings.php:417
372
  msgid "Enter the IP addresses to be excluded from post views count."
373
  msgstr "Wpisz adresy IP, któe mają być wyłączone z działania licznika."
374
 
375
+ #: ../includes/settings.php:428
376
  msgid "Import"
377
  msgstr "Importuj"
378
 
379
+ #: ../includes/settings.php:429
380
  msgid "Import post views data from WP-PostViews plugin."
381
  msgstr "Importuj dane o liczbie odwiedzin z wtyczki WP-PostViews."
382
 
383
+ #: ../includes/settings.php:430
384
  msgid "Override existing Post Views Counter data."
385
  msgstr "Nadpisz istniejące dane Licznika odwiedzin."
386
 
387
+ #: ../includes/settings.php:441
388
  msgid "Enable to restrict post views editing to admins only."
389
  msgstr ""
390
  "Włącz aby ograniczyć możliwość edycji liczby wpisów do administratorów."
391
 
392
+ #: ../includes/settings.php:451
393
  msgid "Enable to delete all plugin data on deactivation."
394
  msgstr "Włącz aby usunąć wszystkie dane wtyczki podczas deaktywacji"
395
 
396
+ #: ../includes/settings.php:468
397
+ msgid "Select page types where the views count will be displayed."
398
+ msgstr "Wybierz rodzaje stron na których chcesz wyświetlać liczbę odwiedzin."
399
+
400
+ #: ../includes/settings.php:487
401
  msgid ""
402
  "Select where would you like to display the post views counter. Use [post-"
403
  "views] shortcode for manual display."
405
  "Wybierz w którym miejscu chcesz wyświetlać licznik odwiedzin. Użyj skrótu "
406
  "[post-views] aby wyświetlić licznik ręcznie."
407
 
408
+ #: ../includes/settings.php:506
409
  msgid "Choose how to display the post views counter."
410
  msgstr "Wybierz w jaki sposób chcesz wyświetlać licznik."
411
 
412
+ #: ../includes/settings.php:517
413
  #, php-format
414
  msgid ""
415
  "Enter the post views icon class. Any of the <a href=\"%s\" target=\"_blank"
418
  "Wpisz klasę CSS ikony. Każda z ikond typu <a href=\"%s\" target=\"_blank"
419
  "\">Dashicons</a> może być tutaj zastosowana."
420
 
421
+ #: ../includes/settings.php:576
422
  msgid "Post views data imported succesfully."
423
  msgstr "Dane dotyczące liczby odwiedzin zostały zaimportowane pomyślnie."
424
 
425
+ #: ../includes/settings.php:578
426
  msgid "There was no post views data to import."
427
  msgstr "Nie znaleziono danych do zaimportowania,"
428
 
429
+ #: ../includes/settings.php:749
430
  msgid "General settings restored to defaults."
431
  msgstr "Ustawienia zostały przywrócone do domyślnych."
432
 
433
+ #: ../includes/settings.php:753
434
  msgid "Display settings restored to defaults."
435
  msgstr "Ustawienia wyświetlania została przywrócone do domyślnych."
436
 
490
  msgid "Thumbnail size"
491
  msgstr "WIelkość miniatury"
492
 
493
+ #: ../post-views-counter.php:281
494
  msgid "Are you sure you want to reset these settings to defaults?"
495
  msgstr "Czy jesteś pewny, że chcesz zresetować ustawienia do domyślnych?"
496
 
497
+ #: ../post-views-counter.php:324
498
  msgid "Support"
499
  msgstr "Forum pomocy"
500
 
501
+ #: ../post-views-counter.php:343
502
  msgid "Settings"
503
  msgstr "Ustawienia"
504
 
505
+ #~ msgid "Post Types Display"
506
+ #~ msgstr "Wyświetlanie licznika"
507
+
508
+ #~ msgid "Restrict Display"
509
+ #~ msgstr "Ograniczenia wyświetlania"
510
+
511
+ #~ msgid "Select post types for which post views will be displayed."
512
+ #~ msgstr "Wybierz typy wpisów dla których licznik będzie wyświetlony."
513
+
514
  #~ msgid "WP-PostViews data imported succesfully."
515
  #~ msgstr "Dane z wtyczki WP-PostViews zostały zaimportowane pomyślnie."
516
 
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: 2016-02-12 10:50+0100\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"
@@ -20,8 +20,8 @@ msgstr ""
20
 
21
  #: ../includes/columns.php:59 ../includes/columns.php:194
22
  #: ../includes/columns.php:200 ../includes/columns.php:272
23
- #: ../includes/dashboard.php:28 ../includes/dashboard.php:87
24
- #: ../includes/dashboard.php:97 ../includes/dashboard.php:107
25
  msgid "Post Views"
26
  msgstr ""
27
 
@@ -53,255 +53,275 @@ msgstr ""
53
  msgid "You do not have permission to access this page."
54
  msgstr ""
55
 
56
- #: ../includes/dashboard.php:121
57
  msgid "Total Views"
58
  msgstr ""
59
 
60
- #: ../includes/functions.php:132
61
  msgid "No Posts"
62
  msgstr ""
63
 
64
- #: ../includes/settings.php:35
65
  msgid "PHP"
66
  msgstr ""
67
 
68
- #: ../includes/settings.php:36
69
  msgid "JavaScript"
70
  msgstr ""
71
 
72
- #: ../includes/settings.php:40
73
  msgid "minutes"
74
  msgstr ""
75
 
76
- #: ../includes/settings.php:41
77
  msgid "hours"
78
  msgstr ""
79
 
80
- #: ../includes/settings.php:42
81
  msgid "days"
82
  msgstr ""
83
 
84
- #: ../includes/settings.php:43
85
  msgid "weeks"
86
  msgstr ""
87
 
88
- #: ../includes/settings.php:44
89
  msgid "months"
90
  msgstr ""
91
 
92
- #: ../includes/settings.php:45
93
  msgid "years"
94
  msgstr ""
95
 
96
- #: ../includes/settings.php:49
97
  msgid "robots"
98
  msgstr ""
99
 
100
- #: ../includes/settings.php:50
101
  msgid "logged in users"
102
  msgstr ""
103
 
104
- #: ../includes/settings.php:51
105
  msgid "guests"
106
  msgstr ""
107
 
108
- #: ../includes/settings.php:52
109
  msgid "selected user roles"
110
  msgstr ""
111
 
112
- #: ../includes/settings.php:56
113
  msgid "before the content"
114
  msgstr ""
115
 
116
- #: ../includes/settings.php:57
117
  msgid "after the content"
118
  msgstr ""
119
 
120
- #: ../includes/settings.php:58
121
  msgid "manual"
122
  msgstr ""
123
 
124
- #: ../includes/settings.php:62
125
  msgid "icon"
126
  msgstr ""
127
 
128
- #: ../includes/settings.php:63
129
  msgid "label"
130
  msgstr ""
131
 
132
- #: ../includes/settings.php:68
133
  msgid "General"
134
  msgstr ""
135
 
136
- #: ../includes/settings.php:74
137
  msgid "Display"
138
  msgstr ""
139
 
140
- #: ../includes/settings.php:129 ../includes/settings.php:141
141
- #: ../includes/settings.php:153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  msgid "Post Views Counter"
143
  msgstr ""
144
 
145
- #: ../includes/settings.php:155
146
  msgid "Need support?"
147
  msgstr ""
148
 
149
- #: ../includes/settings.php:156
150
  msgid ""
151
  "If you are having problems with this plugin, please talk about them in the"
152
  msgstr ""
153
 
154
- #: ../includes/settings.php:156
155
  msgid "Support forum"
156
  msgstr ""
157
 
158
- #: ../includes/settings.php:158
159
  msgid "Do you like this plugin?"
160
  msgstr ""
161
 
162
- #: ../includes/settings.php:159
163
  msgid "Rate it 5"
164
  msgstr ""
165
 
166
- #: ../includes/settings.php:159
167
  msgid "on WordPress.org"
168
  msgstr ""
169
 
170
- #: ../includes/settings.php:160
171
  msgid "Blog about it & link to the"
172
  msgstr ""
173
 
174
- #: ../includes/settings.php:160
175
  msgid "plugin page"
176
  msgstr ""
177
 
178
- #: ../includes/settings.php:161
179
  msgid "Check out our other"
180
  msgstr ""
181
 
182
- #: ../includes/settings.php:161
183
  msgid "WordPress plugins"
184
  msgstr ""
185
 
186
- #: ../includes/settings.php:164
187
  msgid "Created by"
188
  msgstr ""
189
 
190
- #: ../includes/settings.php:180
191
  msgid "Reset to defaults"
192
  msgstr ""
193
 
194
- #: ../includes/settings.php:196
195
  msgid "General settings"
196
  msgstr ""
197
 
198
- #: ../includes/settings.php:197
199
  msgid "Post Types Count"
200
  msgstr ""
201
 
202
- #: ../includes/settings.php:198
203
  msgid "Counter Mode"
204
  msgstr ""
205
 
206
- #: ../includes/settings.php:199
207
  msgid "Post Views Column"
208
  msgstr ""
209
 
210
- #: ../includes/settings.php:200
211
  msgid "Restrict Edit"
212
  msgstr ""
213
 
214
- #: ../includes/settings.php:201
215
  msgid "Time Between Counts"
216
  msgstr ""
217
 
218
- #: ../includes/settings.php:202
219
  msgid "Reset Data Interval"
220
  msgstr ""
221
 
222
- #: ../includes/settings.php:203
223
  msgid "Flush Object Cache Interval"
224
  msgstr ""
225
 
226
- #: ../includes/settings.php:204
227
  msgid "Exclude Visitors"
228
  msgstr ""
229
 
230
- #: ../includes/settings.php:205
231
  msgid "Exclude IPs"
232
  msgstr ""
233
 
234
- #: ../includes/settings.php:206
235
  msgid "WP-PostViews"
236
  msgstr ""
237
 
238
- #: ../includes/settings.php:207
239
  msgid "Deactivation"
240
  msgstr ""
241
 
242
- #: ../includes/settings.php:211
243
  msgid "Display settings"
244
  msgstr ""
245
 
246
- #: ../includes/settings.php:212
247
  msgid "Post Views Label"
248
  msgstr ""
249
 
250
- #: ../includes/settings.php:213
251
- msgid "Post Types Display"
252
  msgstr ""
253
 
254
- #: ../includes/settings.php:214
255
- msgid "Restrict Display"
256
  msgstr ""
257
 
258
- #: ../includes/settings.php:215
 
 
 
 
259
  msgid "Position"
260
  msgstr ""
261
 
262
- #: ../includes/settings.php:216
263
  msgid "Display Style"
264
  msgstr ""
265
 
266
- #: ../includes/settings.php:217
267
  msgid "Icon Class"
268
  msgstr ""
269
 
270
- #: ../includes/settings.php:228
271
  msgid "Enter the label for the post views counter field."
272
  msgstr ""
273
 
274
- #: ../includes/settings.php:246
275
  msgid "Select post types for which post views will be counted."
276
  msgstr ""
277
 
278
- #: ../includes/settings.php:263
279
- msgid "Select post types for which post views will be displayed."
280
  msgstr ""
281
 
282
- #: ../includes/settings.php:282
283
  msgid ""
284
  "Select the method of collecting post views data. If you are using any of the "
285
  "caching plugins select Javascript."
286
  msgstr ""
287
 
288
- #: ../includes/settings.php:292
289
  msgid ""
290
  "Enable to display post views count column for each of the selected post "
291
  "types."
292
  msgstr ""
293
 
294
- #: ../includes/settings.php:312
295
  msgid "Enter the time between single user visit count."
296
  msgstr ""
297
 
298
- #: ../includes/settings.php:332
299
  msgid ""
300
  "Delete single day post views data older than specified above. Enter 0 "
301
  "(number zero) if you want to preserve your data regardless of its age."
302
  msgstr ""
303
 
304
- #: ../includes/settings.php:352
305
  msgid ""
306
  "How often to flush cached view counts from the object cache into the "
307
  "database. This feature is used only if a persistent object cache is detected "
@@ -313,80 +333,84 @@ msgid ""
313
  "interval."
314
  msgstr ""
315
 
316
- #: ../includes/settings.php:369 ../includes/settings.php:512
317
  msgid "Use it to hide the post views counter from selected type of visitors."
318
  msgstr ""
319
 
320
- #: ../includes/settings.php:376 ../includes/settings.php:519
321
  msgid "Use it to hide the post views counter from selected user roles."
322
  msgstr ""
323
 
324
- #: ../includes/settings.php:396 ../includes/settings.php:402
325
  msgid "Remove"
326
  msgstr ""
327
 
328
- #: ../includes/settings.php:407
329
  msgid "Add new"
330
  msgstr ""
331
 
332
- #: ../includes/settings.php:407
333
  msgid "Add my current IP"
334
  msgstr ""
335
 
336
- #: ../includes/settings.php:408
337
  msgid "Enter the IP addresses to be excluded from post views count."
338
  msgstr ""
339
 
340
- #: ../includes/settings.php:419
341
  msgid "Import"
342
  msgstr ""
343
 
344
- #: ../includes/settings.php:420
345
  msgid "Import post views data from WP-PostViews plugin."
346
  msgstr ""
347
 
348
- #: ../includes/settings.php:421
349
  msgid "Override existing Post Views Counter data."
350
  msgstr ""
351
 
352
- #: ../includes/settings.php:432
353
  msgid "Enable to restrict post views editing to admins only."
354
  msgstr ""
355
 
356
- #: ../includes/settings.php:442
357
  msgid "Enable to delete all plugin data on deactivation."
358
  msgstr ""
359
 
360
- #: ../includes/settings.php:461
 
 
 
 
361
  msgid ""
362
  "Select where would you like to display the post views counter. Use [post-"
363
  "views] shortcode for manual display."
364
  msgstr ""
365
 
366
- #: ../includes/settings.php:480
367
  msgid "Choose how to display the post views counter."
368
  msgstr ""
369
 
370
- #: ../includes/settings.php:491
371
  #, php-format
372
  msgid ""
373
  "Enter the post views icon class. Any of the <a href=\"%s\" target=\"_blank"
374
  "\">Dashicons</a> classes are available."
375
  msgstr ""
376
 
377
- #: ../includes/settings.php:550
378
  msgid "Post views data imported succesfully."
379
  msgstr ""
380
 
381
- #: ../includes/settings.php:552
382
  msgid "There was no post views data to import."
383
  msgstr ""
384
 
385
- #: ../includes/settings.php:710
386
  msgid "General settings restored to defaults."
387
  msgstr ""
388
 
389
- #: ../includes/settings.php:714
390
  msgid "Display settings restored to defaults."
391
  msgstr ""
392
 
@@ -446,14 +470,14 @@ msgstr ""
446
  msgid "Thumbnail size"
447
  msgstr ""
448
 
449
- #: ../post-views-counter.php:280
450
  msgid "Are you sure you want to reset these settings to defaults?"
451
  msgstr ""
452
 
453
- #: ../post-views-counter.php:323
454
  msgid "Support"
455
  msgstr ""
456
 
457
- #: ../post-views-counter.php:342
458
  msgid "Settings"
459
  msgstr ""
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Post Views Counter\n"
5
+ "POT-Creation-Date: 2016-04-13 12:19+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"
20
 
21
  #: ../includes/columns.php:59 ../includes/columns.php:194
22
  #: ../includes/columns.php:200 ../includes/columns.php:272
23
+ #: ../includes/dashboard.php:28 ../includes/dashboard.php:89
24
+ #: ../includes/dashboard.php:99 ../includes/dashboard.php:109
25
  msgid "Post Views"
26
  msgstr ""
27
 
53
  msgid "You do not have permission to access this page."
54
  msgstr ""
55
 
56
+ #: ../includes/dashboard.php:123
57
  msgid "Total Views"
58
  msgstr ""
59
 
60
+ #: ../includes/functions.php:133
61
  msgid "No Posts"
62
  msgstr ""
63
 
64
+ #: ../includes/settings.php:36
65
  msgid "PHP"
66
  msgstr ""
67
 
68
+ #: ../includes/settings.php:37
69
  msgid "JavaScript"
70
  msgstr ""
71
 
72
+ #: ../includes/settings.php:41
73
  msgid "minutes"
74
  msgstr ""
75
 
76
+ #: ../includes/settings.php:42
77
  msgid "hours"
78
  msgstr ""
79
 
80
+ #: ../includes/settings.php:43
81
  msgid "days"
82
  msgstr ""
83
 
84
+ #: ../includes/settings.php:44
85
  msgid "weeks"
86
  msgstr ""
87
 
88
+ #: ../includes/settings.php:45
89
  msgid "months"
90
  msgstr ""
91
 
92
+ #: ../includes/settings.php:46
93
  msgid "years"
94
  msgstr ""
95
 
96
+ #: ../includes/settings.php:50
97
  msgid "robots"
98
  msgstr ""
99
 
100
+ #: ../includes/settings.php:51
101
  msgid "logged in users"
102
  msgstr ""
103
 
104
+ #: ../includes/settings.php:52
105
  msgid "guests"
106
  msgstr ""
107
 
108
+ #: ../includes/settings.php:53
109
  msgid "selected user roles"
110
  msgstr ""
111
 
112
+ #: ../includes/settings.php:57
113
  msgid "before the content"
114
  msgstr ""
115
 
116
+ #: ../includes/settings.php:58
117
  msgid "after the content"
118
  msgstr ""
119
 
120
+ #: ../includes/settings.php:59
121
  msgid "manual"
122
  msgstr ""
123
 
124
+ #: ../includes/settings.php:63
125
  msgid "icon"
126
  msgstr ""
127
 
128
+ #: ../includes/settings.php:64
129
  msgid "label"
130
  msgstr ""
131
 
132
+ #: ../includes/settings.php:69
133
  msgid "General"
134
  msgstr ""
135
 
136
+ #: ../includes/settings.php:75
137
  msgid "Display"
138
  msgstr ""
139
 
140
+ #: ../includes/settings.php:85
141
+ msgid "Home"
142
+ msgstr ""
143
+
144
+ #: ../includes/settings.php:86
145
+ msgid "Archives"
146
+ msgstr ""
147
+
148
+ #: ../includes/settings.php:87
149
+ msgid "Single pages"
150
+ msgstr ""
151
+
152
+ #: ../includes/settings.php:88
153
+ msgid "Search results"
154
+ msgstr ""
155
+
156
+ #: ../includes/settings.php:137 ../includes/settings.php:149
157
+ #: ../includes/settings.php:161
158
  msgid "Post Views Counter"
159
  msgstr ""
160
 
161
+ #: ../includes/settings.php:163
162
  msgid "Need support?"
163
  msgstr ""
164
 
165
+ #: ../includes/settings.php:164
166
  msgid ""
167
  "If you are having problems with this plugin, please talk about them in the"
168
  msgstr ""
169
 
170
+ #: ../includes/settings.php:164
171
  msgid "Support forum"
172
  msgstr ""
173
 
174
+ #: ../includes/settings.php:166
175
  msgid "Do you like this plugin?"
176
  msgstr ""
177
 
178
+ #: ../includes/settings.php:167
179
  msgid "Rate it 5"
180
  msgstr ""
181
 
182
+ #: ../includes/settings.php:167
183
  msgid "on WordPress.org"
184
  msgstr ""
185
 
186
+ #: ../includes/settings.php:168
187
  msgid "Blog about it & link to the"
188
  msgstr ""
189
 
190
+ #: ../includes/settings.php:168
191
  msgid "plugin page"
192
  msgstr ""
193
 
194
+ #: ../includes/settings.php:169
195
  msgid "Check out our other"
196
  msgstr ""
197
 
198
+ #: ../includes/settings.php:169
199
  msgid "WordPress plugins"
200
  msgstr ""
201
 
202
+ #: ../includes/settings.php:172
203
  msgid "Created by"
204
  msgstr ""
205
 
206
+ #: ../includes/settings.php:188
207
  msgid "Reset to defaults"
208
  msgstr ""
209
 
210
+ #: ../includes/settings.php:204
211
  msgid "General settings"
212
  msgstr ""
213
 
214
+ #: ../includes/settings.php:205
215
  msgid "Post Types Count"
216
  msgstr ""
217
 
218
+ #: ../includes/settings.php:206
219
  msgid "Counter Mode"
220
  msgstr ""
221
 
222
+ #: ../includes/settings.php:207
223
  msgid "Post Views Column"
224
  msgstr ""
225
 
226
+ #: ../includes/settings.php:208
227
  msgid "Restrict Edit"
228
  msgstr ""
229
 
230
+ #: ../includes/settings.php:209
231
  msgid "Time Between Counts"
232
  msgstr ""
233
 
234
+ #: ../includes/settings.php:210
235
  msgid "Reset Data Interval"
236
  msgstr ""
237
 
238
+ #: ../includes/settings.php:211
239
  msgid "Flush Object Cache Interval"
240
  msgstr ""
241
 
242
+ #: ../includes/settings.php:212
243
  msgid "Exclude Visitors"
244
  msgstr ""
245
 
246
+ #: ../includes/settings.php:213
247
  msgid "Exclude IPs"
248
  msgstr ""
249
 
250
+ #: ../includes/settings.php:214
251
  msgid "WP-PostViews"
252
  msgstr ""
253
 
254
+ #: ../includes/settings.php:215
255
  msgid "Deactivation"
256
  msgstr ""
257
 
258
+ #: ../includes/settings.php:219
259
  msgid "Display settings"
260
  msgstr ""
261
 
262
+ #: ../includes/settings.php:220
263
  msgid "Post Views Label"
264
  msgstr ""
265
 
266
+ #: ../includes/settings.php:221
267
+ msgid "Post Type"
268
  msgstr ""
269
 
270
+ #: ../includes/settings.php:222
271
+ msgid "Page Type"
272
  msgstr ""
273
 
274
+ #: ../includes/settings.php:223
275
+ msgid "User Type"
276
+ msgstr ""
277
+
278
+ #: ../includes/settings.php:224
279
  msgid "Position"
280
  msgstr ""
281
 
282
+ #: ../includes/settings.php:225
283
  msgid "Display Style"
284
  msgstr ""
285
 
286
+ #: ../includes/settings.php:226
287
  msgid "Icon Class"
288
  msgstr ""
289
 
290
+ #: ../includes/settings.php:237
291
  msgid "Enter the label for the post views counter field."
292
  msgstr ""
293
 
294
+ #: ../includes/settings.php:255
295
  msgid "Select post types for which post views will be counted."
296
  msgstr ""
297
 
298
+ #: ../includes/settings.php:272
299
+ msgid "Select post types for which the views count will be displayed."
300
  msgstr ""
301
 
302
+ #: ../includes/settings.php:291
303
  msgid ""
304
  "Select the method of collecting post views data. If you are using any of the "
305
  "caching plugins select Javascript."
306
  msgstr ""
307
 
308
+ #: ../includes/settings.php:301
309
  msgid ""
310
  "Enable to display post views count column for each of the selected post "
311
  "types."
312
  msgstr ""
313
 
314
+ #: ../includes/settings.php:321
315
  msgid "Enter the time between single user visit count."
316
  msgstr ""
317
 
318
+ #: ../includes/settings.php:341
319
  msgid ""
320
  "Delete single day post views data older than specified above. Enter 0 "
321
  "(number zero) if you want to preserve your data regardless of its age."
322
  msgstr ""
323
 
324
+ #: ../includes/settings.php:361
325
  msgid ""
326
  "How often to flush cached view counts from the object cache into the "
327
  "database. This feature is used only if a persistent object cache is detected "
333
  "interval."
334
  msgstr ""
335
 
336
+ #: ../includes/settings.php:378 ../includes/settings.php:538
337
  msgid "Use it to hide the post views counter from selected type of visitors."
338
  msgstr ""
339
 
340
+ #: ../includes/settings.php:385 ../includes/settings.php:545
341
  msgid "Use it to hide the post views counter from selected user roles."
342
  msgstr ""
343
 
344
+ #: ../includes/settings.php:405 ../includes/settings.php:411
345
  msgid "Remove"
346
  msgstr ""
347
 
348
+ #: ../includes/settings.php:416
349
  msgid "Add new"
350
  msgstr ""
351
 
352
+ #: ../includes/settings.php:416
353
  msgid "Add my current IP"
354
  msgstr ""
355
 
356
+ #: ../includes/settings.php:417
357
  msgid "Enter the IP addresses to be excluded from post views count."
358
  msgstr ""
359
 
360
+ #: ../includes/settings.php:428
361
  msgid "Import"
362
  msgstr ""
363
 
364
+ #: ../includes/settings.php:429
365
  msgid "Import post views data from WP-PostViews plugin."
366
  msgstr ""
367
 
368
+ #: ../includes/settings.php:430
369
  msgid "Override existing Post Views Counter data."
370
  msgstr ""
371
 
372
+ #: ../includes/settings.php:441
373
  msgid "Enable to restrict post views editing to admins only."
374
  msgstr ""
375
 
376
+ #: ../includes/settings.php:451
377
  msgid "Enable to delete all plugin data on deactivation."
378
  msgstr ""
379
 
380
+ #: ../includes/settings.php:468
381
+ msgid "Select page types where the views count will be displayed."
382
+ msgstr ""
383
+
384
+ #: ../includes/settings.php:487
385
  msgid ""
386
  "Select where would you like to display the post views counter. Use [post-"
387
  "views] shortcode for manual display."
388
  msgstr ""
389
 
390
+ #: ../includes/settings.php:506
391
  msgid "Choose how to display the post views counter."
392
  msgstr ""
393
 
394
+ #: ../includes/settings.php:517
395
  #, php-format
396
  msgid ""
397
  "Enter the post views icon class. Any of the <a href=\"%s\" target=\"_blank"
398
  "\">Dashicons</a> classes are available."
399
  msgstr ""
400
 
401
+ #: ../includes/settings.php:576
402
  msgid "Post views data imported succesfully."
403
  msgstr ""
404
 
405
+ #: ../includes/settings.php:578
406
  msgid "There was no post views data to import."
407
  msgstr ""
408
 
409
+ #: ../includes/settings.php:749
410
  msgid "General settings restored to defaults."
411
  msgstr ""
412
 
413
+ #: ../includes/settings.php:753
414
  msgid "Display settings restored to defaults."
415
  msgstr ""
416
 
470
  msgid "Thumbnail size"
471
  msgstr ""
472
 
473
+ #: ../post-views-counter.php:281
474
  msgid "Are you sure you want to reset these settings to defaults?"
475
  msgstr ""
476
 
477
+ #: ../post-views-counter.php:324
478
  msgid "Support"
479
  msgstr ""
480
 
481
+ #: ../post-views-counter.php:343
482
  msgid "Settings"
483
  msgstr ""
post-views-counter.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Post Views Counter
4
  Description: Forget WP-PostViews. Display how many times a post, page or custom post type had been viewed in a simple, fast and reliable way.
5
- Version: 1.2.0
6
  Author: dFactory
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.2.0
35
  */
36
  final class Post_Views_Counter {
37
 
@@ -67,6 +67,7 @@ final class Post_Views_Counter {
67
  'display' => array(
68
  'label' => 'Post Views:',
69
  'post_types_display' => array( 'post' ),
 
70
  'restrict_display' => array(
71
  'groups' => array(),
72
  'roles' => array()
@@ -79,7 +80,7 @@ final class Post_Views_Counter {
79
  'link_to_post' => true,
80
  'icon_class' => 'dashicons-chart-bar'
81
  ),
82
- 'version' => '1.2.0'
83
  );
84
 
85
  /**
2
  /*
3
  Plugin Name: Post Views Counter
4
  Description: Forget WP-PostViews. Display how many times a post, page or custom post type had been viewed in a simple, fast and reliable way.
5
+ Version: 1.2.1
6
  Author: dFactory
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.2.1
35
  */
36
  final class Post_Views_Counter {
37
 
67
  'display' => array(
68
  'label' => 'Post Views:',
69
  'post_types_display' => array( 'post' ),
70
+ 'page_types_display' => array( 'singular' ),
71
  'restrict_display' => array(
72
  'groups' => array(),
73
  'roles' => array()
80
  'link_to_post' => true,
81
  'icon_class' => 'dashicons-chart-bar'
82
  ),
83
+ 'version' => '1.2.1'
84
  );
85
 
86
  /**
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dfactory
3
  Donate link: http://www.dfactory.eu/
4
  Tags: counter, hits, postviews, post views, views, count
5
  Requires at least: 4.0.0
6
- Tested up to: 4.4.2
7
- Stable tag: 1.2.0
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -68,13 +68,17 @@ No questions yet.
68
 
69
  == Changelog ==
70
 
 
 
 
 
71
  = 1.2.0 =
72
- * New: Dashboard post views stats widget.
73
- * Fix: A couple of typos in method names.
74
 
75
  = 1.1.4 =
76
  * Fix: Dashicons link broken.
77
- * Tweak: Confirmed WordPress 4.4 compatibility.
78
 
79
  = 1.1.3 =
80
  * Fix: Duplicated views count in custom post types
@@ -134,5 +138,6 @@ Initial release
134
 
135
  == Upgrade Notice ==
136
 
137
- = 1.2.0 =
138
- * New: Dashboard post views stats widget.
 
3
  Donate link: http://www.dfactory.eu/
4
  Tags: counter, hits, postviews, post views, views, count
5
  Requires at least: 4.0.0
6
+ Tested up to: 4.5
7
+ Stable tag: 1.2.1
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
68
 
69
  == Changelog ==
70
 
71
+ = 1.2.1 =
72
+ * New: Option to display post views on select page types
73
+ * Tweak: Dashboard widget query optimization
74
+
75
  = 1.2.0 =
76
+ * New: Dashboard post views stats widget
77
+ * Fix: A couple of typos in method names
78
 
79
  = 1.1.4 =
80
  * Fix: Dashicons link broken.
81
+ * Tweak: Confirmed WordPress 4.4 compatibility
82
 
83
  = 1.1.3 =
84
  * Fix: Duplicated views count in custom post types
138
 
139
  == Upgrade Notice ==
140
 
141
+ = 1.2.1 =
142
+ * New: Option to display post views on select page types
143
+ * Tweak: Dashboard widget query optimization