Version Description
- 20-11-2020 =
- Maintanence Release
Download this release
Release Info
Developer | dots |
Plugin | Page Visit Counter |
Version | 6.0.6 |
Comparing to | |
See all releases |
Code changes from version 6.0.5 to 6.0.6
README.txt
CHANGED
@@ -4,7 +4,7 @@ Plugin URI: https://www.thedotstore.com/
|
|
4 |
Author: theDotstore
|
5 |
Author URI: https://www.thedotstore.com/
|
6 |
Contributors: dots, ketuchetan, chiragpatel, jitendrabanjara1991, niravcse006
|
7 |
-
Stable tag: 6.0.
|
8 |
WC tested up to: 4.5
|
9 |
Tags: page counter,page visit, post counter, post visit, wordpress post view, wordpress page view, page visit graph, post visit graph,
|
10 |
Requires at least: 5.0
|
@@ -109,6 +109,9 @@ It is compatible from 2.1 to 5.0.3 WordPress version.
|
|
109 |
Automatic updates should work great for you. As always, though, we recommend backing up your site prior to making any updates just to be sure nothing goes wrong.
|
110 |
|
111 |
== Changelog ==
|
|
|
|
|
|
|
112 |
= 6.0.5 - 29-09-2020 =
|
113 |
* Compatible with WooCommerce 4.5.x
|
114 |
* Compatible with Wordpress 5.5.x
|
4 |
Author: theDotstore
|
5 |
Author URI: https://www.thedotstore.com/
|
6 |
Contributors: dots, ketuchetan, chiragpatel, jitendrabanjara1991, niravcse006
|
7 |
+
Stable tag: 6.0.6
|
8 |
WC tested up to: 4.5
|
9 |
Tags: page counter,page visit, post counter, post visit, wordpress post view, wordpress page view, page visit graph, post visit graph,
|
10 |
Requires at least: 5.0
|
109 |
Automatic updates should work great for you. As always, though, we recommend backing up your site prior to making any updates just to be sure nothing goes wrong.
|
110 |
|
111 |
== Changelog ==
|
112 |
+
= 6.0.6 - 20-11-2020 =
|
113 |
+
* Maintanence Release
|
114 |
+
|
115 |
= 6.0.5 - 29-09-2020 =
|
116 |
* Compatible with WooCommerce 4.5.x
|
117 |
* Compatible with Wordpress 5.5.x
|
admin/css/page-visit-counter-admin.css
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
#dotsstoremain .dots-logo-main{float:left;width:auto;display:inline-block;padding:20px}
|
12 |
#dotsstoremain .dots-logo-main img{width:75px}
|
13 |
#dotsstoremain .dots-header-right{width:89%;display:inline-block;padding:24px 0;float:left;}
|
14 |
-
#dotsstoremain .dots-header-right .logo-detail{display:inline-block;padding-left:20px;box-sizing:border-box;vertical-align:middle;margin:0;float: left;width:
|
15 |
#dotsstoremain .dots-header-right .logo-detail strong{display:block;font-size:23px;margin-bottom:10px;color:#000;line-height:32px}
|
16 |
#dotsstoremain .dots-header-right .button-group {display: inline-block; float: right;}
|
17 |
#dotsstoremain .button-group .button-dots-left { display: inline-block; float: left; margin-right: 30px;}
|
@@ -207,6 +207,160 @@ a.pvcp-action-button.button-primary {
|
|
207 |
font-weight: 600;
|
208 |
}
|
209 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
@media screen and (max-width: 767px){
|
211 |
.pvcp-main-dashboard .pvcp-table-cover {width: 100%;margin-bottom: 20px;}
|
212 |
#pvcp-postbox-container-2,#pvcp-postbox-container-1{width: 100% !important;}
|
11 |
#dotsstoremain .dots-logo-main{float:left;width:auto;display:inline-block;padding:20px}
|
12 |
#dotsstoremain .dots-logo-main img{width:75px}
|
13 |
#dotsstoremain .dots-header-right{width:89%;display:inline-block;padding:24px 0;float:left;}
|
14 |
+
#dotsstoremain .dots-header-right .logo-detail{display:inline-block;padding-left:20px;box-sizing:border-box;vertical-align:middle;margin:0;float: left;width: 50%;}
|
15 |
#dotsstoremain .dots-header-right .logo-detail strong{display:block;font-size:23px;margin-bottom:10px;color:#000;line-height:32px}
|
16 |
#dotsstoremain .dots-header-right .button-group {display: inline-block; float: right;}
|
17 |
#dotsstoremain .button-group .button-dots-left { display: inline-block; float: left; margin-right: 30px;}
|
207 |
font-weight: 600;
|
208 |
}
|
209 |
|
210 |
+
|
211 |
+
/*New Css*/
|
212 |
+
.dotstore_discount_voucher {
|
213 |
+
background: #fb5f51;
|
214 |
+
color: #fff;
|
215 |
+
padding: 10px;
|
216 |
+
text-align: center;
|
217 |
+
margin-bottom: 10px;
|
218 |
+
}
|
219 |
+
.dotstore_discount_voucher span {
|
220 |
+
display: block;
|
221 |
+
text-align: center;
|
222 |
+
text-transform: uppercase;
|
223 |
+
padding: 10px;
|
224 |
+
}
|
225 |
+
.dotstore_discount_voucher span.dotstore_discount_title {
|
226 |
+
font-weight: 700;
|
227 |
+
padding-bottom: 0;
|
228 |
+
font-size: 17px;
|
229 |
+
display: inline-block;
|
230 |
+
margin-bottom: 5px;
|
231 |
+
}
|
232 |
+
span.dotstore-upgrade {
|
233 |
+
font-size: 14px;
|
234 |
+
}
|
235 |
+
strong.dotstore-OFF {
|
236 |
+
text-align: center;
|
237 |
+
font-size: 44px;
|
238 |
+
display: block;
|
239 |
+
line-height: 44px;
|
240 |
+
font-weight: 700;
|
241 |
+
border: 3px dotted #fff;
|
242 |
+
margin: 20px;
|
243 |
+
padding: 20px 0 25px;
|
244 |
+
position: relative;
|
245 |
+
}
|
246 |
+
strong.dotstore-OFF:before {
|
247 |
+
content: '';
|
248 |
+
background:url(../images/scissor_left.png) no-repeat;
|
249 |
+
position: absolute;
|
250 |
+
left: -10px;
|
251 |
+
width: 60px;
|
252 |
+
height: 50px;
|
253 |
+
top: -18px;
|
254 |
+
}
|
255 |
+
strong.dotstore-OFF:after {
|
256 |
+
content: '';
|
257 |
+
background:url(../images/scissor_right.png) no-repeat;
|
258 |
+
position: absolute;
|
259 |
+
right: -20px;
|
260 |
+
width: 60px;
|
261 |
+
height: 50px;
|
262 |
+
bottom: -33px;
|
263 |
+
}
|
264 |
+
span.dotstore-with-code {
|
265 |
+
font-size: 14px;
|
266 |
+
font-weight: 700;
|
267 |
+
padding: 0;
|
268 |
+
line-height: 24px;
|
269 |
+
display: inline-block;
|
270 |
+
vertical-align: middle;
|
271 |
+
margin-bottom: 12px;
|
272 |
+
}
|
273 |
+
span.dotstore-with-code b {
|
274 |
+
color: #000;
|
275 |
+
font-size: 21px;
|
276 |
+
padding-left: 10px;
|
277 |
+
line-height: 22px;
|
278 |
+
display: inline-block;
|
279 |
+
font-weight: 700;
|
280 |
+
vertical-align: -webkit-baseline-middle;
|
281 |
+
margin-top: -15px;
|
282 |
+
}
|
283 |
+
a.dotstore-upgrade {
|
284 |
+
background: #87c852;
|
285 |
+
color: #fff;
|
286 |
+
padding: 10px 20px;
|
287 |
+
margin: 6px 0 15px;
|
288 |
+
transition: 700ms all;
|
289 |
+
font-size: 14px;
|
290 |
+
text-transform: uppercase;
|
291 |
+
font-weight: 600;
|
292 |
+
letter-spacing: 1.2px;
|
293 |
+
border-radius: 5px;
|
294 |
+
}
|
295 |
+
a.dotstore-upgrade:hover{
|
296 |
+
background: #87c852;
|
297 |
+
transform: scale(1.1);
|
298 |
+
}
|
299 |
+
/* Discount Coupon CSS End */
|
300 |
+
|
301 |
+
table.table-outer.form-table.shipping-methods-listing.tablesorter tr th .tablesorter-header-inner {
|
302 |
+
margin-right: 20px;
|
303 |
+
}
|
304 |
+
.select2-selection__choice { white-space: initial !important;}
|
305 |
+
.afrsm-main-table table.table-outer tbody tr th.titledesc {width: 23%;}
|
306 |
+
.afrsm-shipping-zone .select2-container{width: 100% !important;}
|
307 |
+
|
308 |
+
.dotstore_plugin_sidebar .image_box {
|
309 |
+
max-width: 100px;
|
310 |
+
width: 100%;
|
311 |
+
margin: 0 auto;
|
312 |
+
}
|
313 |
+
.dotstore_plugin_sidebar .image_box img {
|
314 |
+
width: 100%;
|
315 |
+
max-width: 100%;
|
316 |
+
margin: 0 auto;
|
317 |
+
}
|
318 |
+
.dotstore_plugin_sidebar .content_box h3{margin-top: 5px;}
|
319 |
+
.dotstore_plugin_sidebar .content_box {
|
320 |
+
text-align: center;
|
321 |
+
padding: 0 14px;
|
322 |
+
}
|
323 |
+
.dotstore_plugin_sidebar .content_box a.btn_style {
|
324 |
+
background-color: #0085ba;
|
325 |
+
PADDING: 10px;
|
326 |
+
border-radius: 4px;
|
327 |
+
margin-bottom: 10px;
|
328 |
+
display: inline-block;
|
329 |
+
color: #fff;
|
330 |
+
font-weight: 600;
|
331 |
+
}
|
332 |
+
|
333 |
+
/** Black friday offer CSS */
|
334 |
+
strong.dotstore-OFF.bf-offer {
|
335 |
+
font-size: 38px !important;
|
336 |
+
margin: 8px;
|
337 |
+
|
338 |
+
}
|
339 |
+
.dotstore_discount_voucher.bf_voucher{
|
340 |
+
background-color: #000;
|
341 |
+
}
|
342 |
+
span.dotstore-with-code b{
|
343 |
+
color: #fff;
|
344 |
+
}
|
345 |
+
span.dotstore-with-code-text b {
|
346 |
+
padding: 2px 6px 6px 6px;
|
347 |
+
margin-top: 0px;
|
348 |
+
}
|
349 |
+
.bf_voucher a.dotstore-upgrade {
|
350 |
+
background: #f53322;
|
351 |
+
font-size: 18px;
|
352 |
+
}
|
353 |
+
.bf_voucher span.dotstore-with-code {
|
354 |
+
font-size: 13px;
|
355 |
+
}
|
356 |
+
.bf_voucher span.dotstore-upgrade{
|
357 |
+
font-size: 13px;
|
358 |
+
}
|
359 |
+
.bf_voucher span.dotstore-with-code b {
|
360 |
+
color: #0bf527;
|
361 |
+
text-decoration: underline;
|
362 |
+
}
|
363 |
+
|
364 |
@media screen and (max-width: 767px){
|
365 |
.pvcp-main-dashboard .pvcp-table-cover {width: 100%;margin-bottom: 20px;}
|
366 |
#pvcp-postbox-container-2,#pvcp-postbox-container-1{width: 100% !important;}
|
admin/partials/header/plugin-sidebar.php
CHANGED
@@ -13,6 +13,36 @@ $plugin_at = '';
|
|
13 |
$review_url = esc_url( 'https://wordpress.org/plugins/page-visit-counter/#reviews' );
|
14 |
$plugin_at = 'WP.org';
|
15 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
<div class="dotstore-important-link">
|
17 |
<div class="image_box">
|
18 |
<img src="<?php
|
13 |
$review_url = esc_url( 'https://wordpress.org/plugins/page-visit-counter/#reviews' );
|
14 |
$plugin_at = 'WP.org';
|
15 |
?>
|
16 |
+
<div class="dotstore_discount_voucher bf_voucher">
|
17 |
+
<span class="dotstore_discount_title"><?php
|
18 |
+
esc_html_e( 'BLACK FRIDAY OFFER', 'advanced-flat-rate-shipping-for-woocommerce' );
|
19 |
+
?></span>
|
20 |
+
<span class="dotstore-upgrade"><?php
|
21 |
+
esc_html_e( 'Upgrade to premium now and get', 'advanced-flat-rate-shipping-for-woocommerce' );
|
22 |
+
?></span>
|
23 |
+
<strong class="dotstore-OFF bf-offer"><?php
|
24 |
+
esc_html_e( '50% OFF', 'advanced-flat-rate-shipping-for-woocommerce' );
|
25 |
+
?></strong>
|
26 |
+
<span class="dotstore-with-code"><?php
|
27 |
+
esc_html_e( 'On Any WooCommerce Plugin license', 'advanced-flat-rate-shipping-for-woocommerce' );
|
28 |
+
?>
|
29 |
+
<span class="dotstore-with-code-text"><?php
|
30 |
+
esc_html_e( 'Coupon code', 'advanced-flat-rate-shipping-for-woocommerce' );
|
31 |
+
?>
|
32 |
+
<b><?php
|
33 |
+
esc_html_e( 'BFCMFLASH50', 'advanced-flat-rate-shipping-for-woocommerce' );
|
34 |
+
?></b></span>
|
35 |
+
<a class="dotstore-upgrade"
|
36 |
+
href="<?php
|
37 |
+
echo esc_url( pvc_fs()->get_upgrade_url() ) ;
|
38 |
+
?>"
|
39 |
+
target="_blank"><?php
|
40 |
+
esc_html_e( 'UPGRADE NOW', 'advanced-flat-rate-shipping-for-woocommerce' );
|
41 |
+
?></a>
|
42 |
+
<span class="dotstore-upgrade-access"><?php
|
43 |
+
esc_html_e( '& Access More features', 'advanced-flat-rate-shipping-for-woocommerce' );
|
44 |
+
?></span>
|
45 |
+
</div>
|
46 |
<div class="dotstore-important-link">
|
47 |
<div class="image_box">
|
48 |
<img src="<?php
|
includes/class-page-visit-counter-user-feedback.php
CHANGED
@@ -45,6 +45,12 @@ class PageVisitCount_User_Feedback
|
|
45 |
* @var string $nobug_option
|
46 |
*/
|
47 |
public $nobug_option ;
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
/**
|
49 |
* Activation Date Option.
|
50 |
*
|
@@ -62,6 +68,8 @@ class PageVisitCount_User_Feedback
|
|
62 |
$this->name = $args['name'];
|
63 |
$this->date_option = $this->slug . '_activation_date';
|
64 |
$this->nobug_option = $this->slug . '_no_bug';
|
|
|
|
|
65 |
|
66 |
if ( isset( $args['time_limit'] ) ) {
|
67 |
$this->time_limit = $args['time_limit'];
|
@@ -148,6 +156,10 @@ class PageVisitCount_User_Feedback
|
|
148 |
*/
|
149 |
public function check_installation_date()
|
150 |
{
|
|
|
|
|
|
|
|
|
151 |
|
152 |
if ( !get_site_option( $this->nobug_option ) || false === get_site_option( $this->nobug_option ) ) {
|
153 |
add_site_option( $this->date_option, time() );
|
@@ -158,6 +170,34 @@ class PageVisitCount_User_Feedback
|
|
158 |
add_action( 'admin_notices', array( $this, 'display_admin_notice' ) );
|
159 |
}
|
160 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
|
162 |
}
|
163 |
|
@@ -313,17 +353,171 @@ class PageVisitCount_User_Feedback
|
|
313 |
|
314 |
}
|
315 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
/**
|
317 |
* Set the plugin to no longer bug users if user asks not to be.
|
318 |
*/
|
319 |
public function set_no_bug()
|
320 |
{
|
|
|
|
|
|
|
|
|
321 |
// Bail out if not on correct page.
|
322 |
// phpcs:ignore
|
323 |
-
if ( !isset( $_GET['_wpnonce'] ) ||
|
324 |
return;
|
325 |
}
|
326 |
-
|
|
|
|
|
|
|
|
|
|
|
327 |
}
|
328 |
|
329 |
}
|
45 |
* @var string $nobug_option
|
46 |
*/
|
47 |
public $nobug_option ;
|
48 |
+
/**
|
49 |
+
* Checkout Our Premium Plugin.
|
50 |
+
*
|
51 |
+
* @var string $slug
|
52 |
+
*/
|
53 |
+
private $copp1_option;
|
54 |
/**
|
55 |
* Activation Date Option.
|
56 |
*
|
68 |
$this->name = $args['name'];
|
69 |
$this->date_option = $this->slug . '_activation_date';
|
70 |
$this->nobug_option = $this->slug . '_no_bug';
|
71 |
+
$this->copp1_option = $this->slug . '_copp1';
|
72 |
+
$this->sticky_transient = $this->slug;
|
73 |
|
74 |
if ( isset( $args['time_limit'] ) ) {
|
75 |
$this->time_limit = $args['time_limit'];
|
156 |
*/
|
157 |
public function check_installation_date()
|
158 |
{
|
159 |
+
$this_day = date( 'Y-m-d' );
|
160 |
+
$today = date_create( $this_day );
|
161 |
+
//$this_day
|
162 |
+
$today_date_form = date_format( $today, 'Y-m-d' );
|
163 |
|
164 |
if ( !get_site_option( $this->nobug_option ) || false === get_site_option( $this->nobug_option ) ) {
|
165 |
add_site_option( $this->date_option, time() );
|
170 |
add_action( 'admin_notices', array( $this, 'display_admin_notice' ) );
|
171 |
}
|
172 |
}
|
173 |
+
|
174 |
+
/*
|
175 |
+
* Check date when user has clicked on 'no thanks' button for checkout our premium plugins
|
176 |
+
*/
|
177 |
+
$check_sticky_copp1_note_cancel = get_transient( $this->sticky_transient . 'sticky_copp1_note_cancel' );
|
178 |
+
$check_sticky_copp1_note_cancel_format = '';
|
179 |
+
if ( !empty($check_sticky_copp1_note_cancel) ) {
|
180 |
+
$check_sticky_copp1_note_cancel_format = date_format( $check_sticky_copp1_note_cancel, 'Y-m-d' );
|
181 |
+
}
|
182 |
+
/*
|
183 |
+
* Check interval based on 2 days for checkout our premium plugins
|
184 |
+
*/
|
185 |
+
//if ( $current_diff % 2 == 0 ) {
|
186 |
+
|
187 |
+
if ( $check_sticky_copp1_note_cancel_format !== $today_date_form ) {
|
188 |
+
set_transient( $this->sticky_transient . 'sticky_coppbf_note', '1' );
|
189 |
+
} else {
|
190 |
+
set_transient( $this->sticky_transient . 'sticky_coppbf_note', '0' );
|
191 |
+
}
|
192 |
+
|
193 |
+
//}
|
194 |
+
/*
|
195 |
+
* Check if all condition match for checkout our premium plugins
|
196 |
+
*/
|
197 |
+
$check_sticky_copp_note1 = get_transient( $this->sticky_transient . 'sticky_coppbf_note' );
|
198 |
+
if ( '1' === $check_sticky_copp_note1 ) {
|
199 |
+
add_action( 'admin_notices', array( $this, 'display_notice_for_copp1' ) );
|
200 |
+
}
|
201 |
|
202 |
}
|
203 |
|
353 |
|
354 |
}
|
355 |
|
356 |
+
/**
|
357 |
+
* Display notice for checkout our premium plugins.
|
358 |
+
*/
|
359 |
+
public function display_notice_for_copp1()
|
360 |
+
{
|
361 |
+
$no_bug_url = wp_nonce_url( admin_url( 'plugins.php?' . $this->copp1_option . '=true' ), 'editorspage_visit_count_plugin_feedback_copp1-nounce' );
|
362 |
+
$time = $this->seconds_to_words( time() - get_site_option( $this->date_option ) );
|
363 |
+
?>
|
364 |
+
|
365 |
+
<style>
|
366 |
+
.notice.editorsPageVisitCount-notice {
|
367 |
+
border-left-color: #272c51 !important;
|
368 |
+
padding: 20px;
|
369 |
+
}
|
370 |
+
.rtl .notice.editorsPageVisitCount-notice {
|
371 |
+
border-right-color: #272c51 !important;
|
372 |
+
}
|
373 |
+
.notice.notice.editorsPageVisitCount-notice .editorsPageVisitCount-notice-inner {
|
374 |
+
display: table;
|
375 |
+
width: 100%;
|
376 |
+
}
|
377 |
+
.notice.editorsPageVisitCount-notice .editorsPageVisitCount-notice-inner .editorsPageVisitCount-notice-icon,
|
378 |
+
.notice.editorsPageVisitCount-notice .editorsPageVisitCount-notice-inner .editorsPageVisitCount-notice-content,
|
379 |
+
.notice.editorsPageVisitCount-notice .editorsPageVisitCount-notice-inner .editorsPageVisitCount-install-now {
|
380 |
+
display: table-cell;
|
381 |
+
vertical-align: middle;
|
382 |
+
}
|
383 |
+
.notice.editorsPageVisitCount-notice .editorsPageVisitCount-notice-icon {
|
384 |
+
color: #509ed2;
|
385 |
+
font-size: 13px;
|
386 |
+
width: 60px;
|
387 |
+
}
|
388 |
+
.notice.editorsPageVisitCount-notice .editorsPageVisitCount-notice-icon img {
|
389 |
+
width: 64px;
|
390 |
+
}
|
391 |
+
.notice.editorsPageVisitCount-notice .editorsPageVisitCount-notice-content {
|
392 |
+
padding: 0 40px 0 20px;
|
393 |
+
}
|
394 |
+
.notice.editorsPageVisitCount-notice p {
|
395 |
+
padding: 0;
|
396 |
+
margin: 0;
|
397 |
+
}
|
398 |
+
.notice.editorsPageVisitCount-notice h3 {
|
399 |
+
margin: 0 0 5px;
|
400 |
+
}
|
401 |
+
.notice.editorsPageVisitCount-notice .editorsPageVisitCount-install-now {
|
402 |
+
text-align: center;
|
403 |
+
}
|
404 |
+
.notice.editorsPageVisitCount-notice .editorsPageVisitCount-install-now .editorsPageVisitCount-install-button {
|
405 |
+
padding: 6px 50px;
|
406 |
+
height: auto;
|
407 |
+
line-height: 20px;
|
408 |
+
background: #32396a;
|
409 |
+
border-color: #272c51 #0f153e #040823;
|
410 |
+
box-shadow: 0 1px 0 #0d1f82;
|
411 |
+
text-shadow: 0 -1px 1px #272c51, 1px 0 1px #171b3e, 0 1px 1px #0a1035, -1px 0 1px #040721;
|
412 |
+
}
|
413 |
+
.notice.editorsPageVisitCount-notice .editorsPageVisitCount-install-now .editorsPageVisitCount-install-button:hover {
|
414 |
+
background: #272c51;
|
415 |
+
}
|
416 |
+
.notice.editorsPageVisitCount-notice a.no-thanks {
|
417 |
+
display: block;
|
418 |
+
margin-top: 10px;
|
419 |
+
color: #72777c;
|
420 |
+
text-decoration: none;
|
421 |
+
}
|
422 |
+
|
423 |
+
.notice.editorsPageVisitCount-notice a.no-thanks:hover {
|
424 |
+
color: #444;
|
425 |
+
}
|
426 |
+
|
427 |
+
@media (max-width: 767px) {
|
428 |
+
|
429 |
+
.notice.notice.editorsPageVisitCount-notice .editorsPageVisitCount-notice-inner {
|
430 |
+
display: block;
|
431 |
+
}
|
432 |
+
.notice.editorsPageVisitCount-notice {
|
433 |
+
padding: 20px !important;
|
434 |
+
}
|
435 |
+
.notice.editorsPageVisitCount-noticee .editorsPageVisitCount-notice-inner {
|
436 |
+
display: block;
|
437 |
+
}
|
438 |
+
.notice.editorsPageVisitCount-notice .editorsPageVisitCount-notice-inner .editorsPageVisitCount-notice-content {
|
439 |
+
display: block;
|
440 |
+
padding: 0;
|
441 |
+
}
|
442 |
+
.notice.editorsPageVisitCount-notice .editorsPageVisitCount-notice-inner .editorsPageVisitCount-notice-icon {
|
443 |
+
display: none;
|
444 |
+
}
|
445 |
+
|
446 |
+
.notice.editorsPageVisitCount-notice .editorsPageVisitCount-notice-inner .editorsPageVisitCount-install-now {
|
447 |
+
margin-top: 20px;
|
448 |
+
display: block;
|
449 |
+
text-align: left;
|
450 |
+
}
|
451 |
+
|
452 |
+
.notice.editorsPageVisitCount-notice .editorsPageVisitCount-notice-inner .no-thanks {
|
453 |
+
display: inline-block;
|
454 |
+
margin-left: 15px;
|
455 |
+
}
|
456 |
+
}
|
457 |
+
</style>
|
458 |
+
<div class="notice updated editorsPageVisitCount-notice">
|
459 |
+
<div class="editorsPageVisitCount-notice-inner">
|
460 |
+
<div class="editorsPageVisitCount-notice-icon">
|
461 |
+
<?php
|
462 |
+
/* translators: 1. Name */
|
463 |
+
?>
|
464 |
+
<img src="<?php
|
465 |
+
echo esc_url( plugins_url( 'admin/images/pvcp-icon.png', dirname( __FILE__ ) ) ) ;
|
466 |
+
?>" alt="<?php
|
467 |
+
printf( esc_attr__( '%s WordPress Plugin', 'woocommerce-conditional-product-fees-for-checkout' ), esc_attr( $this->name ) );
|
468 |
+
?>" />
|
469 |
+
</div>
|
470 |
+
<div class="editorsPageVisitCount-notice-content">
|
471 |
+
<?php
|
472 |
+
/* translators: 1. Name */
|
473 |
+
?>
|
474 |
+
<h3>
|
475 |
+
<?php
|
476 |
+
echo esc_html__( 'Save 50% OFF on Upgrade to Premium WooCommerce Plugin. GRAB BLACK FRIDAY SALE OFFER.', 'advanced-flat-rate-shipping-for-woocommerce' );
|
477 |
+
?>
|
478 |
+
</h3>
|
479 |
+
<h3>
|
480 |
+
<?php
|
481 |
+
echo __( 'Use Coupon code: <u><b>BFCMFLASH50</b></u>', 'advanced-flat-rate-shipping-for-woocommerce' );
|
482 |
+
?>
|
483 |
+
</h3>
|
484 |
+
</div>
|
485 |
+
<div class="editorshideshipping-install-now">
|
486 |
+
<?php
|
487 |
+
printf( '<a href="%1$s" class="button button-primary editorsFlatRate-install-button" target="_blank">%2$s</a>', esc_url( pvc_fs()->get_upgrade_url() ), esc_html__( 'UPGRADE NOW', 'advanced-flat-rate-shipping-for-woocommerce' ) );
|
488 |
+
|
489 |
+
?>
|
490 |
+
<a href="<?php
|
491 |
+
echo esc_url( $no_bug_url ) ;
|
492 |
+
?>" class="no-thanks"><?php
|
493 |
+
echo esc_html__( 'No thanks', 'woocommerce-blocker-prevent-fake-orders-and-blacklist-fraud-customers' ) ;
|
494 |
+
?></a>
|
495 |
+
</div>
|
496 |
+
</div>
|
497 |
+
</div>
|
498 |
+
<?php
|
499 |
+
}
|
500 |
+
|
501 |
/**
|
502 |
* Set the plugin to no longer bug users if user asks not to be.
|
503 |
*/
|
504 |
public function set_no_bug()
|
505 |
{
|
506 |
+
$this_day = date( 'Y-m-d' );
|
507 |
+
$today = date_create( $this_day );
|
508 |
+
// phpcs:ignore
|
509 |
+
$get_nonce = filter_input( INPUT_GET, '_wpnonce', FILTER_SANITIZE_STRING );
|
510 |
// Bail out if not on correct page.
|
511 |
// phpcs:ignore
|
512 |
+
if ( !isset( $_GET['_wpnonce'] ) || !current_user_can( 'manage_options' )) {
|
513 |
return;
|
514 |
}
|
515 |
+
if ( wp_verify_nonce( $get_nonce, 'editorspage_visit_count_plugin_feedback_copp1-nounce' ) ) {
|
516 |
+
delete_transient( $this->sticky_transient . 'sticky_copp1_note' );
|
517 |
+
set_transient( $this->sticky_transient . 'sticky_copp1_note_cancel', $today );
|
518 |
+
} else {
|
519 |
+
add_site_option( $this->nobug_option, true );
|
520 |
+
}
|
521 |
}
|
522 |
|
523 |
}
|
page-visit-counter.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
* Plugin Name: Page Visit Counter
|
10 |
* Plugin URI: https://www.thedotstore.com/page-visit-counter/
|
11 |
* Description: This plugin will count the total visits of the pages of your site.
|
12 |
-
* Version: 6.0.
|
13 |
* Author: theDotstore
|
14 |
* Author URI: https://www.thedotstore.com/
|
15 |
* License: GPL-2.0+
|
@@ -66,7 +66,7 @@ if ( !function_exists( 'pvc_fs' ) ) {
|
|
66 |
}
|
67 |
|
68 |
if ( !defined( 'PVCP_VERSION' ) ) {
|
69 |
-
define( 'PVCP_VERSION', '6.0.
|
70 |
}
|
71 |
if ( !defined( 'PVCP_PLUGIN_URL' ) ) {
|
72 |
define( 'PVCP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
9 |
* Plugin Name: Page Visit Counter
|
10 |
* Plugin URI: https://www.thedotstore.com/page-visit-counter/
|
11 |
* Description: This plugin will count the total visits of the pages of your site.
|
12 |
+
* Version: 6.0.6
|
13 |
* Author: theDotstore
|
14 |
* Author URI: https://www.thedotstore.com/
|
15 |
* License: GPL-2.0+
|
66 |
}
|
67 |
|
68 |
if ( !defined( 'PVCP_VERSION' ) ) {
|
69 |
+
define( 'PVCP_VERSION', '6.0.6' );
|
70 |
}
|
71 |
if ( !defined( 'PVCP_PLUGIN_URL' ) ) {
|
72 |
define( 'PVCP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|