Accordion - Version 2.0.5

Version Description

  • 25/02/2016 - fix- first accordion default open issue fixed.
Download this release

Release Info

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

Code changes from version 2.0.4 to 2.0.5

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.4
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.4' );
30
  define('accordions_customer_type', 'free' ); // pro & 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.5
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.5' );
30
  define('accordions_customer_type', 'free' ); // pro & free
31
  define('accordions_share_url', 'https://wordpress.org/plugins/accordions/' );
32
  define('accordions_tutorial_video_url', '//www.youtube.com/embed/h2wNFJaaY8s?rel=0' );
includes/meta.php CHANGED
@@ -98,7 +98,7 @@ function meta_boxes_accordions_input( $post ) {
98
 
99
  $accordions_icons_color = get_post_meta( $post->ID, 'accordions_icons_color', true );
100
  $accordions_icons_font_size = get_post_meta( $post->ID, 'accordions_icons_font_size', true );
101
- $accordions_icons_position = get_post_meta( $post->ID, 'accordions_icons_position', true );
102
 
103
  $accordions_default_bg_color = get_post_meta( $post->ID, 'accordions_default_bg_color', true );
104
  $accordions_active_bg_color = get_post_meta( $post->ID, 'accordions_active_bg_color', true );
@@ -339,14 +339,7 @@ function meta_boxes_accordions_input( $post ) {
339
  <p class="option-info"><?php _e('Icon font size.','accordions'); ?></p>
340
  <input type="text" name="accordions_icons_font_size" placeholder="20px" id="accordions_icons_font_size" value="<?php if(!empty($accordions_icons_font_size)) echo $accordions_icons_font_size; ?>" />
341
 
342
-
343
- <p class="option-info"><?php _e('Icon Position.','accordions'); ?></p>
344
-
345
- <select name="accordions_icons_position" >
346
- <option value="left" <?php if($accordions_icons_position=="left")echo "selected"; ?>><?php _e('Left','accordions'); ?></option>
347
- <option value="right" <?php if($accordions_icons_position=="right")echo "selected"; ?>><?php _e('Right','accordions'); ?></option>
348
- </select>
349
-
350
 
351
  </div>
352
 
@@ -606,7 +599,7 @@ function meta_boxes_accordions_save( $post_id ) {
606
  $accordions_icons_minus = sanitize_text_field( $_POST['accordions_icons_minus'] );
607
  $accordions_icons_color = sanitize_text_field( $_POST['accordions_icons_color'] );
608
  $accordions_icons_font_size = sanitize_text_field( $_POST['accordions_icons_font_size'] );
609
- $accordions_icons_position = sanitize_text_field( $_POST['accordions_icons_position'] );
610
 
611
  $accordions_default_bg_color = sanitize_text_field( $_POST['accordions_default_bg_color'] );
612
  $accordions_active_bg_color = sanitize_text_field( $_POST['accordions_active_bg_color'] );
@@ -656,7 +649,7 @@ function meta_boxes_accordions_save( $post_id ) {
656
  update_post_meta( $post_id, 'accordions_icons_minus', $accordions_icons_minus );
657
  update_post_meta( $post_id, 'accordions_icons_color', $accordions_icons_color );
658
  update_post_meta( $post_id, 'accordions_icons_font_size', $accordions_icons_font_size );
659
- update_post_meta( $post_id, 'accordions_icons_position', $accordions_icons_position );
660
 
661
  update_post_meta( $post_id, 'accordions_default_bg_color', $accordions_default_bg_color );
662
  update_post_meta( $post_id, 'accordions_active_bg_color', $accordions_active_bg_color );
98
 
99
  $accordions_icons_color = get_post_meta( $post->ID, 'accordions_icons_color', true );
100
  $accordions_icons_font_size = get_post_meta( $post->ID, 'accordions_icons_font_size', true );
101
+
102
 
103
  $accordions_default_bg_color = get_post_meta( $post->ID, 'accordions_default_bg_color', true );
104
  $accordions_active_bg_color = get_post_meta( $post->ID, 'accordions_active_bg_color', true );
339
  <p class="option-info"><?php _e('Icon font size.','accordions'); ?></p>
340
  <input type="text" name="accordions_icons_font_size" placeholder="20px" id="accordions_icons_font_size" value="<?php if(!empty($accordions_icons_font_size)) echo $accordions_icons_font_size; ?>" />
341
 
342
+
 
 
 
 
 
 
 
343
 
344
  </div>
345
 
599
  $accordions_icons_minus = sanitize_text_field( $_POST['accordions_icons_minus'] );
600
  $accordions_icons_color = sanitize_text_field( $_POST['accordions_icons_color'] );
601
  $accordions_icons_font_size = sanitize_text_field( $_POST['accordions_icons_font_size'] );
602
+
603
 
604
  $accordions_default_bg_color = sanitize_text_field( $_POST['accordions_default_bg_color'] );
605
  $accordions_active_bg_color = sanitize_text_field( $_POST['accordions_active_bg_color'] );
649
  update_post_meta( $post_id, 'accordions_icons_minus', $accordions_icons_minus );
650
  update_post_meta( $post_id, 'accordions_icons_color', $accordions_icons_color );
651
  update_post_meta( $post_id, 'accordions_icons_font_size', $accordions_icons_font_size );
652
+
653
 
654
  update_post_meta( $post_id, 'accordions_default_bg_color', $accordions_default_bg_color );
655
  update_post_meta( $post_id, 'accordions_active_bg_color', $accordions_active_bg_color );
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Accordion & Tabs ===
2
  Contributors: pickplugins
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.4.2
7
- Stable tag: 2.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -94,6 +94,8 @@ then paste this shortcode anywhere in your page to display accordions<br />
94
 
95
  == Changelog ==
96
 
 
 
97
 
98
  = 2.0.4 =
99
  * 25/02/2016 add- tabs features added.
1
+ === Accordion ===
2
  Contributors: pickplugins
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.4.2
7
+ Stable tag: 2.0.5
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.5 =
98
+ * 25/02/2016 - fix- first accordion default open issue fixed.
99
 
100
  = 2.0.4 =
101
  * 25/02/2016 add- tabs features added.
templates/lazy.php DELETED
@@ -1,25 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * @Author pickplugins
5
- * Copyright: 2015 pickplugins
6
- */
7
-
8
- if ( ! defined('ABSPATH')) exit; // if direct access
9
-
10
- if($accordions_lazy_load=='yes'){
11
-
12
- $html.= '<p id="accordions-lazy-'.$post_id.'" class="accordions-lazy"><img src="'.accordions_plugin_url.'assets/frontend/images/loading.gif"/></p>';
13
- $html .= "<script>
14
-
15
- jQuery( window ).load(function() {
16
-
17
- jQuery('#accordions-lazy-".$post_id."').fadeOut();
18
- jQuery('#accordions-".$post_id."').fadeIn();
19
- });
20
-
21
- </script>";
22
-
23
-
24
-
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
templates/scripts.php CHANGED
@@ -16,6 +16,7 @@ if ( ! defined('ABSPATH')) exit; // if direct access
16
  {
17
 
18
  $("#accordions-'.$post_id.'.accordions").accordion({
 
19
  event: "click",
20
  collapsible: '.$accordions_collapsible.',
21
  heightStyle: "'.$accordions_heightStyle.'",
16
  {
17
 
18
  $("#accordions-'.$post_id.'.accordions").accordion({
19
+ active: "",
20
  event: "click",
21
  collapsible: '.$accordions_collapsible.',
22
  heightStyle: "'.$accordions_heightStyle.'",
templates/tabs-lazy.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * @Author pickplugins
5
- * Copyright: 2015 pickplugins
6
- */
7
-
8
- if ( ! defined('ABSPATH')) exit; // if direct access
9
-
10
- if($accordions_lazy_load=='yes'){
11
-
12
- $html.= '<p id="accordions-tabs-lazy-'.$post_id.'" class="accordions-tabs-lazy"><img src="'.accordions_plugin_url.'assets/frontend/images/loading.gif"/></p>';
13
- $html .= "<script>
14
-
15
- jQuery( window ).load(function() {
16
-
17
- jQuery('#accordions-tabs-lazy-".$post_id."').fadeOut();
18
- jQuery('#accordions-tabs-".$post_id."').fadeIn();
19
- });
20
-
21
- </script>";
22
- }