Accordion - Version 2.0.18

Version Description

  • 31/05/2017 - add - Added filter hook for default plus icon.
    • 31/05/2017 - add - Added filter hook for default minus icon.
    • 31/05/2017 - update - adding icon method updated.
Download this release

Release Info

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

Code changes from version 2.0.17 to 2.0.18

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.17
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.17' );
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' );
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.18
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.18' );
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' );
assets/admin/css/style.css CHANGED
@@ -36,6 +36,8 @@
36
  cursor: pointer;
37
  border: 1px solid rgb(255, 89, 16);
38
  font-size: 30px;
 
 
39
  }
40
 
41
  #accordions_metabox .accordions_icons_custom_minus {
@@ -47,6 +49,8 @@
47
  cursor: pointer;
48
  border: 1px solid rgb(255, 89, 16);
49
  font-size: 30px;
 
 
50
  }
51
 
52
 
36
  cursor: pointer;
37
  border: 1px solid rgb(255, 89, 16);
38
  font-size: 30px;
39
+ vertical-align: top;
40
+ text-align: center;
41
  }
42
 
43
  #accordions_metabox .accordions_icons_custom_minus {
49
  cursor: pointer;
50
  border: 1px solid rgb(255, 89, 16);
51
  font-size: 30px;
52
+ vertical-align: top;
53
+ text-align: center;
54
  }
55
 
56
 
assets/admin/js/scripts.js CHANGED
@@ -53,29 +53,31 @@ jQuery(document).ready(function($)
53
 
54
 
55
 
56
- $(document).on('click', '.accordions_icons_custom_plus', function()
57
- {
58
- var icon_id = prompt("font awesome icon id ?","");
59
- if(icon_id != null && icon_id != '')
60
- {
 
 
 
61
 
62
- $(this).addClass(icon_id);
63
- $(".accordions_icons_custom_plus input").val(icon_id);
64
- }
65
 
66
  })
 
 
 
 
67
 
68
-
69
- $(document).on('click', '.accordions_icons_custom_minus', function()
70
- {
71
- var icon_id = prompt("font awesome icon id ?","");
72
- if(icon_id != null && icon_id != '')
73
- {
74
-
75
-
76
- $(this).addClass(icon_id);
77
- $(".accordions_icons_custom_minus input").val(icon_id);
78
- }
79
 
80
  })
81
 
53
 
54
 
55
 
56
+ $(document).on('keyup', '.accordions_icons_custom_plus_input', function()
57
+ {
58
+
59
+ icon_id = $(this).val();
60
+
61
+ $('.accordions_icons_custom_plus i').removeAttr('class');
62
+ $('.accordions_icons_custom_plus i').addClass('fa '+icon_id);
63
+ console.log(icon_id);
64
 
 
 
 
65
 
66
  })
67
+
68
+
69
+
70
+
71
 
72
+ $(document).on('keyup', '.accordions_icons_custom_minus_input', function()
73
+ {
74
+
75
+ icon_id = $(this).val();
76
+
77
+ $('.accordions_icons_custom_minus i').removeAttr('class');
78
+ $('.accordions_icons_custom_minus i').addClass('fa '+icon_id);
79
+ console.log(icon_id);
80
+
 
 
81
 
82
  })
83
 
includes/functions.php CHANGED
@@ -14,10 +14,6 @@ if ( ! defined('ABSPATH')) exit; // if direct access
14
 
15
 
16
 
17
-
18
-
19
-
20
-
21
  function accordions_add_shortcode_column( $columns ) {
22
  return array_merge( $columns,
23
  array( 'shortcode' => __( 'Shortcode', 'accordions' ) ) );
14
 
15
 
16
 
 
 
 
 
17
  function accordions_add_shortcode_column( $columns ) {
18
  return array_merge( $columns,
19
  array( 'shortcode' => __( 'Shortcode', 'accordions' ) ) );
includes/meta.php CHANGED
@@ -85,13 +85,13 @@ function meta_boxes_accordions_input( $post ) {
85
  $accordions_icons_plus = get_post_meta( $post->ID, 'accordions_icons_plus', true );
86
 
87
  if(empty($accordions_icons_plus)){
88
- $accordions_icons_plus = 'fa-chevron-up';
89
  }
90
 
91
  $accordions_icons_minus = get_post_meta( $post->ID, 'accordions_icons_minus', true );
92
 
93
  if(empty($accordions_icons_minus)){
94
- $accordions_icons_minus = 'fa-chevron-down';
95
  }
96
 
97
 
@@ -330,14 +330,12 @@ function meta_boxes_accordions_input( $post ) {
330
 
331
 
332
  <p class="option-info"><?php _e('Plus Icon.','accordions'); ?></p>
333
- <span title="Plus Icon" class="accordions_icons_custom_plus fa <?php echo $accordions_icons_plus; ?>">
334
- <input type="hidden" name="accordions_icons_plus" value="<?php if(!empty($accordions_icons_plus)) echo $accordions_icons_plus; ?>" />
335
- </span>
336
 
337
  <p class="option-info"><?php _e('Minus Icon.','accordions'); ?></p>
338
- <span title="Minus Icon" class="accordions_icons_custom_minus fa <?php echo $accordions_icons_minus; ?>">
339
- <input type="hidden" name="accordions_icons_minus" value="<?php if(!empty($accordions_icons_minus)) echo $accordions_icons_minus; ?>" />
340
- </span>
341
 
342
 
343
  <p class="option-info"><?php _e('Icon color.','accordions'); ?></p>
85
  $accordions_icons_plus = get_post_meta( $post->ID, 'accordions_icons_plus', true );
86
 
87
  if(empty($accordions_icons_plus)){
88
+ $accordions_icons_plus = apply_filters('accordions_filter_default_icon_plus', 'fa-chevron-up');
89
  }
90
 
91
  $accordions_icons_minus = get_post_meta( $post->ID, 'accordions_icons_minus', true );
92
 
93
  if(empty($accordions_icons_minus)){
94
+ $accordions_icons_minus = apply_filters('accordions_filter_default_icon_minus', 'fa-chevron-down');
95
  }
96
 
97
 
330
 
331
 
332
  <p class="option-info"><?php _e('Plus Icon.','accordions'); ?></p>
333
+ <span title="Plus Icon" class="accordions_icons_custom_plus"><i class="fa <?php echo $accordions_icons_plus; ?>"></i></span>
334
+ <input type="text" class="accordions_icons_custom_plus_input" name="accordions_icons_plus" value="<?php if(!empty($accordions_icons_plus)) echo $accordions_icons_plus; ?>" />
 
335
 
336
  <p class="option-info"><?php _e('Minus Icon.','accordions'); ?></p>
337
+ <span title="Minus Icon" class="accordions_icons_custom_minus"><i class="fa <?php echo $accordions_icons_minus; ?>"></i></span>
338
+ <input type="text" class="accordions_icons_custom_minus_input" name="accordions_icons_minus" value="<?php if(!empty($accordions_icons_minus)) echo $accordions_icons_minus; ?>" />
 
339
 
340
 
341
  <p class="option-info"><?php _e('Icon color.','accordions'); ?></p>
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.7
7
- Stable tag: 2.0.17
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -91,6 +91,11 @@ then paste this shortcode anywhere in your page to display accordions<br />
91
 
92
  == Changelog ==
93
 
 
 
 
 
 
94
  = 2.0.17 =
95
  * 10/03/2017 - fix - Newly added accordion sorting issue.
96
 
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.8
7
+ Stable tag: 2.0.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
91
 
92
  == Changelog ==
93
 
94
+ = 2.0.18 =
95
+ * 31/05/2017 - add - Added filter hook for default plus icon.
96
+ * 31/05/2017 - add - Added filter hook for default minus icon.
97
+ * 31/05/2017 - update - adding icon method updated.
98
+
99
  = 2.0.17 =
100
  * 10/03/2017 - fix - Newly added accordion sorting issue.
101