Accordion FAQ - Version 1.8.7

Version Description

  • minor bug resolved
Download this release

Release Info

Developer wpshopmart
Plugin Icon 128x128 Accordion FAQ
Version 1.8.7
Comparing to
See all releases

Code changes from version 1.8.6 to 1.8.7

img/icon-show.png ADDED
Binary file
lib/admin/menu.php CHANGED
@@ -370,24 +370,55 @@ class wpsm_accordion {
370
  public function wpsm_accordion_follow_meta_box_function(){
371
  ?>
372
  <style>
373
- .follow_icon li {
374
- margin-right: 8px;
375
- margin-left: 8px;
376
- font-size: 20px;
377
- display: inline-block;
378
- width:40px;
379
- height:40px;
380
- text-align:center;
381
- line-height: 38px;
382
- }
383
- .follow_icon li a {
384
- color:#fff;
385
- }
386
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
387
  </style>
388
- <a href="http://wpshopmart.com/plugins/accordion-pro/" target="_blank">
389
- <img src="<?php echo wpshopmart_accordion_directory_url.'img/black copy.jpg'; ?>" style="width:100%;height:auto" />
390
- </a>
391
  <?php
392
  }
393
 
@@ -432,22 +463,16 @@ class wpsm_accordion {
432
  color: #000;
433
  box-shadow: none;
434
  text-shadow: none;
435
- font-weight: 900;
436
- font-size: 23px;
437
  border:1px solid #000;
438
 
439
  }
440
  </style>
441
- <h1>Rate Us </h1>
442
- <h3>Show us some love, If you like our product then please give us some valuable feedback on wordpress</h3>
443
- <a href="https://wordpress.org/plugins/responsive-accordion-and-collapse/" target="_blank" class="button button-primary button-hero ">RATE HERE</a>
444
- <a class="wpsm-rate-us" style=" text-decoration: none; height: 40px; width: 40px;" href="https://wordpress.org/plugins/responsive-accordion-and-collapse/" target="_blank">
445
- <span class="dashicons dashicons-star-filled"></span>
446
- <span class="dashicons dashicons-star-filled"></span>
447
- <span class="dashicons dashicons-star-filled"></span>
448
- <span class="dashicons dashicons-star-filled"></span>
449
- <span class="dashicons dashicons-star-filled"></span>
450
- </a>
451
  <?php
452
  }
453
 
370
  public function wpsm_accordion_follow_meta_box_function(){
371
  ?>
372
  <style>
 
 
 
 
 
 
 
 
 
 
 
 
 
373
 
374
+ #accordion_follow{
375
+ background-color: #7242e7;
376
+ text-align:center;
377
+ }
378
+ #accordion_follow .hndle , #accordion_follow .handlediv{
379
+ display:none;
380
+ }
381
+ #accordion_follow h1{
382
+ color:#fff;
383
+
384
+ }
385
+ #accordion_follow h3 {
386
+ color:#fff;
387
+ font-size:15px;
388
+ }
389
+ #accordion_follow .button-hero{
390
+ display:block;
391
+ text-align:center;
392
+ margin-bottom:15px;
393
+
394
+ }
395
+ .wpsm-rate-us{
396
+ text-align:center;
397
+ }
398
+ .wpsm-rate-us span.dashicons {
399
+ width: 40px;
400
+ height: 40px;
401
+ font-size:20px;
402
+ color : #ffffff !important;
403
+ }
404
+ .wpsm-rate-us span.dashicons-star-filled:before {
405
+ content: "\f155";
406
+ font-size: 40px;
407
+ }
408
+ #accordion_follow .button-hero{
409
+ background: #fff;
410
+ color: #000;
411
+ box-shadow: none;
412
+ text-shadow: none;
413
+ font-weight: 500;
414
+ font-size: 16px;
415
+ border:1px solid #000;
416
+
417
+ }
418
  </style>
419
+ <br />
420
+ <a href="http://demo.wpshopmart.com/responsive-accordion-and-collapse/" target="_blank" class="button button-primary button-hero ">View Demo For Help</a>
421
+
422
  <?php
423
  }
424
 
463
  color: #000;
464
  box-shadow: none;
465
  text-shadow: none;
466
+ font-weight: 500;
467
+ font-size: 17px;
468
  border:1px solid #000;
469
 
470
  }
471
  </style>
472
+ <h1>Need Help </h1>
473
+ <h3>Feel free to ask any query to us related to this plugin here </h3>
474
+ <a href="https://wordpress.org/support/plugin/responsive-accordion-and-collapse" target="_blank" class="button button-primary button-hero ">Submit Your Query Here</a>
475
+
 
 
 
 
 
 
476
  <?php
477
  }
478
 
lib/installation/installation.php CHANGED
@@ -204,4 +204,95 @@ function wpsm_ac_header_info() {
204
  }
205
  add_action('in_admin_header','wpsm_ac_header_info');
206
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
  ?>
204
  }
205
  add_action('in_admin_header','wpsm_ac_header_info');
206
 
207
+ add_action( 'admin_notices', 'wpsm_acc_r_review' );
208
+ function wpsm_acc_r_review() {
209
+
210
+ // Verify that we can do a check for reviews.
211
+ $review = get_option( 'wpsm_acc_r_review' );
212
+ $time = time();
213
+ $load = false;
214
+ if ( ! $review ) {
215
+ $review = array(
216
+ 'time' => $time,
217
+ 'dismissed' => false
218
+ );
219
+ add_option('wpsm_acc_r_review', $review);
220
+ //$load = true;
221
+ } else {
222
+ // Check if it has been dismissed or not.
223
+ if ( (isset( $review['dismissed'] ) && ! $review['dismissed']) && (isset( $review['time'] ) && (($review['time'] + (DAY_IN_SECONDS * 3)) <= $time)) ) {
224
+ $load = true;
225
+ }
226
+ }
227
+ // If we cannot load, return early.
228
+ if ( ! $load ) {
229
+ return;
230
+ }
231
+
232
+ // We have a candidate! Output a review message.
233
+ ?>
234
+ <div class="notice notice-info is-dismissible wpsm-acc-r-review-notice">
235
+ <div style="float:left;margin-right:10px;margin-bottom:5px;">
236
+ <img style="width:100%;width: 150px;height: auto;" src="<?php echo wpshopmart_accordion_directory_url.'img/icon-show.png'; ?>" />
237
+ </div>
238
+ <p style="font-size:18px;">'Hi! We saw you have been using <strong>Responsive Accordion And Collapse 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>
239
+ <p style="font-size:18px;"><strong><?php _e( '~ wpshopmart', '' ); ?></strong></p>
240
+ <p style="font-size:19px;">
241
+ <a style="color: #fff;background: #ef4238;padding: 5px 7px 4px 6px;border-radius: 4px;" href="https://wordpress.org/support/plugin/responsive-accordion-and-collapse/reviews/?filter=5" class="wpsm-acc-r-dismiss-review-notice wpsm-acc-r-review-out" target="_blank" rel="noopener">Rate the plugin</a>&nbsp; &nbsp;
242
+ <a style="color: #fff;background: #27d63c;padding: 5px 7px 4px 6px;border-radius: 4px;" href="#" class="wpsm-acc-r-dismiss-review-notice wpsm-rate-later" target="_self" rel="noopener"><?php _e( 'Nope, maybe later', '' ); ?></a>&nbsp; &nbsp;
243
+ <a style="color: #fff;background: #31a3dd;padding: 5px 7px 4px 6px;border-radius: 4px;" href="#" class="wpsm-acc-r-dismiss-review-notice wpsm-rated" target="_self" rel="noopener"><?php _e( 'I already did', '' ); ?></a>
244
+ </p>
245
+ </div>
246
+ <script type="text/javascript">
247
+ jQuery(document).ready( function($) {
248
+ $(document).on('click', '.wpsm-acc-r-dismiss-review-notice, .wpsm-acc-r-dismiss-notice .notice-dismiss', function( event ) {
249
+ if ( $(this).hasClass('wpsm-acc-r-review-out') ) {
250
+ var wpsm_rate_data_val = "1";
251
+ }
252
+ if ( $(this).hasClass('wpsm-rate-later') ) {
253
+ var wpsm_rate_data_val = "2";
254
+ event.preventDefault();
255
+ }
256
+ if ( $(this).hasClass('wpsm-rated') ) {
257
+ var wpsm_rate_data_val = "3";
258
+ event.preventDefault();
259
+ }
260
+
261
+ $.post( ajaxurl, {
262
+ action: 'wpsm_acc_r_dismiss_review',
263
+ wpsm_rate_data_acc_r : wpsm_rate_data_val
264
+ });
265
+
266
+ $('.wpsm-acc-r-review-notice').hide();
267
+ //location.reload();
268
+ });
269
+ });
270
+ </script>
271
+ <?php
272
+ }
273
+
274
+ add_action( 'wp_ajax_wpsm_acc_r_dismiss_review', 'wpsm_acc_r_dismiss_review' );
275
+ function wpsm_acc_r_dismiss_review() {
276
+ if ( ! $review ) {
277
+ $review = array();
278
+ }
279
+
280
+ if($_POST['wpsm_rate_data_acc_r']=="1"){
281
+ $review['time'] = time();
282
+ $review['dismissed'] = false;
283
+
284
+ }
285
+ if($_POST['wpsm_rate_data_acc_r']=="2"){
286
+ $review['time'] = time();
287
+ $review['dismissed'] = false;
288
+
289
+ }
290
+ if($_POST['wpsm_rate_data_acc_r']=="3"){
291
+ $review['time'] = time();
292
+ $review['dismissed'] = true;
293
+
294
+ }
295
+ update_option( 'wpsm_acc_r_review', $review );
296
+ die;
297
+ }
298
  ?>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: wpshopmart
3
  Donate link: http://www.wpshopmart.com
4
  Tags: Accordion, accordions, accordion plugin, accordion plugin jquery, accordions plugin wordpress, accordions shortcode, accordion shortcode, accordions Widget, accordion Widget, jQuery accordions, Responsive accordion, Responsive accordions, collapsable content, collapse, collapsible, display, expand, expandable, expandable content, hidden, hide, javascript, jquery, toggle, css accordion, css3 , bootstrap, bootstrap accordion, bootstrap collapse, wordpress accordion, widget, shortcode, responsive, plugin, wordpress accordion plugin
5
  Requires at least: 3.3
6
- Tested up to: 4.7
7
- Stable tag: 1.8.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -141,6 +141,9 @@ Please use WordPress support forum to ask any query regarding any issue.
141
 
142
  == Changelog ==
143
 
 
 
 
144
  = 1.8.6 =
145
  * Small css conflict resolved.
146
 
3
  Donate link: http://www.wpshopmart.com
4
  Tags: Accordion, accordions, accordion plugin, accordion plugin jquery, accordions plugin wordpress, accordions shortcode, accordion shortcode, accordions Widget, accordion Widget, jQuery accordions, Responsive accordion, Responsive accordions, collapsable content, collapse, collapsible, display, expand, expandable, expandable content, hidden, hide, javascript, jquery, toggle, css accordion, css3 , bootstrap, bootstrap accordion, bootstrap collapse, wordpress accordion, widget, shortcode, responsive, plugin, wordpress accordion plugin
5
  Requires at least: 3.3
6
+ Tested up to: 4.7.2
7
+ Stable tag: 1.8.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
141
 
142
  == Changelog ==
143
 
144
+ = 1.8.7 =
145
+ * minor bug resolved
146
+
147
  = 1.8.6 =
148
  * Small css conflict resolved.
149
 
responsive-accordion.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Responsive Accordion And Collapse
4
- * Version: 1.8.6
5
  * Description: Responsive Accordion is the most easiest drag & drop accordion builder for WordPress. You can generate multiple accordion and collapse with multiple colour.
6
  * Author: wpshopmart
7
  * Author URI: http://www.wpshopmart.com
1
  <?php
2
  /**
3
  * Plugin Name: Responsive Accordion And Collapse
4
+ * Version: 1.8.7
5
  * Description: Responsive Accordion is the most easiest drag & drop accordion builder for WordPress. You can generate multiple accordion and collapse with multiple colour.
6
  * Author: wpshopmart
7
  * Author URI: http://www.wpshopmart.com