Accordion - Version 2.0.2

Version Description

  • 25/01/2016 fix- content sort & WP Editor conflict issue fixed.
Download this release

Release Info

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

Code changes from version 2.0.1 to 2.0.2

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.1
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.1' );
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.2
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.2' );
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' );
assets/admin/css/move.png ADDED
Binary file
assets/admin/css/style.css CHANGED
@@ -63,9 +63,7 @@
63
  background: none repeat scroll 0 0 rgb(255, 134, 87);
64
  }
65
 
66
- #accordions_metabox .accordions-content .tab-new {
67
- background: none repeat scroll 0 0 #a3dbff;
68
- }
69
 
70
 
71
 
@@ -91,10 +89,16 @@
91
 
92
  #accordions_metabox .accordions-content .section-header {
93
  background: #a7e1ff none repeat scroll 0 0;
94
- border-bottom: 1px solid rgb(153, 153, 153);
95
- padding: 5px 10px;
96
  }
97
 
 
 
 
 
 
 
 
98
  #accordions_metabox .accordions-content .accordions-title-preview {
99
  display: inline-block;
100
  }
63
  background: none repeat scroll 0 0 rgb(255, 134, 87);
64
  }
65
 
66
+
 
 
67
 
68
 
69
 
89
 
90
  #accordions_metabox .accordions-content .section-header {
91
  background: #a7e1ff none repeat scroll 0 0;
92
+ padding: 7px 10px 7px 25px;
 
93
  }
94
 
95
+ #accordions_metabox .accordions-content .section-header:hover {
96
+ background: #a7e1ff url("move.png") no-repeat scroll 7px 7px;
97
+ padding: 7px 10px 7px 25px;
98
+ }
99
+
100
+
101
+
102
  #accordions_metabox .accordions-content .accordions-title-preview {
103
  display: inline-block;
104
  }
assets/admin/js/scripts.js CHANGED
@@ -59,9 +59,7 @@ jQuery(document).ready(function($)
59
  var icon_id = prompt("font awesome icon id ?","");
60
  if(icon_id != null && icon_id != '')
61
  {
62
-
63
-
64
- //$(this).append("<i class='fa "+icon_id+"'></i>");
65
  $(this).addClass(icon_id);
66
  $(".accordions_icons_custom_plus input").val(icon_id);
67
  }
@@ -74,9 +72,8 @@ jQuery(document).ready(function($)
74
  var icon_id = prompt("font awesome icon id ?","");
75
  if(icon_id != null && icon_id != '')
76
  {
77
-
78
-
79
- //$(this).css("background-image",'url('+icon_id+')');
80
  $(this).addClass(icon_id);
81
  $(".accordions_icons_custom_minus input").val(icon_id);
82
  }
@@ -91,20 +88,9 @@ jQuery(document).ready(function($)
91
 
92
  var unique_key = $.now();
93
 
94
-
95
-
96
-
97
- $(".accordions-content").append('<tr index="'+unique_key+'" valign="top"><td class="tab-new" style="vertical-align:middle;"><br/><input width="100%" placeholder="accordions Header" type="text" name="accordions_content_title['+unique_key+']" value="" /><br /><br /><textarea placeholder="accordions Content" name="accordions_content_body['+unique_key+']" ></textarea></td></tr>');
98
-
99
-
100
-
101
- setTimeout(function(){
102
-
103
- $(".accordions-content tr:last-child td").removeClass("tab-new");
104
-
105
- }, 300);
106
-
107
 
 
108
 
109
  })
110
 
@@ -113,9 +99,9 @@ jQuery(document).ready(function($)
113
  $(document).on('click', '#accordions_metabox .removeaccordions', function()
114
  {
115
 
116
- if (confirm('Do you really want to delete this accordion ?')) {
117
 
118
- $(this).parent().parent().parent().remove();
119
  }
120
 
121
 
59
  var icon_id = prompt("font awesome icon id ?","");
60
  if(icon_id != null && icon_id != '')
61
  {
62
+
 
 
63
  $(this).addClass(icon_id);
64
  $(".accordions_icons_custom_plus input").val(icon_id);
65
  }
72
  var icon_id = prompt("font awesome icon id ?","");
73
  if(icon_id != null && icon_id != '')
74
  {
75
+
76
+
 
77
  $(this).addClass(icon_id);
78
  $(".accordions_icons_custom_minus input").val(icon_id);
79
  }
88
 
89
  var unique_key = $.now();
90
 
91
+ $("#accordions_metabox .accordions-content").append('<div calss="items" valign="top"><div class="section-header"><div class="accordions-title-preview">Demo Title #'+unique_key+'</div><span class="removeaccordions">X</span><label><input type="checkbox" value="1" name="accordions_hide['+unique_key+']">Hide on Frontend</label></div><div class="section-panel"><input width="100%" placeholder="accordions Header" type="text" name="accordions_content_title['+unique_key+']" value="" /><br /><br /><textarea placeholder="accordions Content" name="accordions_content_body['+unique_key+']" ></textarea></div></div>');
 
 
 
 
 
 
 
 
 
 
 
 
92
 
93
+
94
 
95
  })
96
 
99
  $(document).on('click', '#accordions_metabox .removeaccordions', function()
100
  {
101
 
102
+ if (confirm('Do you really want to delete this section ?')) {
103
 
104
+ $(this).parent().parent().remove();
105
  }
106
 
107
 
includes/meta.php CHANGED
@@ -368,8 +368,9 @@ function meta_boxes_accordions_input( $post ) {
368
  <br />
369
  <br />
370
  </div>
371
- <table width="100%" class="accordions-content" id="accordions-content">
372
 
 
 
373
  <?php
374
  // $total_row = count($accordions_content_title);
375
 
@@ -387,12 +388,10 @@ function meta_boxes_accordions_input( $post ) {
387
  }
388
 
389
  ?>
390
- <tr valign="top">
391
-
392
-
393
 
394
- <td style="vertical-align:middle;">
395
- <div class="section-header">
 
396
  <div class="accordions-title-preview">
397
  <?php if(!empty($accordions_title)) echo $accordions_title; ?>
398
  </div>
@@ -415,9 +414,13 @@ function meta_boxes_accordions_input( $post ) {
415
 
416
  <label class="switch" ><input type="checkbox" name="accordions_hide[<?php echo $accordions_key; ?>]" value="1" <?php echo $checked; ?> /><?php _e('Hide on Frontend','accordions'); ?></label>
417
 
 
418
  </div>
419
  <div class="section-panel">
420
-
 
 
 
421
  <strong><?php _e('Header','accordions'); ?></strong> <br>
422
  <input style="width:80%" placeholder="accordions Header" type="text" name="accordions_content_title[<?php echo $accordions_key; ?>]" value="<?php if(!empty($accordions_title)) echo htmlentities($accordions_title); ?>" /><br><br>
423
 
@@ -432,16 +435,8 @@ function meta_boxes_accordions_input( $post ) {
432
  </div>
433
 
434
 
435
-
436
-
437
-
438
-
439
-
440
-
441
-
442
-
443
- </td>
444
- </tr>
445
  <?php
446
 
447
  $i++;
@@ -449,16 +444,14 @@ function meta_boxes_accordions_input( $post ) {
449
 
450
  ?>
451
 
452
-
453
- </table>
454
-
455
 
456
 
457
  <script>
458
  jQuery(document).ready(function($)
459
  {
460
  $(function() {
461
- $( "#accordions-content tbody" ).sortable();
462
  //$( ".items-container" ).disableSelection();
463
  });
464
 
@@ -468,6 +461,8 @@ $( "#accordions-content tbody" ).sortable();
468
 
469
 
470
 
 
 
471
  </div>
472
  </li>
473
 
368
  <br />
369
  <br />
370
  </div>
 
371
 
372
+ <div class="accordions-content expandable" id="accordions-content">
373
+
374
  <?php
375
  // $total_row = count($accordions_content_title);
376
 
388
  }
389
 
390
  ?>
 
 
 
391
 
392
+ <div class="items">
393
+
394
+ <div title="Click to Expand or you can sort." class="section-header">
395
  <div class="accordions-title-preview">
396
  <?php if(!empty($accordions_title)) echo $accordions_title; ?>
397
  </div>
414
 
415
  <label class="switch" ><input type="checkbox" name="accordions_hide[<?php echo $accordions_key; ?>]" value="1" <?php echo $checked; ?> /><?php _e('Hide on Frontend','accordions'); ?></label>
416
 
417
+
418
  </div>
419
  <div class="section-panel">
420
+
421
+ <strong><?php _e('Header background color for this section','accordions'); ?></strong> <br>
422
+ <input class="accordions_color" type="text" name="accordions_bg_color[<?php echo $accordions_key; ?>]" value="<?php if(!empty($accordions_bg_color[$accordions_key])) echo $accordions_bg_color[$accordions_key]; ?>" /> <br> <br>
423
+
424
  <strong><?php _e('Header','accordions'); ?></strong> <br>
425
  <input style="width:80%" placeholder="accordions Header" type="text" name="accordions_content_title[<?php echo $accordions_key; ?>]" value="<?php if(!empty($accordions_title)) echo htmlentities($accordions_title); ?>" /><br><br>
426
 
435
  </div>
436
 
437
 
438
+
439
+ </div>
 
 
 
 
 
 
 
 
440
  <?php
441
 
442
  $i++;
444
 
445
  ?>
446
 
447
+ </div>
 
 
448
 
449
 
450
  <script>
451
  jQuery(document).ready(function($)
452
  {
453
  $(function() {
454
+ $( "#accordions-content" ).sortable({ handle: '.section-header' });
455
  //$( ".items-container" ).disableSelection();
456
  });
457
 
461
 
462
 
463
 
464
+
465
+
466
  </div>
467
  </li>
468
 
readme.txt CHANGED
@@ -4,7 +4,7 @@
4
  Tags: accordion, accordions, Responsive accordions, accordions plugin, jQuery accordions, accordions short-code, accordions Widget, accordions plugin wordpress, accordions plugin jquery
5
  Requires at least: 3.8
6
  Tested up to: 4.3.1
7
- Stable tag: 2.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -92,8 +92,13 @@ then paste this shortcode anywhere in your page to display accordions<br />
92
 
93
  == Changelog ==
94
 
 
 
 
 
 
95
  = 2.0.1 =
96
- * 25/01/2016 add - minor issue fixed.
97
 
98
  = 2.0.0 =
99
  * 25/01/2016 add - font awesome icons.
4
  Tags: accordion, accordions, Responsive accordions, accordions plugin, jQuery accordions, accordions short-code, accordions Widget, accordions plugin wordpress, accordions plugin jquery
5
  Requires at least: 3.8
6
  Tested up to: 4.3.1
7
+ Stable tag: 2.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
92
 
93
  == Changelog ==
94
 
95
+
96
+
97
+ = 2.0.2 =
98
+ * 25/01/2016 fix- content sort & WP Editor conflict issue fixed.
99
+
100
  = 2.0.1 =
101
+ * 25/01/2016 fix- minor issue fixed.
102
 
103
  = 2.0.0 =
104
  * 25/01/2016 add - font awesome icons.