Skip to content

Commit e6a92f4

Browse files
committed
Text Edit and Tweaks
1 parent e4799e3 commit e6a92f4

File tree

3 files changed

+42
-63
lines changed

3 files changed

+42
-63
lines changed

admin/settings/general-settings.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,13 @@ public function init_form_fields() {
232232
),
233233

234234
array(
235-
'name' => __( 'Page Views Count Customize', 'page-views-count' ),
235+
'name' => __( 'Counter Position and Style', 'page-views-count' ),
236236
'type' => 'heading',
237237
'id' => 'page_views_count_customize_box',
238238
'is_box' => true,
239239
),
240240
array(
241-
'name' => __( 'Position', 'page-views-count' ),
241+
'name' => __( 'Counter Position', 'page-views-count' ),
242242
'desc' => '',
243243
'id' => 'position',
244244
'default' => 'bottom',
@@ -249,7 +249,7 @@ public function init_form_fields() {
249249
'unchecked_label' => __( 'BOTTOM', 'page-views-count' ),
250250
),
251251
array(
252-
'name' => __( 'Alignment', 'page-views-count' ),
252+
'name' => __( 'Counter Alignment', 'page-views-count' ),
253253
'desc' => '',
254254
'id' => 'aligment',
255255
'default' => 'left',
@@ -276,7 +276,7 @@ public function init_form_fields() {
276276
),
277277
),
278278
array(
279-
'name' => __( 'Icon Size', 'page-views-count' ),
279+
'name' => __( 'Counter Icon Size', 'page-views-count' ),
280280
'id' => 'icon_size',
281281
'default' => 'medium',
282282
'type' => 'select',
@@ -287,7 +287,7 @@ public function init_form_fields() {
287287
),
288288
),
289289
array(
290-
'name' => __( 'Icon Color', 'page-views-count' ),
290+
'name' => __( 'Counter Icon Color', 'page-views-count' ),
291291
'id' => 'icon_color',
292292
'default' => '#000000',
293293
'type' => 'color',

pvc_class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ public static function pvc_stats_counter( $post_id, $increase_views = false ) {
151151
$html = '<div class="pvc_clear"></div>';
152152

153153
if ( $pvc_settings['enable_ajax_load'] == 'yes' ) {
154-
$stats_html = '<p id="pvc_stats_'.$post_id.'" class="pvc_stats '.$load_by_ajax_update_class.'" element-id="'.$post_id.'"><i class="fa fa-bar-chart pvc-stats-icon '.$pvc_settings['icon_size'].'" aria-hidden="true"></i><img src="'.A3_PVC_URL.'/ajax-loader.gif" border=0 /></p>';
154+
$stats_html = '<p id="pvc_stats_'.$post_id.'" class="pvc_stats '.$load_by_ajax_update_class.'" element-id="'.$post_id.'"><i class="fa fa-bar-chart pvc-stats-icon '.$pvc_settings['icon_size'].'" aria-hidden="true"></i> <img src="'.A3_PVC_URL.'/ajax-loader.gif" border=0 /></p>';
155155
} else {
156-
$stats_html = '<p class="pvc_stats" element-id="'.$post_id.'"><i class="fa fa-bar-chart pvc-stats-icon '.$pvc_settings['icon_size'].'" aria-hidden="true"></i>' . A3_PVC::pvc_get_stats( $post_id ) . '</p>';
156+
$stats_html = '<p class="pvc_stats" element-id="'.$post_id.'"><i class="fa fa-bar-chart pvc-stats-icon '.$pvc_settings['icon_size'].'" aria-hidden="true"></i> ' . A3_PVC::pvc_get_stats( $post_id ) . '</p>';
157157
}
158158

159159
$html .= apply_filters( 'pvc_filter_stats', $stats_html, $post_id );
@@ -180,7 +180,7 @@ public static function register_plugin_scripts() {
180180
?>
181181
<!-- PVC Template -->
182182
<script type="text/template" id="pvc-stats-view-template">
183-
<i class="fa fa-bar-chart pvc-stats-icon <?php echo $pvc_settings['icon_size']; ?>" aria-hidden="true"></i>
183+
<i class="fa fa-bar-chart pvc-stats-icon <?php echo $pvc_settings['icon_size']; ?>" aria-hidden="true"></i>
184184
<% if ( total_view > 0 ) { %>
185185
<%= total_view %> <%= total_view > 1 ? "<?php _e('total views', 'page-views-count'); ?>" : "<?php _e('total view', 'page-views-count'); ?>" %>,
186186
<% if ( today_view > 0 ) { %>

readme.txt

Lines changed: 34 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,56 @@
11
=== Page View Count ===
2-
Contributors: a3rev, nguyencongtuan
2+
Contributors: a3rev, A3 Revolution Software Development team, nguyencongtuan
33
Tags: wordpress page view, page view count , post views, postview count,
4-
Requires at least: 3.8
5-
Tested up to: 4.5
6-
Stable tag: 1.4.0
4+
Requires at least: 4.6
5+
Tested up to: 4.8
6+
Stable tag: 1.5.0
77
License: GPLv3
88
License URI: http://www.gnu.org/licenses/gpl-3.0.html
99

1010
Places an icon, all time views count and views today count at the bottom of posts, pages and custom post types on any Wordpress website.
1111

12-
== Description ==
12+
== DESCRIPTION ==
1313

14-
Page Views Count does 2 things - beautifully
14+
A beautifully simple to set up plugin that gives site visitors and site owners the ability to quickly and easily see how many people have visited that page or post.
1515

16-
1. On the front end it adds an icon and page views count to the bottom of pages and posts on your WordPress website.
16+
= FEATURES =
1717

18-
2. On the back end via check boxes you can apply or hide Page Views Count on all Posts, Pages and all custom posts types including WooCommerce and WP e-Commerce custom post types.
18+
* On the front end it adds an icon and page views count to the bottom or top of pages and posts on your WordPress website.
19+
* Switch ON | OFF hide Page Views Count for all Posts, Pages and all custom posts types including WooCommerce and WP e-Commerce custom post types.
20+
* Set the Position of the counter to show at the top of the page or post or at the bottom
21+
* Set alignment of the counter Left, Right or Centre
22+
* Set the colour and size of the counter icon
23+
* Option to use load by Ajax to prevent the count from being cached by caching plugins
24+
* Option to Manually set / edit total views and views today from Page View Count meta box on any post or page editor
25+
* Lightweight - Fontawesome icon (no image to load) and called via WordPress JSON RESTful API (not on ajax-admin.php)
26+
* All options and settings are point click - absolutely no coding required
1927

28+
= DEVELOPERS =
2029

21-
= Why we built it =
30+
On the plugins dashboard in the + Page Views Count Function options box you will find the Page Views Count functions and notes on how to use them.
2231

23-
We built this plugin and use this plugin because we think its is very good visual feedback for site users and site admins about the all time popularity and visits that day of individual posts and pages on any Wordpress website.
32+
* Use to manually add Page views count to any content or object in the theme.
33+
* Use to add page View Count to any content that is not create using WordPress custom post / taxonomy type.
34+
* Use to create a custom position of the Page Views Count
35+
* Functions support echo and return parameters when getting visitor stats on any variable.
2436

25-
= Functions =
37+
= TROUBLESHOOTING =
2638

27-
Using the 2 functions the plugin provides that allows you to manually add view counts to any content or object in your theme. This is very useful if your theme or a plugin creates content that does not use custom post type. Also useful if you want to change the position of the Page View Count from the default bottom of the page. Support for echo and return parameters when getting visitor stats on any variable.
39+
* The number 1 support request we get about the plugin is that it double or triple counts page or post loads. Yes it does and if you see that it is a Red Flag that you have a misconfigfuration or bug in your theme or a plugin. Page Views Count does exactly that - counts each time the page or post is loading in the browser - if its counting twice it is because the browser is double loading the page. That is a bad thing and you or your developer needs to fix that.
40+
41+
= CONTRIBUTE =
2842

29-
= Featuring Sass (Simply Awesome Stylesheets) =
43+
When you download a3 Lazy Load, you join our community. Regardless of if you are a WordPress beginner or experienced developer if you’re interested in contributing to Page Views Count development head over to the [Page Views Count GitHub Repository](https://github.com/a3rev/a3-lazy-load) to find out how you can contribute.
44+
Want to add a new language to a3 Lazy Load? Great! You can contribute via [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/page-views-count)
3045

31-
* All the front end style display is created via Sass for faster loader and render.
32-
* Sass is the most mature, stable, and powerful professional grade CSS extension language in the world.
33-
* This plugins backend admin panel are created in Sass.
34-
35-
36-
= Featuring backbone.js =
37-
38-
* All front end functions build with backbone.js
39-
* Will add full automatic integration with WordPress JSON RESTful API when it is released.
40-
41-
= Mobile Responsive App style admin interface =
42-
43-
* 100% compatible with WordPress v4.0 admin interface.
44-
* Backward compatibility to WordPress v3.8
45-
* Sass app style admin interface.
46-
* Admin app interface is fully mobile and tablet responsive.
47-
48-
= Localization =
49-
50-
If you do a translation for your site please send it to us and we'll include it in the plugins language folder and credit you here with the translation and a link to your site.
51-
52-
* English (default) - always included.
53-
* Dutch - thanks to [Renee Klein](http://wpdiscounts.com)
54-
* Italian - thanks to [Antonio Petricca](http://www.gvmprotezionecivile.it)
55-
* Indonesian - thanks to [Ridha Harwan](https://tarjiem.com/ )
56-
* Russian
57-
* .pot file (page-views-count.pot) in languages folder for translations.
58-
* [Go here](http://a3rev.com/contact-us-page/) to send your translation files to us.
59-
60-
= Documentation & Support =
61-
62-
If you require support first of all please view the plugins docs on the a3rev wiki. [Click Here to view](http://docs.a3rev.com/user-guides/page-view-count/) If you don't find the information you are looking for - THEN please post your support request under the support tab here on this page. If the Page View Count gadget does not show on any page or post it will be because the theme you are using does not use the WordPress Codex not because the plugin does not work.
63-
64-
PLEASE do not give the plugin a bad star rating - its the theme you are using not the plugin. Instead post about it on the support forum and we will have a look at it for you.
6546

6647
== Installation ==
6748

6849
= Minimum Requirements =
6950

70-
* WordPress 3.8
71-
* PHP version 5.2.4 or greater
72-
* MySQL version 5.0 or greater
51+
* WordPress 4.6
52+
* PHP version 5.5.0 or greater
53+
* MySQL version 5.5.0 or greater
7354

7455
= Automatic installation =
7556

@@ -96,13 +77,11 @@ The manual installation method involves down loading our plugin and uploading it
9677

9778
1. Install and activate the plugin
9879

99-
2. Go to Settings > Page View Count
100-
101-
3. Select which post and page types you want the Page View Count to show on.
80+
2. Go to WordPress Settings menu > Page View Count Menu
10281

103-
4. Have fun.
82+
3. Activate Page Views Count and use the options box settings to make the desired configuration
10483

105-
== Frequently Asked Questions ==
84+
4. Be sure to clear any caching and browser cache to see your Page Views Count
10685

10786

10887
== Changelog ==

0 commit comments

Comments
 (0)