Tabs - Version 1.6.8

Version Description

  • update review link
Download this release

Release Info

Developer wpshopmart
Plugin Icon 128x128 Tabs
Version 1.6.8
Comparing to
See all releases

Code changes from version 1.6.7 to 1.6.8

assets/images/show-icon.png ADDED
Binary file
ink/install/installation.php CHANGED
@@ -90,4 +90,95 @@ function wpsm_tabs_r_editor_popup_content() {
90
</div>
91
<?php
92
}
93
?>
90
</div>
91
<?php
92
}
93
+ add_action( 'admin_notices', 'wpsm_tabs_r_review' );
94
+ function wpsm_tabs_r_review() {
95
+
96
+ // Verify that we can do a check for reviews.
97
+ $review = get_option( 'wpsm_tabs_r_review' );
98
+ $time = time();
99
+ $load = false;
100
+ if ( ! $review ) {
101
+ $review = array(
102
+ 'time' => $time,
103
+ 'dismissed' => false
104
+ );
105
+ add_option('wpsm_tabs_r_review', $review);
106
+ //$load = true;
107
+ } else {
108
+ // Check if it has been dismissed or not.
109
+ if ( (isset( $review['dismissed'] ) && ! $review['dismissed']) && (isset( $review['time'] ) && (($review['time'] + (DAY_IN_SECONDS * 3)) <= $time)) ) {
110
+ $load = true;
111
+ }
112
+ }
113
+ // If we cannot load, return early.
114
+ if ( ! $load ) {
115
+ return;
116
+ }
117
+
118
+ // We have a candidate! Output a review message.
119
+ ?>
120
+ <div class="notice notice-info is-dismissible wpsm-tabs-b-review-notice">
121
+ <div style="float:left;margin-right:10px;margin-bottom:5px;">
122
+ <img style="width:100%;width: 120px;height: auto;" src="<?php echo wpshopmart_tabs_r_directory_url.'assets/images/show-icon.png'; ?>" />
123
+ </div>
124
+ <p style="font-size:18px;">'Hi! We saw you have been using <strong>Tabs Responsive plugin</strong> for a few days and wanted to ask for your help to <strong>make the plugin better</strong>.We just need a minute of your time to rate the plugin. Thank you!</p>
125
+ <p style="font-size:18px;"><strong><?php _e( '~ wpshopmart', '' ); ?></strong></p>
126
+ <p style="font-size:19px;">
127
+ <a style="color: #fff;background: #ef4238;padding: 5px 7px 4px 6px;border-radius: 4px;" href="https://wordpress.org/support/plugin/tabs-responsive/reviews/?filter=5#new-post" class="wpsm-tabs-b-dismiss-review-notice wpsm-tabs-b-review-out" target="_blank" rel="noopener">Rate the plugin</a>&nbsp; &nbsp;
128
+ <a style="color: #fff;background: #27d63c;padding: 5px 7px 4px 6px;border-radius: 4px;" href="#" class="wpsm-tabs-b-dismiss-review-notice wpsm-rate-later" target="_self" rel="noopener"><?php _e( 'Nope, maybe later', '' ); ?></a>&nbsp; &nbsp;
129
+ <a style="color: #fff;background: #31a3dd;padding: 5px 7px 4px 6px;border-radius: 4px;" href="#" class="wpsm-tabs-b-dismiss-review-notice wpsm-rated" target="_self" rel="noopener"><?php _e( 'I already did', '' ); ?></a>
130
+ </p>
131
+ </div>
132
+ <script type="text/javascript">
133
+ jQuery(document).ready( function($) {
134
+ $(document).on('click', '.wpsm-tabs-b-dismiss-review-notice, .wpsm-tabs-b-dismiss-notice .notice-dismiss', function( event ) {
135
+ if ( $(this).hasClass('wpsm-tabs-b-review-out') ) {
136
+ var wpsm_rate_data_val = "1";
137
+ }
138
+ if ( $(this).hasClass('wpsm-rate-later') ) {
139
+ var wpsm_rate_data_val = "2";
140
+ event.preventDefault();
141
+ }
142
+ if ( $(this).hasClass('wpsm-rated') ) {
143
+ var wpsm_rate_data_val = "3";
144
+ event.preventDefault();
145
+ }
146
+
147
+ $.post( ajaxurl, {
148
+ action: 'wpsm_tabs_r_dismiss_review',
149
+ wpsm_rate_data_tabs_r : wpsm_rate_data_val
150
+ });
151
+
152
+ $('.wpsm-tabs-b-review-notice').hide();
153
+ //location.reload();
154
+ });
155
+ });
156
+ </script>
157
+ <?php
158
+ }
159
+
160
+ add_action( 'wp_ajax_wpsm_tabs_r_dismiss_review', 'wpsm_tabs_r_dismiss_review' );
161
+ function wpsm_tabs_r_dismiss_review() {
162
+ if ( ! $review ) {
163
+ $review = array();
164
+ }
165
+
166
+ if($_POST['wpsm_rate_data_tabs_r']=="1"){
167
+ $review['time'] = time();
168
+ $review['dismissed'] = false;
169
+
170
+ }
171
+ if($_POST['wpsm_rate_data_tabs_r']=="2"){
172
+ $review['time'] = time();
173
+ $review['dismissed'] = false;
174
+
175
+ }
176
+ if($_POST['wpsm_rate_data_tabs_r']=="3"){
177
+ $review['time'] = time();
178
+ $review['dismissed'] = true;
179
+
180
+ }
181
+ update_option( 'wpsm_tabs_r_review', $review );
182
+ die;
183
+ }
184
?>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: wpshopmart
3
Donate link: http://wpshopmart.com/members/signup/tabs-responsive-donation
4
Tags: tab, tabs, responsive tabs, animation, animated tab, css3 tabs, bootstrap tabs, tabs content, responsive, shortcode, widget, wordpress tabs, wp tabs, accordion, collapse, toggle, bootstrap tab, jquery, tab widget, tab shortcode, jquery tabs, sidebar, plugin, html, html5, html5 tabs
5
Requires at least: 3.3
6
- Tested up to: 4.7.1
7
- Stable tag: 1.6.7
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -109,6 +109,9 @@ Please use WordPress support forum to ask any query regarding any issue.
109
110
== Changelog ==
111
112
= 1.6.7 =
113
* Minor Bug Resolved
114
3
Donate link: http://wpshopmart.com/members/signup/tabs-responsive-donation
4
Tags: tab, tabs, responsive tabs, animation, animated tab, css3 tabs, bootstrap tabs, tabs content, responsive, shortcode, widget, wordpress tabs, wp tabs, accordion, collapse, toggle, bootstrap tab, jquery, tab widget, tab shortcode, jquery tabs, sidebar, plugin, html, html5, html5 tabs
5
Requires at least: 3.3
6
+ Tested up to: 4.7.2
7
+ Stable tag: 1.6.8
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
109
110
== Changelog ==
111
112
+ = 1.6.8 =
113
+ * update review link
114
+
115
= 1.6.7 =
116
* Minor Bug Resolved
117
tabs-responsive.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/**
3
* Plugin Name: Tabs Responsive
4
- * Version: 1.6.7
5
* Description: Tabs Responsive is the most easiest drag & drop Tabs builder for WordPress. You can add unlimited Tabs with unlimited color Scheme.
6
* Author: wpshopmart
7
* Author URI: http://www.wpshopmart.com
1
<?php
2
/**
3
* Plugin Name: Tabs Responsive
4
+ * Version: 1.6.8
5
* Description: Tabs Responsive is the most easiest drag & drop Tabs builder for WordPress. You can add unlimited Tabs with unlimited color Scheme.
6
* Author: wpshopmart
7
* Author URI: http://www.wpshopmart.com