Accordion - Version 2.1.12

Version Description

  • 29/05/2019 - fix - optimize script and css file load on admin.
Download this release

Release Info

Developer pickplugins
Plugin Icon 128x128 Accordion
Version 2.1.12
Comparing to
See all releases

Code changes from version 2.1.11 to 2.1.12

Files changed (2) hide show
  1. accordions.php +27 -26
  2. readme.txt +4 -1
accordions.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
- Plugin Name: Accordions
4
  Plugin URI: https://www.pickplugins.com/item/accordions-html-css3-responsive-accordion-grid-for-wordpress/?ref=dashboard
5
  Description: Fully responsive and mobile ready accordion grid for wordpress.
6
- Version: 2.1.11
7
  WC requires at least: 3.0.0
8
- WC tested up to: 3.5
9
  Author: PickPlugins
10
  Author URI: http://pickplugins.com
11
  Text Domain: accordions
@@ -111,48 +111,49 @@ class Accordions{
111
  if($post->post_type=='accordions'){
112
 
113
  wp_enqueue_editor();
 
 
 
 
 
 
 
114
 
115
- }
116
 
117
- if($post->post_type=='product'){
 
 
 
 
118
 
 
 
119
 
 
 
120
 
 
 
121
  }
122
 
 
123
 
 
 
124
 
 
125
 
126
- // wp_enqueue_script( 'color-picker', plugins_url('/assets/admin/js/color-picker.js', __FILE__ ), array( 'wp-color-picker' ), true, true );
127
-
128
- }
129
 
130
 
131
 
 
132
 
133
- wp_enqueue_script('jquery');
134
- wp_enqueue_script('jquery-ui-sortable');
135
- wp_enqueue_script( 'jquery-ui-core' );
136
- wp_enqueue_script('jquery-ui-accordion');
137
- wp_enqueue_script('jquery-ui-tabs');
138
- wp_enqueue_script('wp-color-picker');
139
- wp_enqueue_style( 'wp-color-picker' );
140
 
141
 
142
- wp_enqueue_script('accordions_admin_js', plugins_url( 'assets/admin/js/scripts.js' , __FILE__ ) , array( 'jquery' ),'20181018');
143
- wp_localize_script( 'accordions_admin_js', 'accordions_ajax', array( 'accordions_ajaxurl' => admin_url( 'admin-ajax.php')));
144
- wp_localize_script( 'accordions_admin_js', 'L10n_accordions', array(
145
- 'confirm_text' => __( 'Confirm', 'accordions' )
146
- ));
147
 
148
- wp_enqueue_style('accordions_admin_style', plugins_url( 'assets/admin/css/style.css', __FILE__ ),'','20181018');
149
- wp_enqueue_style('fontawesome', plugins_url( 'assets/global/css/fontawesome.min.css', __FILE__ ),'','20181018');
150
 
151
- wp_enqueue_script('codemirror', plugins_url( 'assets/admin/js/codemirror.js' , __FILE__ ) , array( 'jquery' ),'20181018');
152
- wp_enqueue_style('codemirror', plugins_url( 'assets/admin/css/codemirror.css', __FILE__ ),'','20181018');
153
 
154
- wp_enqueue_script('settings-tabs', plugins_url( 'assets/admin/js/settings-tabs.js' , __FILE__ ) , array( 'jquery' ),'20181018');
155
- wp_enqueue_style('settings-tabs', plugins_url( 'assets/admin/css/settings-tabs.css', __FILE__ ),'','20181018');
156
 
157
 
158
 
1
  <?php
2
  /*
3
+ Plugin Name: Accordions by PickPlugins
4
  Plugin URI: https://www.pickplugins.com/item/accordions-html-css3-responsive-accordion-grid-for-wordpress/?ref=dashboard
5
  Description: Fully responsive and mobile ready accordion grid for wordpress.
6
+ Version: 2.1.12
7
  WC requires at least: 3.0.0
8
+ WC tested up to: 3.6
9
  Author: PickPlugins
10
  Author URI: http://pickplugins.com
11
  Text Domain: accordions
111
  if($post->post_type=='accordions'){
112
 
113
  wp_enqueue_editor();
114
+ wp_enqueue_script('jquery');
115
+ wp_enqueue_script('jquery-ui-sortable');
116
+ wp_enqueue_script( 'jquery-ui-core' );
117
+ wp_enqueue_script('jquery-ui-accordion');
118
+ wp_enqueue_script('jquery-ui-tabs');
119
+ wp_enqueue_script('wp-color-picker');
120
+ wp_enqueue_style( 'wp-color-picker' );
121
 
 
122
 
123
+ wp_enqueue_script('accordions_admin_js', plugins_url( 'assets/admin/js/scripts.js' , __FILE__ ) , array( 'jquery' ),'20181018');
124
+ wp_localize_script( 'accordions_admin_js', 'accordions_ajax', array( 'accordions_ajaxurl' => admin_url( 'admin-ajax.php')));
125
+ wp_localize_script( 'accordions_admin_js', 'L10n_accordions', array(
126
+ 'confirm_text' => __( 'Confirm', 'accordions' )
127
+ ));
128
 
129
+ wp_enqueue_style('accordions_admin_style', plugins_url( 'assets/admin/css/style.css', __FILE__ ),'','20181018');
130
+ wp_enqueue_style('fontawesome', plugins_url( 'assets/global/css/fontawesome.min.css', __FILE__ ),'','20181018');
131
 
132
+ wp_enqueue_script('codemirror', plugins_url( 'assets/admin/js/codemirror.js' , __FILE__ ) , array( 'jquery' ),'20181018');
133
+ wp_enqueue_style('codemirror', plugins_url( 'assets/admin/css/codemirror.css', __FILE__ ),'','20181018');
134
 
135
+ wp_enqueue_script('settings-tabs', plugins_url( 'assets/admin/js/settings-tabs.js' , __FILE__ ) , array( 'jquery' ),'20181018');
136
+ wp_enqueue_style('settings-tabs', plugins_url( 'assets/admin/css/settings-tabs.css', __FILE__ ),'','20181018');
137
  }
138
 
139
+ if($post->post_type=='product'){
140
 
141
+ wp_enqueue_script('accordions_admin_js', plugins_url( 'assets/admin/js/scripts.js' , __FILE__ ) , array( 'jquery' ),'20181018');
142
+ wp_localize_script( 'accordions_admin_js', 'accordions_ajax', array( 'accordions_ajaxurl' => admin_url( 'admin-ajax.php')));
143
 
144
+ }
145
 
 
 
 
146
 
147
 
148
 
149
+ // wp_enqueue_script( 'color-picker', plugins_url('/assets/admin/js/color-picker.js', __FILE__ ), array( 'wp-color-picker' ), true, true );
150
 
151
+ }
 
 
 
 
 
 
152
 
153
 
 
 
 
 
 
154
 
 
 
155
 
 
 
156
 
 
 
157
 
158
 
159
 
readme.txt CHANGED
@@ -4,7 +4,7 @@
4
  Tags: accordion, accordions, Responsive accordions, FAQ, WooCommerce FAQ, WooCommerce FAQ Tab, accordions plugin, jQuery accordions, accordions short-code, accordions Widget, accordions plugin wordpress, accordions plugin jquery, tabs, jquery tabs, tab, responsive tabs
5
  Requires at least: 3.8
6
  Tested up to: 5.2
7
- Stable tag: 2.1.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -92,6 +92,9 @@ then paste this shortcode anywhere in your page to display accordions<br />
92
 
93
  == Changelog ==
94
 
 
 
 
95
  = 2.1.10 =
96
  * 21/03/2019 - add - video tutorials added.
97
  * 21/03/2019 - update - update accordion content editor.
4
  Tags: accordion, accordions, Responsive accordions, FAQ, WooCommerce FAQ, WooCommerce FAQ Tab, accordions plugin, jQuery accordions, accordions short-code, accordions Widget, accordions plugin wordpress, accordions plugin jquery, tabs, jquery tabs, tab, responsive tabs
5
  Requires at least: 3.8
6
  Tested up to: 5.2
7
+ Stable tag: 2.1.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
92
 
93
  == Changelog ==
94
 
95
+ = 2.1.12 =
96
+ * 29/05/2019 - fix - optimize script and css file load on admin.
97
+
98
  = 2.1.10 =
99
  * 21/03/2019 - add - video tutorials added.
100
  * 21/03/2019 - update - update accordion content editor.