Collapse-O-Matic - Version 1.3.13

Version Description

  • Added the ability to place a second trigger link inside the expanding content area.
Download this release

Release Info

Developer baden03
Plugin Icon 128x128 Collapse-O-Matic
Version 1.3.13
Comparing to
See all releases

Code changes from version 1.3.12 to 1.3.13

Files changed (3) hide show
  1. collapse-o-matic.php +3 -3
  2. collapse.js +9 -4
  3. readme.txt +7 -1
collapse-o-matic.php CHANGED
@@ -3,13 +3,13 @@
3
  Plugin Name: jQuery Collapse-O-Matic
4
  Plugin URI: http://www.twinpictures.de/jquery-collapse-o-matic-1-3/
5
  Description: Collapse-O-Matic adds an `[expand]` shortcode that wraps content into a lovely, jQuery collapsible div.
6
- Version: 1.3.12
7
  Author: Twinpictures
8
  Author URI: http://www.twinpictures.de
9
  License: GPL2
10
  */
11
 
12
- /* Copyright 2011 Twinpictures (www.twinpictures.de)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License, version 2, as
@@ -30,7 +30,7 @@ wp_enqueue_script('jquery');
30
  $plugin_url = trailingslashit( get_bloginfo('wpurl') ).PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) );
31
  if (!is_admin()){
32
  //collapse script
33
- wp_register_script('collapseomatic-js', $plugin_url.'/collapse.js', array ('jquery'), '1.2.5' );
34
  wp_enqueue_script('collapseomatic-js');
35
 
36
  //css
3
  Plugin Name: jQuery Collapse-O-Matic
4
  Plugin URI: http://www.twinpictures.de/jquery-collapse-o-matic-1-3/
5
  Description: Collapse-O-Matic adds an `[expand]` shortcode that wraps content into a lovely, jQuery collapsible div.
6
+ Version: 1.3.13
7
  Author: Twinpictures
8
  Author URI: http://www.twinpictures.de
9
  License: GPL2
10
  */
11
 
12
+ /* Copyright 2012 Twinpictures (www.twinpictures.de)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License, version 2, as
30
  $plugin_url = trailingslashit( get_bloginfo('wpurl') ).PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) );
31
  if (!is_admin()){
32
  //collapse script
33
+ wp_register_script('collapseomatic-js', $plugin_url.'/collapse.js', array ('jquery'), '1.2.7' );
34
  wp_enqueue_script('collapseomatic-js');
35
 
36
  //css
collapse.js CHANGED
@@ -1,8 +1,8 @@
1
  /*!
2
- * jQuery Collapse-O-Matic v1.2.6
3
  * http://www.twinpictures.de/collapse-o-matic/
4
  *
5
- * Copyright 2011, Twinpictures
6
  *
7
  * Permission is hereby granted, free of charge, to any person obtaining a copy
8
  * of this software and associated documentation files (the "Software"), to deal
@@ -42,9 +42,14 @@ jQuery(document).ready(function() {
42
 
43
  jQuery('.collapseomatic').click(function() {
44
  //alert('phones ringin dude');
45
- jQuery(this).toggleClass('colomat-close');
46
  var id = jQuery(this).attr('id');
47
-
 
 
 
 
 
 
48
  //check if the title needs to be swapped out
49
  if(jQuery("#swap-"+id).length > 0){
50
  var orightml = jQuery(this).html();
1
  /*!
2
+ * jQuery Collapse-O-Matic v1.2.7
3
  * http://www.twinpictures.de/collapse-o-matic/
4
  *
5
+ * Copyright 2012, Twinpictures
6
  *
7
  * Permission is hereby granted, free of charge, to any person obtaining a copy
8
  * of this software and associated documentation files (the "Software"), to deal
42
 
43
  jQuery('.collapseomatic').click(function() {
44
  //alert('phones ringin dude');
 
45
  var id = jQuery(this).attr('id');
46
+ if(id.indexOf('bot-') != '-1'){
47
+ id = id.substr(4);
48
+ jQuery('#'+id).toggleClass('colomat-close');
49
+ }
50
+ else{
51
+ jQuery(this).toggleClass('colomat-close');
52
+ }
53
  //check if the title needs to be swapped out
54
  if(jQuery("#swap-"+id).length > 0){
55
  var orightml = jQuery(this).html();
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://www.twinpictures.de/collapse-o-matic/
5
  Tags: collapse, expand, collapsible, expandable, content, shortcode, hidden, jQuery, javascript, twinpictures
6
  Requires at least: 2.8
7
  Tested up to: 3.3
8
- Stable tag: 1.3.12
9
 
10
  Collapse-O-Matic adds an `[expand]` shortcode that wraps any object or content--including other shortcodes--into a lovely jQuery collapsible div.
11
 
@@ -44,6 +44,9 @@ No. Not even close.
44
 
45
  == Changelog ==
46
 
 
 
 
47
  = 1.3.12 =
48
  * Added the 'tracy patch' that will collapse all nested items if the parent is collapsed via highlander grouping.
49
 
@@ -107,6 +110,9 @@ No. Not even close.
107
  * The plug-in came to be.
108
 
109
  == Upgrade Notice ==
 
 
 
110
  = 1.3.12 =
111
  Now when Highlander Grouping collapses an element, it will automatically collapse nested elements as well.
112
 
5
  Tags: collapse, expand, collapsible, expandable, content, shortcode, hidden, jQuery, javascript, twinpictures
6
  Requires at least: 2.8
7
  Tested up to: 3.3
8
+ Stable tag: 1.3.13
9
 
10
  Collapse-O-Matic adds an `[expand]` shortcode that wraps any object or content--including other shortcodes--into a lovely jQuery collapsible div.
11
 
44
 
45
  == Changelog ==
46
 
47
+ = 1.3.13 =
48
+ * Added the ability to place a second trigger link inside the expanding content area.
49
+
50
  = 1.3.12 =
51
  * Added the 'tracy patch' that will collapse all nested items if the parent is collapsed via highlander grouping.
52
 
110
  * The plug-in came to be.
111
 
112
  == Upgrade Notice ==
113
+ = 1.3.13 =
114
+ Added the ability to place a second trigger link inside the expanding content area.
115
+
116
  = 1.3.12 =
117
  Now when Highlander Grouping collapses an element, it will automatically collapse nested elements as well.
118