Accordion FAQ - Version 2.0.5

Version Description

  • Compatible with WordPress 5.0 version.
Download this release

Release Info

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

Code changes from version 2.0.4 to 2.0.5

lib/installation/installation.php CHANGED
@@ -20,80 +20,6 @@ add_action( 'wp_enqueue_scripts', 'wpsm_ac_front_script' );
20
 
21
  add_filter( 'widget_text', 'do_shortcode');
22
 
23
- add_action('media_buttons_context', 'wpsm_ac_editor_popup_content_button');
24
- add_action('admin_footer', 'wpsm_ac_editor_popup_content');
25
-
26
- function wpsm_ac_editor_popup_content_button($context) {
27
- $img = wpshopmart_accordion_directory_url.'/img/icon-ac.png';
28
- $container_id = 'WPSM_AC';
29
- $title = 'Select Accordion to insert into post';
30
- $context .= '<style>.wp_ac_shortcode_button {
31
- background: #F8504B !important;
32
- border-color: #F8504B #F8504B #F8504B !important;
33
- -webkit-box-shadow: 0 1px 0 #F8504B !important;
34
- box-shadow: 0 1px 0 #F8504B !important;
35
- color: #fff;
36
- text-decoration: none;
37
- text-shadow: 0 -1px 1px #F8504B ,1px 0 1px #F8504B,0 1px 1px #F8504B,-1px 0 1px #F8504B !important;
38
- }</style>
39
- <a class="button button-primary wp_ac_shortcode_button thickbox" title="Select Accordion to insert into post" href="#TB_inline?width=400&inlineId='.$container_id.'">
40
- <span class="wp-media-buttons-icon" style="background: url('.$img.'); background-repeat: no-repeat; background-position: left bottom;"></span>
41
- Responsive Accordion Shortcode
42
- </a>';
43
- return $context;
44
- }
45
-
46
-
47
-
48
- function wpsm_ac_editor_popup_content() {
49
- ?>
50
- <script type="text/javascript">
51
- jQuery(document).ready(function() {
52
- jQuery('#wpsm_rac_insert').on('click', function() {
53
- var id = jQuery('#wpsm_rac_insertselect option:selected').val();
54
- window.send_to_editor('<p>[WPSM_AC id=' + id + ']</p>');
55
- tb_remove();
56
- })
57
- });
58
- </script>
59
- <style>
60
- .wp_ac_shortcode_button {
61
- background: #F8504B !important;
62
- border-color: #F8504B #F8504B #F8504B !important;
63
- -webkit-box-shadow: 0 1px 0 #F8504B !important;
64
- box-shadow: 0 1px 0 #F8504B !important;
65
- color: #fff !important;
66
- text-decoration: none;
67
- text-shadow: 0 -1px 1px #F8504B ,1px 0 1px #F8504B,0 1px 1px #F8504B,-1px 0 1px #F8504B !important;
68
- }
69
- </style>
70
- <div id="WPSM_AC" style="display:none;">
71
- <h3>Select Accordion To Insert Into Post</h3>
72
- <?php
73
-
74
- $all_posts = wp_count_posts( 'responsive_accordion')->publish;
75
- $args = array('post_type' => 'responsive_accordion', 'posts_per_page' =>$all_posts);
76
- global $All_rac;
77
- $All_rac = new WP_Query( $args );
78
- if( $All_rac->have_posts() ) { ?>
79
- <select id="wpsm_rac_insertselect" style="width: 100%;margin-bottom: 20px;">
80
- <?php
81
- while ( $All_rac->have_posts() ) : $All_rac->the_post(); ?>
82
- <?php $title = get_the_title(); ?>
83
- <option value="<?php echo get_the_ID(); ?>"><?php if (strlen($title) == 0) echo 'No Accordion Title'; else echo $title; ?></option>
84
- <?php
85
- endwhile;
86
- ?>
87
- </select>
88
- <button class='button primary wp_ac_shortcode_button' id='wpsm_rac_insert'><?php _e('Insert Accordion Shortcode', wpshopmart_accordion_text_domain); ?></button>
89
- <?php
90
- } else {
91
- _e('No Accordion Found', wpshopmart_accordion_text_domain);
92
- }
93
- ?>
94
- </div>
95
- <?php
96
- }
97
 
98
 
99
  function wpsm_ac_header_info() {
20
 
21
  add_filter( 'widget_text', 'do_shortcode');
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
 
25
  function wpsm_ac_header_info() {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: wpshopmart
3
  Donate link: https://www.wpshopmart.com
4
  Tags: Accordion, accordions, accordion plugin, FAQ, collapse, accordion plugin jquery, accordions plugin wordpress, accordions shortcode, accordion shortcode, accordions Widget, accordion Widget, jQuery accordions, Responsive accordion, Responsive accordions, collapsable content, 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: 4.0
6
- Tested up to: 4.9.8
7
- Stable tag: 2.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -148,7 +148,11 @@ Please use WordPress support forum to ask any query regarding any issue.
148
  10. accordion styles 1
149
  11. accordion styles 2
150
 
151
- == Changelog
 
 
 
 
152
 
153
  = 2.0.4 =
154
  * minor bug resolved
3
  Donate link: https://www.wpshopmart.com
4
  Tags: Accordion, accordions, accordion plugin, FAQ, collapse, accordion plugin jquery, accordions plugin wordpress, accordions shortcode, accordion shortcode, accordions Widget, accordion Widget, jQuery accordions, Responsive accordion, Responsive accordions, collapsable content, 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: 4.0
6
+ Tested up to: 5.0
7
+ Stable tag: 2.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
148
  10. accordion styles 1
149
  11. accordion styles 2
150
 
151
+ == Changelog ==
152
+
153
+ = 2.0.5 =
154
+
155
+ * Compatible with WordPress 5.0 version.
156
 
157
  = 2.0.4 =
158
  * minor bug resolved
responsive-accordion.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Responsive Accordion And Collapse
4
- * Version: 2.0.4
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: https://www.wpshopmart.com
1
  <?php
2
  /**
3
  * Plugin Name: Responsive Accordion And Collapse
4
+ * Version: 2.0.5
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: https://www.wpshopmart.com