Accordion - Version 2.0.9

Version Description

  • 21/07/2016 - add - added filter to work in sidebar.
Download this release

Release Info

Developer paratheme
Plugin Icon 128x128 Accordion
Version 2.0.9
Comparing to
See all releases

Code changes from version 2.0.8 to 2.0.9

accordions.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Accordions
4
  Plugin URI: http://www.pickplugins.com/item/accordions-html-css3-responsive-accordion-grid-for-wordpress/
5
  Description: Fully responsive and mobile ready accordion grid for wordpress.
6
- Version: 2.0.8
7
  Author: pickplugins
8
  Author URI: http://pickplugins.com
9
  License: GPLv2 or later
@@ -26,7 +26,7 @@ class Accordions{
26
  define('accordions_conatct_url', 'http://pickplugins.com/contact' );
27
  define('accordions_qa_url', 'http://www.pickplugins.com/questions/' );
28
  define('accordions_plugin_name', 'Accordions' );
29
- define('accordions_plugin_version', '2.0.8' );
30
  define('accordions_customer_type', 'free' );
31
  define('accordions_share_url', 'https://wordpress.org/plugins/accordions/' );
32
  define('accordions_tutorial_video_url', '//www.youtube.com/embed/h2wNFJaaY8s?rel=0' );
@@ -38,14 +38,18 @@ class Accordions{
38
  require_once( plugin_dir_path( __FILE__ ) . 'includes/class-shortcodes.php');
39
  require_once( plugin_dir_path( __FILE__ ) . 'includes/class-settings.php');
40
 
41
-
42
 
43
  add_action( 'wp_enqueue_scripts', array( $this, 'accordions_front_scripts' ) );
44
  add_action( 'admin_enqueue_scripts', array( $this, 'accordions_admin_scripts' ) );
45
 
46
  add_action( 'plugins_loaded', array( $this, 'accordions_load_textdomain' ));
47
 
48
-
 
 
 
 
49
  }
50
 
51
 
@@ -107,7 +111,16 @@ class Accordions{
107
  }
108
 
109
 
110
-
 
 
 
 
 
 
 
 
 
111
 
112
 
113
  }
3
  Plugin Name: Accordions
4
  Plugin URI: http://www.pickplugins.com/item/accordions-html-css3-responsive-accordion-grid-for-wordpress/
5
  Description: Fully responsive and mobile ready accordion grid for wordpress.
6
+ Version: 2.0.9
7
  Author: pickplugins
8
  Author URI: http://pickplugins.com
9
  License: GPLv2 or later
26
  define('accordions_conatct_url', 'http://pickplugins.com/contact' );
27
  define('accordions_qa_url', 'http://www.pickplugins.com/questions/' );
28
  define('accordions_plugin_name', 'Accordions' );
29
+ define('accordions_plugin_version', '2.0.9' );
30
  define('accordions_customer_type', 'free' );
31
  define('accordions_share_url', 'https://wordpress.org/plugins/accordions/' );
32
  define('accordions_tutorial_video_url', '//www.youtube.com/embed/h2wNFJaaY8s?rel=0' );
38
  require_once( plugin_dir_path( __FILE__ ) . 'includes/class-shortcodes.php');
39
  require_once( plugin_dir_path( __FILE__ ) . 'includes/class-settings.php');
40
 
41
+
42
 
43
  add_action( 'wp_enqueue_scripts', array( $this, 'accordions_front_scripts' ) );
44
  add_action( 'admin_enqueue_scripts', array( $this, 'accordions_admin_scripts' ) );
45
 
46
  add_action( 'plugins_loaded', array( $this, 'accordions_load_textdomain' ));
47
 
48
+ // DIsplay shortcode in widgets
49
+ add_filter('widget_text', 'do_shortcode');
50
+
51
+ add_filter( 'plugin_action_links_'.plugin_basename( __FILE__ ), array( $this, 'ts_add_plugin_action_links' ));
52
+
53
  }
54
 
55
 
111
  }
112
 
113
 
114
+ function ts_add_plugin_action_links( $links ) {
115
+
116
+ return array_merge(
117
+ array(
118
+ 'settings' => '<a style=" font-weight:bold;color:#f00;" href="http://www.pickplugins.com/item/accordions-html-css3-responsive-accordion-grid-for-wordpress/">Get Pro!</a>'
119
+ ),
120
+ $links
121
+ );
122
+
123
+ }
124
 
125
 
126
  }
assets/admin/css/style.css CHANGED
@@ -192,6 +192,36 @@
192
 
193
 
194
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
195
 
196
 
197
 
192
 
193
 
194
 
195
+ .our-plugins {
196
+ padding-top: 20px;
197
+ }
198
+
199
+ .our-plugins .single {
200
+ display: inline-block;
201
+ margin: 15px;
202
+ vertical-align: top;
203
+ width: 300px;
204
+ }
205
+ .our-plugins .single .thumb{}
206
+ .our-plugins .single .title {
207
+ font-size: 15px;
208
+ font-weight: bold;
209
+ margin: 7px 0;
210
+ }
211
+ .our-plugins .single .content {
212
+ margin: 10px 0;
213
+ }
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
 
226
 
227
 
includes/class-functions.php CHANGED
@@ -42,6 +42,105 @@ class class_accordions_functions {
42
 
43
 
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  }
46
 
47
  new class_accordions_functions();
42
 
43
 
44
 
45
+
46
+
47
+ public function our_plugins(){
48
+
49
+ $plugins_data = array(
50
+
51
+
52
+ 'post-grid'=>array(
53
+ 'title'=>'Post Grid',
54
+ 'content'=>'Awesome post grid for query post from any post type and display on grid.',
55
+ 'item_link'=>'http://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/',
56
+ 'item_link_free'=>'https://wordpress.org/plugins/post-grid/',
57
+ 'thumb'=>accordions_plugin_url.'includes/menu/images/post-grid.png',
58
+ ),
59
+
60
+
61
+ 'team'=>array(
62
+ 'title'=>'Team',
63
+ 'content'=>'Fully responsive and mobile ready meet the team showcase plugin for wordpress.',
64
+ 'item_link'=>'http://www.pickplugins.com/item/team-responsive-meet-the-team-grid-for-wordpress/',
65
+ 'item_link_free'=>'https://wordpress.org/plugins/team/',
66
+ 'thumb'=>accordions_plugin_url.'includes/menu/images/team.png',
67
+ ),
68
+
69
+ 'job-board-manager'=>array(
70
+ 'title'=>'Job Board Manager',
71
+ 'content'=>' Awesome Job Board Manager.',
72
+ 'item_link'=>'https://wordpress.org/plugins/job-board-manager/',
73
+ 'item_link_free'=>'https://wordpress.org/plugins/job-board-manager/',
74
+ 'thumb'=>accordions_plugin_url.'includes/menu/images/job-board-manager.png',
75
+ ),
76
+
77
+ 'classified-maker'=>array(
78
+ 'title'=>'Classified Maker',
79
+ 'content'=>'Create Awesome Classified Website in a Minute.',
80
+ 'item_link'=>'https://wordpress.org/plugins/classified-maker/',
81
+ 'item_link_free'=>'https://wordpress.org/plugins/classified-maker/',
82
+ 'thumb'=>accordions_plugin_url.'includes/menu/images/classified-maker.png',
83
+ ),
84
+
85
+
86
+ 'woocommerce-products-slider'=>array(
87
+ 'title'=>'Woocommerce Products Slider',
88
+ 'content'=>'Fully responsive and mobile ready Carousel Slider for your woo-commerce product.',
89
+ 'item_link'=>'http://www.pickplugins.com/item/woocommerce-products-slider-for-wordpress/',
90
+ 'item_link_free'=>'https://wordpress.org/plugins/woocommerce-products-slider/',
91
+ 'thumb'=>accordions_plugin_url.'includes/menu/images/woocommerce-products-slider.png',
92
+ ),
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+ );
104
+
105
+
106
+ $plugins_data = apply_filters('pickplugins_plugins', $plugins_data);
107
+
108
+ $html= '';
109
+
110
+ $html.= '<div class="our-plugins">';
111
+
112
+ foreach($plugins_data as $key=>$plugin){
113
+
114
+ $html.= '<div class="single">';
115
+
116
+ $html.= '<div class="thumb"><a href="'.$plugin['item_link'].'"><img src="'.$plugin['thumb'].'" /></a></div>';
117
+ $html.= '<div class="title"><a href="'.$plugin['item_link'].'">'.$plugin['title'].'</a></div>';
118
+ $html.= '<div class="content">'.$plugin['content'].'</div>';
119
+
120
+
121
+ $html.= '</div>';
122
+
123
+
124
+
125
+ }
126
+
127
+ $html.= '</div>';
128
+
129
+
130
+ return $html;
131
+
132
+
133
+ }
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
  }
145
 
146
  new class_accordions_functions();
includes/functions.php CHANGED
@@ -10,6 +10,14 @@ if ( ! defined('ABSPATH')) exit; // if direct access
10
 
11
 
12
 
 
 
 
 
 
 
 
 
13
  function accordions_add_shortcode_column( $columns ) {
14
  return array_merge( $columns,
15
  array( 'shortcode' => __( 'Shortcode', 'accordions' ) ) );
10
 
11
 
12
 
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
  function accordions_add_shortcode_column( $columns ) {
22
  return array_merge( $columns,
23
  array( 'shortcode' => __( 'Shortcode', 'accordions' ) ) );
includes/menu/help.php CHANGED
@@ -22,6 +22,7 @@ if ( ! defined('ABSPATH')) exit; // if direct access
22
  <div class="para-settings">
23
  <ul class="tab-nav">
24
  <li nav="1" class="nav1 active"><i class="fa fa-hand-o-right"></i> <?php _e('Help & Support','accordions'); ?></li>
 
25
  </ul> <!-- tab-nav end -->
26
 
27
  <ul class="box">
@@ -96,7 +97,18 @@ if ( ! defined('ABSPATH')) exit; // if direct access
96
 
97
  </li>
98
 
99
-
 
 
 
 
 
 
 
 
 
 
 
100
 
101
  </div>
102
 
22
  <div class="para-settings">
23
  <ul class="tab-nav">
24
  <li nav="1" class="nav1 active"><i class="fa fa-hand-o-right"></i> <?php _e('Help & Support','accordions'); ?></li>
25
+ <li nav="2" class="nav2"><i class="fa fa-star"></i> <?php _e('Our Plugins','accordions'); ?></li>
26
  </ul> <!-- tab-nav end -->
27
 
28
  <ul class="box">
97
 
98
  </li>
99
 
100
+ <li style="display: none;" class="box2 tab-box">
101
+
102
+ <?php
103
+
104
+ $class_accordions_functions = new class_accordions_functions();
105
+
106
+ echo $class_accordions_functions->our_plugins();
107
+
108
+ ?>
109
+
110
+
111
+ </li>
112
 
113
  </div>
114
 
includes/menu/images/classified-maker.png ADDED
Binary file
includes/menu/images/job-board-manager.png ADDED
Binary file
includes/menu/images/post-grid.png ADDED
Binary file
includes/menu/images/team.png ADDED
Binary file
includes/menu/images/woocommerce-products-slider.png ADDED
Binary file
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Donate link: http://pickplugins.com
4
  Tags: accordion, accordions, Responsive accordions, 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: 4.5.1
7
- Stable tag: 2.0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -94,6 +94,9 @@ then paste this shortcode anywhere in your page to display accordions<br />
94
 
95
  == Changelog ==
96
 
 
 
 
97
  = 2.0.8 =
98
  * 06/05/2016 - update - font aswesome latest version added.
99
  * 06/05/2016 - update - jquery-ui minified & latest version added.
3
  Donate link: http://pickplugins.com
4
  Tags: accordion, accordions, Responsive accordions, 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: 4.5.3
7
+ Stable tag: 2.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
94
 
95
  == Changelog ==
96
 
97
+ = 2.0.9 =
98
+ * 21/07/2016 - add - added filter to work in sidebar.
99
+
100
  = 2.0.8 =
101
  * 06/05/2016 - update - font aswesome latest version added.
102
  * 06/05/2016 - update - jquery-ui minified & latest version added.