Version Description
- Added the 'tracy patch' that will collapse all nested items if the parent is collapsed via highlander grouping.
Download this release
Release Info
Developer | baden03 |
Plugin | Collapse-O-Matic |
Version | 1.3.12 |
Comparing to | |
See all releases |
Code changes from version 1.3.11 to 1.3.12
- collapse-o-matic.php +5 -5
- collapse.js +63 -2
- readme.txt +7 -1
collapse-o-matic.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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.
|
7 |
Author: Twinpictures
|
8 |
Author URI: http://www.twinpictures.de
|
9 |
License: GPL2
|
@@ -29,13 +29,13 @@ wp_enqueue_script('jquery');
|
|
29 |
|
30 |
$plugin_url = trailingslashit( get_bloginfo('wpurl') ).PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) );
|
31 |
if (!is_admin()){
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
|
36 |
//css
|
37 |
wp_register_style( 'collapseomatic-css', $plugin_url.'/style.css', array (), '1.4' );
|
38 |
-
|
39 |
}
|
40 |
|
41 |
|
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
|
29 |
|
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
|
37 |
wp_register_style( 'collapseomatic-css', $plugin_url.'/style.css', array (), '1.4' );
|
38 |
+
wp_enqueue_style( 'collapseomatic-css' );
|
39 |
}
|
40 |
|
41 |
|
collapse.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
-
* jQuery Collapse-O-Matic v1.2.
|
3 |
* http://www.twinpictures.de/collapse-o-matic/
|
4 |
*
|
5 |
* Copyright 2011, Twinpictures
|
@@ -84,6 +84,36 @@ jQuery(document).ready(function() {
|
|
84 |
jQuery('#target-'+id).slideToggle('fast', function() {
|
85 |
// Animation complete.
|
86 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
}
|
88 |
});
|
89 |
}
|
@@ -91,12 +121,43 @@ jQuery(document).ready(function() {
|
|
91 |
function closeOtherMembers(rel, id){
|
92 |
jQuery('.collapseomatic[rel="' + rel +'"]').each(function(index) {
|
93 |
//add close class if open
|
94 |
-
if(jQuery(this).attr('id') != id && jQuery(this).hasClass('colomat-close') && jQuery(this).attr('rel') !== undefined){
|
|
|
95 |
jQuery(this).removeClass('colomat-close');
|
96 |
var thisid = jQuery(this).attr('id');
|
97 |
jQuery('#target-'+thisid).slideToggle('fast', function() {
|
98 |
// Animation complete.
|
99 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
}
|
101 |
});
|
102 |
}
|
1 |
/*!
|
2 |
+
* jQuery Collapse-O-Matic v1.2.6
|
3 |
* http://www.twinpictures.de/collapse-o-matic/
|
4 |
*
|
5 |
* Copyright 2011, Twinpictures
|
84 |
jQuery('#target-'+id).slideToggle('fast', function() {
|
85 |
// Animation complete.
|
86 |
});
|
87 |
+
|
88 |
+
//check if there are nested children that need to be collapsed
|
89 |
+
var child = jQuery('#target-'+id).children('span.collapseomatic');
|
90 |
+
child.each(function(index) {
|
91 |
+
jQuery(this).removeClass('colomat-close');
|
92 |
+
var thisid = jQuery(this).attr('id');
|
93 |
+
jQuery('#target-'+thisid).slideToggle('fast', function() {
|
94 |
+
// Animation complete.
|
95 |
+
});
|
96 |
+
|
97 |
+
//check if there are nested grand children that need to be collapsed
|
98 |
+
var grandchild = jQuery('#target-'+thisid).children('span.collapseomatic');
|
99 |
+
grandchild.each(function(index) {
|
100 |
+
jQuery(this).removeClass('colomat-close');
|
101 |
+
var thatid = jQuery(this).attr('id');
|
102 |
+
jQuery('#target-'+thatid).slideToggle('fast', function() {
|
103 |
+
// Animation complete.
|
104 |
+
});
|
105 |
+
|
106 |
+
//check if there are nested great grand children that need to be collapsed
|
107 |
+
var greatgrandchild = jQuery('#target-'+thatid).children('span.collapseomatic');
|
108 |
+
greatgrandchild.each(function(index) {
|
109 |
+
jQuery(this).removeClass('colomat-close');
|
110 |
+
var theotherid = jQuery(this).attr('id');
|
111 |
+
jQuery('#target-'+theotherid).slideToggle('fast', function() {
|
112 |
+
// Animation complete.
|
113 |
+
});
|
114 |
+
})
|
115 |
+
})
|
116 |
+
})
|
117 |
}
|
118 |
});
|
119 |
}
|
121 |
function closeOtherMembers(rel, id){
|
122 |
jQuery('.collapseomatic[rel="' + rel +'"]').each(function(index) {
|
123 |
//add close class if open
|
124 |
+
if(jQuery(this).attr('id') != id && jQuery(this).hasClass('colomat-close') && jQuery(this).attr('rel') !== undefined){
|
125 |
+
//collapse the element
|
126 |
jQuery(this).removeClass('colomat-close');
|
127 |
var thisid = jQuery(this).attr('id');
|
128 |
jQuery('#target-'+thisid).slideToggle('fast', function() {
|
129 |
// Animation complete.
|
130 |
});
|
131 |
+
|
132 |
+
//check if there are nested children that need to be collapsed
|
133 |
+
var child = jQuery('#target-'+id).children('span.collapseomatic');
|
134 |
+
child.each(function(index) {
|
135 |
+
jQuery(this).removeClass('colomat-close');
|
136 |
+
var thisid = jQuery(this).attr('id');
|
137 |
+
jQuery('#target-'+thisid).slideToggle('fast', function() {
|
138 |
+
// Animation complete.
|
139 |
+
});
|
140 |
+
|
141 |
+
//check if there are nested grand children that need to be collapsed
|
142 |
+
var grandchild = jQuery('#target-'+thisid).children('span.collapseomatic');
|
143 |
+
grandchild.each(function(index) {
|
144 |
+
jQuery(this).removeClass('colomat-close');
|
145 |
+
var thatid = jQuery(this).attr('id');
|
146 |
+
jQuery('#target-'+thatid).slideToggle('fast', function() {
|
147 |
+
// Animation complete.
|
148 |
+
});
|
149 |
+
|
150 |
+
//check if there are nested great grand children that need to be collapsed
|
151 |
+
var greatgrandchild = jQuery('#target-'+thatid).children('span.collapseomatic');
|
152 |
+
greatgrandchild.each(function(index) {
|
153 |
+
jQuery(this).removeClass('colomat-close');
|
154 |
+
var theotherid = jQuery(this).attr('id');
|
155 |
+
jQuery('#target-'+theotherid).slideToggle('fast', function() {
|
156 |
+
// Animation complete.
|
157 |
+
});
|
158 |
+
})
|
159 |
+
})
|
160 |
+
})
|
161 |
}
|
162 |
});
|
163 |
}
|
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.
|
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.11 =
|
48 |
* Added excerpt feature and all related attributes.
|
49 |
|
@@ -104,6 +107,9 @@ No. Not even close.
|
|
104 |
* The plug-in came to be.
|
105 |
|
106 |
== Upgrade Notice ==
|
|
|
|
|
|
|
107 |
= 1.3.11 =
|
108 |
Added excerpt feature that allows a juicy bit of nibble text to be displayed above and below the trigger text—as well as below the target text.
|
109 |
|
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 |
|
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 |
+
|
50 |
= 1.3.11 =
|
51 |
* Added excerpt feature and all related attributes.
|
52 |
|
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 |
+
|
113 |
= 1.3.11 =
|
114 |
Added excerpt feature that allows a juicy bit of nibble text to be displayed above and below the trigger text—as well as below the target text.
|
115 |
|