Collapse-O-Matic - Version 1.5.2

Version Description

  • find-me now is called only after collapse/expand animations
  • using .on() method once again
  • updated Requires at least tag to 3.3
  • added swapexcerpt
  • fixed typos on the options page
  • added custom css to options page
  • added targtag and targpos attributes
  • added the ability to insert extra external triggers
Download this release

Release Info

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

Code changes from version 1.5.1 to 1.5.2

collapse-o-matic.php CHANGED
@@ -5,7 +5,7 @@ Text Domain: colomat
5
  Domain Path: /languages
6
  Plugin URI: http://plugins.twinpictures.de/plugins/collapse-o-matic/
7
  Description: Collapse-O-Matic adds an [expand] shortcode that wraps content into a lovely, jQuery collapsible div.
8
- Version: 1.5.1
9
  Author: twinpictures, baden03
10
  Author URI: http://twinpictures.de/
11
  License: GPL2
@@ -16,13 +16,14 @@ License: GPL2
16
  * @package WP_Collapse_O_Matic
17
  * @category WordPress Plugins
18
  */
 
19
  class WP_Collapse_O_Matic {
20
 
21
  /**
22
  * Current version
23
  * @var string
24
  */
25
- var $version = '1.5.1';
26
 
27
  /**
28
  * Used as prefix for options entry
@@ -43,7 +44,8 @@ class WP_Collapse_O_Matic {
43
  'style' => 'light',
44
  'tag' => 'span',
45
  'duration' => 'fast',
46
- 'slideEffect' => 'slideFade'
 
47
  );
48
 
49
  /**
@@ -61,11 +63,13 @@ class WP_Collapse_O_Matic {
61
  $this->_set_options();
62
 
63
  // load text domain for translations
64
- load_plugin_textdomain( 'colomat', FALSE, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
65
 
66
  // set uninstall hook
 
67
  if ( function_exists( 'register_deactivation_hook' ) )
68
  register_deactivation_hook( __FILE__, array( $this, 'deactivation' ));
 
69
 
70
  //load the script and style if not viwing the dashboard
71
  if (!is_admin()){
@@ -74,6 +78,7 @@ class WP_Collapse_O_Matic {
74
 
75
  // add actions
76
  add_action( 'admin_menu', array( $this, 'admin_menu' ) );
 
77
  add_action( 'admin_init', array( $this, 'admin_init' ) );
78
  add_action('wp_head', array( $this, 'colomat_js_vars' ) );
79
 
@@ -83,8 +88,9 @@ class WP_Collapse_O_Matic {
83
  for ($i=1; $i<30; $i++) {
84
  add_shortcode('expandsub'.$i, array($this, 'shortcode'));
85
  }
 
86
  // Add shortcode support for widgets
87
- add_filter('widget_text', 'do_shortcode');
88
  }
89
 
90
  //global javascript vars
@@ -93,6 +99,11 @@ class WP_Collapse_O_Matic {
93
  echo "var colomatduration = '".$this->options['duration']."';\n";
94
  echo "var colomatslideEffect = '".$this->options['slideEffect']."';\n";
95
  echo "</script>";
 
 
 
 
 
96
  }
97
 
98
  /**
@@ -103,13 +114,9 @@ class WP_Collapse_O_Matic {
103
  wp_enqueue_script('jquery');
104
 
105
  //collapse script
106
- wp_register_script('collapseomatic-js', plugins_url('js/collapse.min.js', __FILE__), array('jquery'), '1.5.1');
107
- //wp_register_script('collapseomatic-js', plugins_url('js/collapse.js', __FILE__), array('jquery'), '1.5.1');
108
  wp_enqueue_script('collapseomatic-js');
109
-
110
- //livequery
111
- wp_register_script('livequery-script', plugins_url('js/jquery.livequery.min.js', __FILE__), array('jquery'), '1.0');
112
- wp_enqueue_script('livequery-script');
113
 
114
  //css
115
  wp_register_style( 'collapseomatic-css', plugins_url('/'.$this->options['style'].'_style.css', __FILE__) , array (), '1.5.2' );
@@ -149,11 +156,14 @@ class WP_Collapse_O_Matic {
149
  'id' => 'id'.$ran,
150
  'tag' => $options['tag'],
151
  'trigclass' => '',
 
152
  'targclass' => '',
 
153
  'trigpos' => 'above',
154
  'rel' => '',
155
  'expanded' => '',
156
  'excerpt' => '',
 
157
  'excerptpos' => 'below-trigger',
158
  'excerpttag' => 'div',
159
  'excerptclass' => '',
@@ -175,14 +185,33 @@ class WP_Collapse_O_Matic {
175
  $ewo = '<'.$elwraptag.' '.$ewclass.'>';
176
  $ewc = '</'.$elwraptag.'>';
177
  }
 
 
 
 
 
 
 
 
 
 
 
 
178
  if($excerpt){
 
 
 
 
179
  if($excerptpos == 'above-trigger'){
180
- $nibble = '<'.$excerpttag.' class="'.$excerptclass.'">'.$excerpt.'</'.$excerpttag.'>';
181
  }
182
  else{
183
- $nibble = '<'.$excerpttag.' class="collapseomatic_excerpt '.$excerptclass.'">'.$excerpt.'</'.$excerpttag.'>';
 
 
 
 
184
  }
185
-
186
  }
187
  $altatt = '';
188
  if($alt){
@@ -216,11 +245,6 @@ class WP_Collapse_O_Matic {
216
  if($swaptitle){
217
  $link .= "<".$tag." id='swap-".$id."' style='display:none;'>".$startwrap.$swaptitle.$endwrap."</".$tag.">";
218
  }
219
-
220
- $eDiv = '';
221
- if($content){
222
- $eDiv = '<div id="target-'.$id.'" class="collapseomatic_content '.$targclass.'">'.do_shortcode($content).'</div>';
223
- }
224
 
225
  if($excerpt){
226
  if($excerptpos == 'above-trigger'){
@@ -258,11 +282,21 @@ class WP_Collapse_O_Matic {
258
  }
259
  return $retStr;
260
  }
 
 
 
 
 
 
 
261
 
262
  /**
263
  * Admin options page
264
  */
265
  function options_page() {
 
 
 
266
  ?>
267
  <div class="wrap">
268
  <div class="icon32" id="icon-options-custom" style="background:url( <?php echo plugins_url( 'images/collapse-o-matic-icon.png', __FILE__ ) ?> ) no-repeat 50% 50%"><br></div>
@@ -303,7 +337,7 @@ class WP_Collapse_O_Matic {
303
  }
304
  ?>
305
  </select>
306
- <br /><span class="description"><?php _e('Select Light for sites with lighter backgroudns. Select Dark for sites with darker backgrounds.', 'colomat'); ?></span></label>
307
  </td>
308
  </tr>
309
 
@@ -350,9 +384,16 @@ class WP_Collapse_O_Matic {
350
  </td>
351
  </tr>
352
 
 
 
 
 
 
 
 
353
  <tr>
354
  <th><strong><?php _e( 'Level Up!', 'colomat' ) ?></strong></th>
355
- <td><?php _e( '<em>Comming Soon: Collapse-Pro-Matic</em> our preimum plugin that offers additional attributes and the ability to set default attribute settings for all attributes.', 'colomat' ) ?>
356
  </td>
357
  </tr>
358
  </table>
@@ -378,7 +419,7 @@ class WP_Collapse_O_Matic {
378
  <ul>
379
  <li><?php printf( __( '%sDetailed documentation%s, complete with working demonstrations of all shortcode attributes, is available for your instructional enjoyment.', 'colomat'), '<a href="http://plugins.twinpictures.de/plugins/collapse-o-matic/documentation/" target="_blank">', '</a>'); ?></li>
380
  <li><?php printf( __( '%sFree%s & %sPremimum%s Support', 'colomat'), '<a href="http://wordpress.org/support/plugin/jquery-collapse-o-matic" target="_blank">', '</a>', '<a href="http://plugins.twinpictures.de/products-page/support/collapse-o-matic-premium-support/" target="_blank">', '</a>'); ?></li>
381
- <li><?php printf( __('If you like this plugin, please consider %sreviewing it at WordPress.org%s to help others.', 'colomat'), '<a href="http://wordpress.org/support/view/plugin-reviews/jquery-collapse-o-matic" target="_blank">', '</a>' ) ?></li>
382
  <li><a href="http://wordpress.org/extend/plugins/jquery-collapse-o-matic/" target="_blank">WordPress.org</a> | <a href="http://plugins.twinpictures.de/plugins/collapse-o-matic/" target="_blank">Twinpictues Plugin Oven</a></li>
383
  </ul>
384
  </div>
@@ -391,12 +432,13 @@ class WP_Collapse_O_Matic {
391
 
392
  /**
393
  * Deactivation plugin method
394
- */
395
  function deactivation() {
396
  delete_option( $this->options_name );
397
  unregister_setting( $this->domain, $this->options_name );
398
  }
399
-
 
400
  /**
401
  * Set options from save values or defaults
402
  */
5
  Domain Path: /languages
6
  Plugin URI: http://plugins.twinpictures.de/plugins/collapse-o-matic/
7
  Description: Collapse-O-Matic adds an [expand] shortcode that wraps content into a lovely, jQuery collapsible div.
8
+ Version: 1.5.3
9
  Author: twinpictures, baden03
10
  Author URI: http://twinpictures.de/
11
  License: GPL2
16
  * @package WP_Collapse_O_Matic
17
  * @category WordPress Plugins
18
  */
19
+
20
  class WP_Collapse_O_Matic {
21
 
22
  /**
23
  * Current version
24
  * @var string
25
  */
26
+ var $version = '1.5.3';
27
 
28
  /**
29
  * Used as prefix for options entry
44
  'style' => 'light',
45
  'tag' => 'span',
46
  'duration' => 'fast',
47
+ 'slideEffect' => 'slideFade',
48
+ 'custom_css' => ''
49
  );
50
 
51
  /**
63
  $this->_set_options();
64
 
65
  // load text domain for translations
66
+ load_plugin_textdomain( 'colomat', FALSE, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
67
 
68
  // set uninstall hook
69
+ /* removed in version 1.5.2
70
  if ( function_exists( 'register_deactivation_hook' ) )
71
  register_deactivation_hook( __FILE__, array( $this, 'deactivation' ));
72
+ */
73
 
74
  //load the script and style if not viwing the dashboard
75
  if (!is_admin()){
78
 
79
  // add actions
80
  add_action( 'admin_menu', array( $this, 'admin_menu' ) );
81
+ add_action( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this, 'plugin_actions' ) );
82
  add_action( 'admin_init', array( $this, 'admin_init' ) );
83
  add_action('wp_head', array( $this, 'colomat_js_vars' ) );
84
 
88
  for ($i=1; $i<30; $i++) {
89
  add_shortcode('expandsub'.$i, array($this, 'shortcode'));
90
  }
91
+
92
  // Add shortcode support for widgets
93
+ add_filter('widget_text', 'do_shortcode');
94
  }
95
 
96
  //global javascript vars
99
  echo "var colomatduration = '".$this->options['duration']."';\n";
100
  echo "var colomatslideEffect = '".$this->options['slideEffect']."';\n";
101
  echo "</script>";
102
+ if( !empty( $this->options['custom_css'] ) ){
103
+ echo "\n<style>\n";
104
+ echo $this->options['custom_css'];
105
+ echo "\n</style>\n";
106
+ }
107
  }
108
 
109
  /**
114
  wp_enqueue_script('jquery');
115
 
116
  //collapse script
117
+ wp_register_script('collapseomatic-js', plugins_url('js/collapse.min.js', __FILE__), array('jquery'), '1.5.2');
118
+ //wp_register_script('collapseomatic-js', plugins_url('js/collapse.js', __FILE__), array('jquery'), '1.5.2');
119
  wp_enqueue_script('collapseomatic-js');
 
 
 
 
120
 
121
  //css
122
  wp_register_style( 'collapseomatic-css', plugins_url('/'.$this->options['style'].'_style.css', __FILE__) , array (), '1.5.2' );
156
  'id' => 'id'.$ran,
157
  'tag' => $options['tag'],
158
  'trigclass' => '',
159
+ 'targtag' => 'div',
160
  'targclass' => '',
161
+ 'targpos' => '',
162
  'trigpos' => 'above',
163
  'rel' => '',
164
  'expanded' => '',
165
  'excerpt' => '',
166
+ 'swapexcerpt' => false,
167
  'excerptpos' => 'below-trigger',
168
  'excerpttag' => 'div',
169
  'excerptclass' => '',
185
  $ewo = '<'.$elwraptag.' '.$ewclass.'>';
186
  $ewc = '</'.$elwraptag.'>';
187
  }
188
+
189
+ $eDiv = '';
190
+ if($content){
191
+ $inline_class = '';
192
+ $collapse_class = 'collapseomatic_content ';
193
+ if($targpos == 'inline'){
194
+ $inline_class = 'colomat-inline ';
195
+ $collapse_class = 'collapseomatic_content_inline ';
196
+ }
197
+ $eDiv = '<'.$targtag.' id="target-'.$id.'" class="'.$collapse_class.$inline_class.$targclass.'">'.do_shortcode($content).'</'.$targtag.'>';
198
+ }
199
+
200
  if($excerpt){
201
+ if($targpos == 'inline'){
202
+ $excerpt .= $eDiv;
203
+ $eDiv = '';
204
+ }
205
  if($excerptpos == 'above-trigger'){
206
+ $nibble = '<'.$excerpttag.' id="excerpt-'.$id.'" class="'.$excerptclass.'">'.$excerpt.'</'.$excerpttag.'>';
207
  }
208
  else{
209
+ $nibble = '<'.$excerpttag.' id="excerpt-'.$id.'" class="collapseomatic_excerpt '.$excerptclass.'">'.$excerpt.'</'.$excerpttag.'>';
210
+ }
211
+ //swapexcerpt
212
+ if($swapexcerpt !== false){
213
+ $nibble .= '<'.$excerpttag.' id="swapexcerpt-'.$id.'" style="display:none;">'.$swapexcerpt.'</'.$excerpttag.'>';
214
  }
 
215
  }
216
  $altatt = '';
217
  if($alt){
245
  if($swaptitle){
246
  $link .= "<".$tag." id='swap-".$id."' style='display:none;'>".$startwrap.$swaptitle.$endwrap."</".$tag.">";
247
  }
 
 
 
 
 
248
 
249
  if($excerpt){
250
  if($excerptpos == 'above-trigger'){
282
  }
283
  return $retStr;
284
  }
285
+
286
+ // Add link to options page from plugin list
287
+ function plugin_actions($links) {
288
+ $new_links = array();
289
+ $new_links[] = '<a href="options-general.php?page=collapse-o-matic-options">' . __('Settings', 'colomat') . '</a>';
290
+ return array_merge($new_links, $links);
291
+ }
292
 
293
  /**
294
  * Admin options page
295
  */
296
  function options_page() {
297
+ $like_it_arr = array('made you feel all warm and fuzzy on the inside', 'restored your faith in humanity... even if only for a fleating second', 'rocked your world', 'provided a positive vision of future living', 'inspired you to commit a random act of kindness', 'encouraged more regular flossing of the teeth', 'helped organize your life in the small ways that matter', 'saved your minutes--if not tens of minutes--writing your own solution', 'brightened your day... or darkened if if you are trying to sleep in', 'caused you to dance a little jig of joy and joyness', 'inspired you to tweet a little @twinpictues social love', 'tasted great, while also being less filling');
298
+ $rand_key = array_rand($like_it_arr);
299
+ $like_it = $like_it_arr[$rand_key];
300
  ?>
301
  <div class="wrap">
302
  <div class="icon32" id="icon-options-custom" style="background:url( <?php echo plugins_url( 'images/collapse-o-matic-icon.png', __FILE__ ) ?> ) no-repeat 50% 50%"><br></div>
337
  }
338
  ?>
339
  </select>
340
+ <br /><span class="description"><?php _e('Select Light for sites with lighter backgrounds. Select Dark for sites with darker backgrounds.', 'colomat'); ?></span></label>
341
  </td>
342
  </tr>
343
 
384
  </td>
385
  </tr>
386
 
387
+ <tr>
388
+ <th><?php _e( 'Custom Style', 'colomat' ) ?>:</th>
389
+ <td><label><textarea id="<?php echo $this->options_name ?>[custom_css]" name="<?php echo $this->options_name ?>[custom_css]" style="width: 100%; height: 150px;"><?php echo $options['custom_css']; ?></textarea>
390
+ <br /><span class="description"><?php _e( 'Custom CSS style for <em>ultimate flexibility</em>', 'colomat' ) ?></span></label>
391
+ </td>
392
+ </tr>
393
+
394
  <tr>
395
  <th><strong><?php _e( 'Level Up!', 'colomat' ) ?></strong></th>
396
+ <td><?php printf(__( '%sCollapse-Pro-Matic%s is our preimum plugin that offers additional attributes and features for <i>ultimate</i> flexibility.', 'colomat' ), '<a href="http://plugins.twinpictures.de/premium-plugins/collapse-pro-matic/">', '</a>'); ?>
397
  </td>
398
  </tr>
399
  </table>
419
  <ul>
420
  <li><?php printf( __( '%sDetailed documentation%s, complete with working demonstrations of all shortcode attributes, is available for your instructional enjoyment.', 'colomat'), '<a href="http://plugins.twinpictures.de/plugins/collapse-o-matic/documentation/" target="_blank">', '</a>'); ?></li>
421
  <li><?php printf( __( '%sFree%s & %sPremimum%s Support', 'colomat'), '<a href="http://wordpress.org/support/plugin/jquery-collapse-o-matic" target="_blank">', '</a>', '<a href="http://plugins.twinpictures.de/products-page/support/collapse-o-matic-premium-support/" target="_blank">', '</a>'); ?></li>
422
+ <li><?php printf( __('If this plugin %s, please consider %sreviewing it at WordPress.org%s to help others.', 'colomat'), $like_it, '<a href="http://wordpress.org/support/view/plugin-reviews/jquery-collapse-o-matic" target="_blank">', '</a>' ) ?></li>
423
  <li><a href="http://wordpress.org/extend/plugins/jquery-collapse-o-matic/" target="_blank">WordPress.org</a> | <a href="http://plugins.twinpictures.de/plugins/collapse-o-matic/" target="_blank">Twinpictues Plugin Oven</a></li>
424
  </ul>
425
  </div>
432
 
433
  /**
434
  * Deactivation plugin method
435
+ * Removed in version 1.5.2
436
  function deactivation() {
437
  delete_option( $this->options_name );
438
  unregister_setting( $this->domain, $this->options_name );
439
  }
440
+ */
441
+
442
  /**
443
  * Set options from save values or defaults
444
  */
js/collapse.js CHANGED
@@ -1,5 +1,5 @@
1
  /*!
2
- * Collapse-O-Matic v1.5.1
3
  * http://plugins.twinpictures.de/plugins/collapse-o-matic/
4
  *
5
  * Copyright 2013, Twinpictures
@@ -39,16 +39,20 @@ function collapse_init() {
39
  jQuery('.collapseomatic.colomat-close').each(function(index) {
40
  var thisid = jQuery(this).attr('id');
41
  if(jQuery("#swap-"+thisid).length > 0){
42
- swapTitle(this, thisid);
 
 
 
43
  }
44
  });
45
  }
46
 
47
- function swapTitle(obj, id){
48
- var orightml = jQuery(obj).html();
49
- var swaphtml = jQuery("#swap-"+id).html();
50
- jQuery(obj).html(swaphtml);
51
- jQuery("#swap-"+id).html(orightml);
 
52
 
53
  //is cufon involved? if so, do that thing
54
  if(swaphtml.indexOf("<cufon") != -1){
@@ -71,13 +75,21 @@ function closeOtherGroups(rel){
71
 
72
  //check if the title needs to be swapped out
73
  if(jQuery("#swap-"+id).length > 0){
74
- swapTitle(this, id);
 
 
 
 
 
75
  }
76
 
77
  //slideToggle
78
  if(colomatslideEffect == 'slideToggle'){
79
  jQuery('#target-'+id).slideToggle(colomatduration, function() {
80
- // Animation complete.
 
 
 
81
  });
82
  }
83
  //slideFade
@@ -85,7 +97,12 @@ function closeOtherGroups(rel){
85
  jQuery('#target-'+id).animate({
86
  height: "toggle",
87
  opacity: "toggle"
88
- }, colomatduration);
 
 
 
 
 
89
  }
90
 
91
  //check if there are nested children that need to be collapsed
@@ -115,7 +132,12 @@ function closeOtherMembers(rel, id){
115
 
116
  //check if the title needs to be swapped out
117
  if(jQuery("#swap-"+thisid).length > 0){
118
- swapTitle(this, thisid);
 
 
 
 
 
119
  }
120
 
121
  //check for snap-shut
@@ -126,7 +148,10 @@ function closeOtherMembers(rel, id){
126
  //slideToggle
127
  else if(colomatslideEffect == 'slideToggle'){
128
  jQuery('#target-'+thisid).slideToggle(colomatduration, function() {
129
- // Animation complete.
 
 
 
130
  });
131
  }
132
  //slideFade
@@ -134,7 +159,12 @@ function closeOtherMembers(rel, id){
134
  jQuery('#target-'+thisid).animate({
135
  height: "toggle",
136
  opacity: "toggle"
137
- }, colomatduration);
 
 
 
 
 
138
  }
139
 
140
  //check if there are nested children that need to be collapsed
@@ -143,12 +173,41 @@ function closeOtherMembers(rel, id){
143
  if(jQuery(this).hasClass('colomat-expand-only') && jQuery(this).hasClass('colomat-close')){
144
  return;
145
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  if(jQuery(this).attr('id').indexOf('bot-') == '-1'){
147
  jQuery(this).removeClass('colomat-close');
148
  var thisid = jQuery(this).attr('id');
149
  //check if the title needs to be swapped out
150
  if(jQuery("#swap-"+thisid).length > 0){
151
- swapTitle(this, thisid);
 
 
 
 
152
  }
153
  jQuery('#target-'+thisid).css('display', 'none');
154
  }
@@ -167,35 +226,58 @@ jQuery(document).ready(function() {
167
  });
168
 
169
  //hover
170
- jQuery('.collapseomatic').livequery(function(){
171
- jQuery(this).hover(function() {
 
172
  jQuery(this).addClass('colomat-hover');
173
- }, function() {
 
 
174
  jQuery(this).removeClass('colomat-hover');
175
- });
176
- }, function() {
177
- jQuery(this).unbind('mouseover').unbind('mouseout');
178
- });
179
 
180
-
181
- //jQuery('.collapseomatic').on("click", function(event){
182
- //jQuery('.collapseomatic').click(function() {
183
- jQuery('.collapseomatic').livequery('click', function(event) {
184
- var offest_top;
185
 
186
  //alert('phones ringin dude');
187
  if(jQuery(this).hasClass('colomat-expand-only') && jQuery(this).hasClass('colomat-close')){
188
  return;
189
  }
190
  var id = jQuery(this).attr('id');
191
- var offset_top = 0;
192
 
193
  //deal with any scroll to links
194
  if(jQuery(this).hasClass('colomat-close') && jQuery(this).hasClass('scroll-to-trigger')){
195
  offset_top = jQuery('#scrollonclose-'+id).attr('name');
196
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
197
 
198
- if(id.indexOf('bot-') != '-1'){
 
 
 
 
199
  id = id.substr(4);
200
  jQuery('#'+id).toggleClass('colomat-close');
201
 
@@ -212,11 +294,18 @@ jQuery(document).ready(function() {
212
  }
213
  else{
214
  jQuery(this).toggleClass('colomat-close');
 
 
215
  }
216
 
217
  //check if the title needs to be swapped out
218
  if(jQuery("#swap-"+id).length > 0){
219
- swapTitle(jQuery('#'+id), id);
 
 
 
 
 
220
  }
221
 
222
  //add visited class
@@ -233,8 +322,22 @@ jQuery(document).ready(function() {
233
 
234
  //slideToggle
235
  else if(colomatslideEffect == 'slideToggle'){
 
236
  jQuery('#target-'+id).slideToggle(colomatduration, function() {
237
- // Animation complete.
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  });
239
  }
240
  //slideFade
@@ -243,7 +346,23 @@ jQuery(document).ready(function() {
243
  jQuery('#target-'+id).animate({
244
  height: "toggle",
245
  opacity: "toggle"
246
- }, colomatduration);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
247
  }
248
 
249
  //deal with grouped items if needed
@@ -260,9 +379,10 @@ jQuery(document).ready(function() {
260
  if(offset_top){
261
  jQuery('html, body').animate({scrollTop:offset_top}, 500);
262
  }
 
263
  });
264
 
265
- jQuery('.expandall').livequery('click', function(event) {
266
  if(jQuery(this).attr('rel') !== undefined){
267
  var rel = jQuery(this).attr('rel');
268
  jQuery('.collapseomatic[rel="' + rel +'"].collapseomatic:not(.colomat-close)').each(function(index) {
@@ -271,13 +391,20 @@ jQuery(document).ready(function() {
271
  jQuery('#parent-'+thisid).addClass('colomat-parent-highlight');
272
 
273
  if(jQuery("#swap-"+thisid).length > 0){
274
- swapTitle(this, thisid);
 
 
 
 
275
  }
276
 
277
  //slideToggle
278
  if(colomatslideEffect == 'slideToggle'){
279
  jQuery('#target-'+thisid).slideToggle(colomatduration, function() {
280
- // Animation complete.
 
 
 
281
  });
282
  }
283
  //slideFade
@@ -285,7 +412,12 @@ jQuery(document).ready(function() {
285
  jQuery('#target-'+thisid).animate({
286
  height: "toggle",
287
  opacity: "toggle"
288
- }, colomatduration);
 
 
 
 
 
289
  }
290
  });
291
  }
@@ -296,13 +428,20 @@ jQuery(document).ready(function() {
296
  jQuery('#parent-'+thisid).addClass('colomat-parent-highlight');
297
 
298
  if(jQuery("#swap-"+thisid).length > 0){
299
- swapTitle(this, thisid);
 
 
 
 
300
  }
301
 
302
  //slideToggle
303
  if(colomatslideEffect == 'slideToggle'){
304
  jQuery('#target-'+thisid).slideToggle(colomatduration, function() {
305
- // Animation complete.
 
 
 
306
  });
307
  }
308
  //slideFade
@@ -310,13 +449,18 @@ jQuery(document).ready(function() {
310
  jQuery('#target-'+thisid).animate({
311
  height: "toggle",
312
  opacity: "toggle"
313
- }, colomatduration);
 
 
 
 
 
314
  }
315
  });
316
  }
317
  });
318
 
319
- jQuery('.collapseall').livequery('click', function(event) {
320
  if(jQuery(this).attr('rel') !== undefined){
321
  var rel = jQuery(this).attr('rel');
322
  jQuery('.collapseomatic[rel="' + rel +'"].collapseomatic.colomat-close').each(function(index) {
@@ -329,13 +473,20 @@ jQuery(document).ready(function() {
329
  jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight');
330
 
331
  if(jQuery("#swap-"+thisid).length > 0){
332
- swapTitle(this, thisid);
 
 
 
 
333
  }
334
 
335
  //slideToggle
336
  if(colomatslideEffect == 'slideToggle'){
337
  jQuery('#target-'+thisid).slideToggle(colomatduration, function() {
338
- // Animation complete.
 
 
 
339
  });
340
  }
341
  //slideFade
@@ -343,7 +494,12 @@ jQuery(document).ready(function() {
343
  jQuery('#target-'+thisid).animate({
344
  height: "toggle",
345
  opacity: "toggle"
346
- }, colomatduration);
 
 
 
 
 
347
  }
348
  });
349
  }
@@ -357,13 +513,20 @@ jQuery(document).ready(function() {
357
  jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight');
358
 
359
  if(jQuery("#swap-"+thisid).length > 0){
360
- swapTitle(this, thisid);
 
 
 
 
361
  }
362
 
363
  //slideToggle
364
  if(colomatslideEffect == 'slideToggle'){
365
  jQuery('#target-'+thisid).slideToggle(colomatduration, function() {
366
- // Animation complete.
 
 
 
367
  });
368
  }
369
  //slideFade
@@ -371,31 +534,17 @@ jQuery(document).ready(function() {
371
  jQuery('#target-'+thisid).animate({
372
  height: "toggle",
373
  opacity: "toggle"
374
- }, colomatduration);
 
 
 
 
 
375
  }
376
  });
377
  }
378
  });
379
 
380
- //do we have a find me?
381
- //jQuery('.find-me').on("click", function(event){
382
- //jQuery('.find-me').click(function() {
383
- jQuery('.find-me').livequery('click', function(event) {
384
- var myFile = document.location.toString();
385
- if (myFile.match('#')) {
386
- return;
387
- }
388
- //get the top offset of the target anchor
389
- var thisid = jQuery(this).attr('id');
390
- var offset_top = jQuery('#find-'+thisid).attr('name');
391
- if(!offset_top){
392
- target_offset = jQuery(this).offset();
393
- offset_top = target_offset.top;
394
- }
395
- jQuery('html, body').animate({scrollTop:offset_top}, 500);
396
- //console.log(offset_top);
397
- });
398
-
399
  //handle new page loads with anchor
400
  var myFile = document.location.toString();
401
  if (myFile.match('#')) { // the URL contains an anchor
@@ -410,7 +559,7 @@ jQuery(document).ready(function() {
410
  }
411
  jQuery('#' + anchor).click();
412
  //expand any nested parents
413
- jQuery('#' + anchor).parents('.collapseomatic_content').each(function(index) {
414
  parent_arr = jQuery(this).attr('id').split('-');
415
  junk = parent_arr.splice(0, 1);
416
  parent = parent_arr.join('-');
@@ -419,7 +568,7 @@ jQuery(document).ready(function() {
419
  }
420
 
421
  //handle anchor links within the same page
422
- jQuery('a.expandanchor').livequery('click', function(event) {
423
  event.preventDefault();
424
  var fullurl = jQuery(this).attr('href');
425
  if (fullurl.match('#')) { // the URL contains an anchor
@@ -437,7 +586,7 @@ jQuery(document).ready(function() {
437
  }
438
 
439
  //expand any nested parents
440
- jQuery('#' + anchor).parents('.collapseomatic_content').each(function(index) {
441
  parent_arr = jQuery(this).attr('id').split('-');
442
  junk = parent_arr.splice(0, 1);
443
  parent = parent_arr.join('-');
@@ -450,7 +599,7 @@ jQuery(document).ready(function() {
450
  });
451
 
452
  //jQuery('a.colomat-nolink').click(function(event) {
453
- jQuery('a.colomat-nolink').livequery('click', function(event) {
454
  event.preventDefault();
455
  });
456
  });
1
  /*!
2
+ * Collapse-O-Matic v1.5.2
3
  * http://plugins.twinpictures.de/plugins/collapse-o-matic/
4
  *
5
  * Copyright 2013, Twinpictures
39
  jQuery('.collapseomatic.colomat-close').each(function(index) {
40
  var thisid = jQuery(this).attr('id');
41
  if(jQuery("#swap-"+thisid).length > 0){
42
+ swapTitle(this, "#swap-"+thisid );
43
+ }
44
+ if(jQuery("#swapexcerpt-"+thisid).length > 0){
45
+ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid);
46
  }
47
  });
48
  }
49
 
50
+ function swapTitle(origObj, swapObj){
51
+ var orightml = jQuery(origObj).html();
52
+ var swaphtml = jQuery(swapObj).html();
53
+
54
+ jQuery(origObj).html(swaphtml);
55
+ jQuery(swapObj).html(orightml);
56
 
57
  //is cufon involved? if so, do that thing
58
  if(swaphtml.indexOf("<cufon") != -1){
75
 
76
  //check if the title needs to be swapped out
77
  if(jQuery("#swap-"+id).length > 0){
78
+ swapTitle(this, "#swap-"+id);
79
+ }
80
+
81
+ //check if the excerpt needs to be swapped out
82
+ if(jQuery("#swapexcerpt-"+id).length > 0){
83
+ swapTitle("#exerpt-"+id, "#swapexcerpt-"+id);
84
  }
85
 
86
  //slideToggle
87
  if(colomatslideEffect == 'slideToggle'){
88
  jQuery('#target-'+id).slideToggle(colomatduration, function() {
89
+ // Animation complete.
90
+ if( jQuery(this).hasClass('colomat-inline') && jQuery(this).is(':visible') ){
91
+ jQuery(this).css('display', 'inline');
92
+ }
93
  });
94
  }
95
  //slideFade
97
  jQuery('#target-'+id).animate({
98
  height: "toggle",
99
  opacity: "toggle"
100
+ }, colomatduration, function (){
101
+ //Animation complete
102
+ if( jQuery(this).hasClass('colomat-inline') && jQuery(this).is(':visible') ){
103
+ jQuery(this).css('display', 'inline');
104
+ }
105
+ });
106
  }
107
 
108
  //check if there are nested children that need to be collapsed
132
 
133
  //check if the title needs to be swapped out
134
  if(jQuery("#swap-"+thisid).length > 0){
135
+ swapTitle(this, "#swap-"+thisid);
136
+ }
137
+
138
+ //check if the excerpt needs to be swapped out
139
+ if(jQuery("#swapexcerpt-"+thisid).length > 0){
140
+ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid);
141
  }
142
 
143
  //check for snap-shut
148
  //slideToggle
149
  else if(colomatslideEffect == 'slideToggle'){
150
  jQuery('#target-'+thisid).slideToggle(colomatduration, function() {
151
+ // Animation complete.
152
+ if( jQuery(this).hasClass('colomat-inline') && jQuery(this).is(':visible') ){
153
+ jQuery(this).css('display', 'inline');
154
+ }
155
  });
156
  }
157
  //slideFade
159
  jQuery('#target-'+thisid).animate({
160
  height: "toggle",
161
  opacity: "toggle"
162
+ }, colomatduration, function(){
163
+ // Animation complete.
164
+ if( jQuery(this).hasClass('colomat-inline') && jQuery(this).is(':visible') ){
165
+ jQuery(this).css('display', 'inline');
166
+ }
167
+ });
168
  }
169
 
170
  //check if there are nested children that need to be collapsed
173
  if(jQuery(this).hasClass('colomat-expand-only') && jQuery(this).hasClass('colomat-close')){
174
  return;
175
  }
176
+ //deal with extra tirggers
177
+ var pre_id = id.split('-');
178
+ if (pre_id[0].indexOf('extra') != '-1') {
179
+ //console.log('this is an extra trigger');
180
+ pre = pre_id.splice(0, 1);
181
+ id = pre_id.join('-');
182
+
183
+ //deal with any scroll to links from the Extra Collapse Trigger
184
+ if(jQuery(this).hasClass('scroll-to-trigger')){
185
+ var target_offset = jQuery('#'+id).offset();
186
+ offset_top = target_offset.top;
187
+ }
188
+
189
+ //deal with any scroll to links from the Title Trigger
190
+ if(jQuery('#'+id).hasClass('scroll-to-trigger')){
191
+ offset_top = jQuery('#scrollonclose-'+id).attr('name');
192
+ }
193
+
194
+ //toggle master trigger arrow
195
+ jQuery('#'+id).toggleClass('colomat-close');
196
+
197
+ //toggle any other extra trigger arrows
198
+ jQuery('[id^=extra][id$='+id+']').toggleClass('colomat-close');
199
+ }
200
+
201
  if(jQuery(this).attr('id').indexOf('bot-') == '-1'){
202
  jQuery(this).removeClass('colomat-close');
203
  var thisid = jQuery(this).attr('id');
204
  //check if the title needs to be swapped out
205
  if(jQuery("#swap-"+thisid).length > 0){
206
+ swapTitle(this, "#swap-"+thisid);
207
+ }
208
+ //check if the excerpt needs to be swapped out
209
+ if(jQuery("#swapexcerpt-"+thisid).length > 0){
210
+ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid);
211
  }
212
  jQuery('#target-'+thisid).css('display', 'none');
213
  }
226
  });
227
 
228
  //hover
229
+ jQuery(document).on({
230
+ mouseenter: function(){
231
+ //stuff to do on mouseover
232
  jQuery(this).addClass('colomat-hover');
233
+ },
234
+ mouseleave: function(){
235
+ //stuff to do on mouseleave
236
  jQuery(this).removeClass('colomat-hover');
237
+ }
238
+ }, '.collapseomatic'); //pass the element as an argument to .on
 
 
239
 
240
+ //the main collapse/expand function
241
+ jQuery('.collapseomatic').on('click', function(event) {
242
+ var offset_top;
 
 
243
 
244
  //alert('phones ringin dude');
245
  if(jQuery(this).hasClass('colomat-expand-only') && jQuery(this).hasClass('colomat-close')){
246
  return;
247
  }
248
  var id = jQuery(this).attr('id');
 
249
 
250
  //deal with any scroll to links
251
  if(jQuery(this).hasClass('colomat-close') && jQuery(this).hasClass('scroll-to-trigger')){
252
  offset_top = jQuery('#scrollonclose-'+id).attr('name');
253
  }
254
+
255
+ //deal with extra tirggers
256
+ var pre_id = id.split('-');
257
+ if (pre_id[0].indexOf('extra') != '-1') {
258
+ //console.log('this is an extra trigger');
259
+ pre = pre_id.splice(0, 1);
260
+ id = pre_id.join('-');
261
+
262
+ //deal with any scroll to links from the Extra Collapse Trigger
263
+ if(jQuery(this).hasClass('scroll-to-trigger')){
264
+ var target_offset = jQuery('#'+id).offset();
265
+ offset_top = target_offset.top;
266
+ }
267
+
268
+ //deal with any scroll to links from the Title Trigger
269
+ if(jQuery('#'+id).hasClass('scroll-to-trigger')){
270
+ offset_top = jQuery('#scrollonclose-'+id).attr('name');
271
+ }
272
+
273
+ //toggle master trigger arrow
274
+ jQuery('#'+id).toggleClass('colomat-close');
275
 
276
+ //toggle any other extra trigger arrows
277
+ jQuery('[id^=extra][id$='+id+']').toggleClass('colomat-close');
278
+ }
279
+
280
+ else if(id.indexOf('bot-') != '-1'){
281
  id = id.substr(4);
282
  jQuery('#'+id).toggleClass('colomat-close');
283
 
294
  }
295
  else{
296
  jQuery(this).toggleClass('colomat-close');
297
+ //toggle any extra triggers
298
+ jQuery('[id^=extra][id$='+id+']').toggleClass('colomat-close');
299
  }
300
 
301
  //check if the title needs to be swapped out
302
  if(jQuery("#swap-"+id).length > 0){
303
+ swapTitle(jQuery('#'+id), "#swap-"+id);
304
+ }
305
+
306
+ //check if the excerpt needs to be swapped out
307
+ if(jQuery("#swapexcerpt-"+id).length > 0){
308
+ swapTitle("#excerpt-"+id, "#swapexcerpt-"+id);
309
  }
310
 
311
  //add visited class
322
 
323
  //slideToggle
324
  else if(colomatslideEffect == 'slideToggle'){
325
+ jQuery('#target-'+id).removeClass('maptastic');
326
  jQuery('#target-'+id).slideToggle(colomatduration, function() {
327
+ // Animation complete.
328
+ if( jQuery(this).hasClass('colomat-inline') && jQuery(this).is(':visible') ){
329
+ jQuery(this).css('display', 'inline');
330
+ }
331
+
332
+ trig_id = jQuery(this).attr('id').substring(7);
333
+ if(jQuery('#'+trig_id).hasClass('find-me').hasClass('colomat-close')){
334
+ offset_top = jQuery('#find-'+trig_id).attr('name');
335
+ if(!offset_top){
336
+ target_offset = jQuery('#'+trig_id).offset();
337
+ offset_top = target_offset.top;
338
+ }
339
+ jQuery('html, body').animate({scrollTop:offset_top}, 500);
340
+ }
341
  });
342
  }
343
  //slideFade
346
  jQuery('#target-'+id).animate({
347
  height: "toggle",
348
  opacity: "toggle"
349
+ }, colomatduration, function() {
350
+ // Animation complete.
351
+ if( jQuery(this).hasClass('colomat-inline') && jQuery(this).is(':visible') ){
352
+ jQuery(this).css('display', 'inline');
353
+ }
354
+
355
+ //deal with any findme links
356
+ trig_id = jQuery(this).attr('id').substring(7);
357
+ if( jQuery('#'+trig_id).hasClass('find-me') && jQuery('#'+trig_id).hasClass('colomat-close') ){
358
+ offset_top = jQuery('#find-'+trig_id).attr('name');
359
+ if(!offset_top){
360
+ target_offset = jQuery('#'+trig_id).offset();
361
+ offset_top = target_offset.top;
362
+ }
363
+ jQuery('html, body').animate({scrollTop:offset_top}, 500);
364
+ }
365
+ });
366
  }
367
 
368
  //deal with grouped items if needed
379
  if(offset_top){
380
  jQuery('html, body').animate({scrollTop:offset_top}, 500);
381
  }
382
+
383
  });
384
 
385
+ jQuery('.expandall').on('click', function(event) {
386
  if(jQuery(this).attr('rel') !== undefined){
387
  var rel = jQuery(this).attr('rel');
388
  jQuery('.collapseomatic[rel="' + rel +'"].collapseomatic:not(.colomat-close)').each(function(index) {
391
  jQuery('#parent-'+thisid).addClass('colomat-parent-highlight');
392
 
393
  if(jQuery("#swap-"+thisid).length > 0){
394
+ swapTitle(this, "#swap-"+thisid);
395
+ }
396
+
397
+ if(jQuery("#swapexcerpt-"+thisid).length > 0){
398
+ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid);
399
  }
400
 
401
  //slideToggle
402
  if(colomatslideEffect == 'slideToggle'){
403
  jQuery('#target-'+thisid).slideToggle(colomatduration, function() {
404
+ // Animation complete.
405
+ if( jQuery(this).hasClass('colomat-inline') && jQuery(this).is(':visible') ){
406
+ jQuery(this).css('display', 'inline');
407
+ }
408
  });
409
  }
410
  //slideFade
412
  jQuery('#target-'+thisid).animate({
413
  height: "toggle",
414
  opacity: "toggle"
415
+ }, colomatduration, function(){
416
+ //Animation complete
417
+ if( jQuery(this).hasClass('colomat-inline') && jQuery(this).is(':visible') ){
418
+ jQuery(this).css('display', 'inline');
419
+ }
420
+ });
421
  }
422
  });
423
  }
428
  jQuery('#parent-'+thisid).addClass('colomat-parent-highlight');
429
 
430
  if(jQuery("#swap-"+thisid).length > 0){
431
+ swapTitle(this, "#swap-"+thisid);
432
+ }
433
+
434
+ if(jQuery("#swapexcerpt-"+thisid).length > 0){
435
+ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid);
436
  }
437
 
438
  //slideToggle
439
  if(colomatslideEffect == 'slideToggle'){
440
  jQuery('#target-'+thisid).slideToggle(colomatduration, function() {
441
+ // Animation complete.
442
+ if( jQuery(this).hasClass('colomat-inline') && jQuery(this).is(':visible') ){
443
+ jQuery(this).css('display', 'inline');
444
+ }
445
  });
446
  }
447
  //slideFade
449
  jQuery('#target-'+thisid).animate({
450
  height: "toggle",
451
  opacity: "toggle"
452
+ }, colomatduration, function(){
453
+ //animation complete
454
+ if( jQuery(this).hasClass('colomat-inline') && jQuery(this).is(':visible') ){
455
+ jQuery(this).css('display', 'inline');
456
+ }
457
+ });
458
  }
459
  });
460
  }
461
  });
462
 
463
+ jQuery('.collapseall').on('click', function(event) {
464
  if(jQuery(this).attr('rel') !== undefined){
465
  var rel = jQuery(this).attr('rel');
466
  jQuery('.collapseomatic[rel="' + rel +'"].collapseomatic.colomat-close').each(function(index) {
473
  jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight');
474
 
475
  if(jQuery("#swap-"+thisid).length > 0){
476
+ swapTitle(this, "#swap-"+thisid);
477
+ }
478
+
479
+ if(jQuery("#swapexcerpt-"+thisid).length > 0){
480
+ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid);
481
  }
482
 
483
  //slideToggle
484
  if(colomatslideEffect == 'slideToggle'){
485
  jQuery('#target-'+thisid).slideToggle(colomatduration, function() {
486
+ // Animation complete
487
+ if( jQuery(this).hasClass('colomat-inline') && jQuery(this).is(':visible') ){
488
+ jQuery(this).css('display', 'inline');
489
+ }
490
  });
491
  }
492
  //slideFade
494
  jQuery('#target-'+thisid).animate({
495
  height: "toggle",
496
  opacity: "toggle"
497
+ }, colomatduration, function(){
498
+ // Animation complete
499
+ if( jQuery(this).hasClass('colomat-inline') && jQuery(this).is(':visible') ){
500
+ jQuery(this).css('display', 'inline');
501
+ }
502
+ });
503
  }
504
  });
505
  }
513
  jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight');
514
 
515
  if(jQuery("#swap-"+thisid).length > 0){
516
+ swapTitle(this, "#swap-"+thisid);
517
+ }
518
+
519
+ if(jQuery("#swapexcerpt-"+thisid).length > 0){
520
+ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid);
521
  }
522
 
523
  //slideToggle
524
  if(colomatslideEffect == 'slideToggle'){
525
  jQuery('#target-'+thisid).slideToggle(colomatduration, function() {
526
+ // Animation complete.
527
+ if( jQuery(this).hasClass('colomat-inline') && jQuery(this).is(':visible') ){
528
+ jQuery(this).css('display', 'inline');
529
+ }
530
  });
531
  }
532
  //slideFade
534
  jQuery('#target-'+thisid).animate({
535
  height: "toggle",
536
  opacity: "toggle"
537
+ }, colomatduration, function(){
538
+ // Animation complete
539
+ if( jQuery(this).hasClass('colomat-inline') && jQuery(this).is(':visible') ){
540
+ jQuery(this).css('display', 'inline');
541
+ }
542
+ });
543
  }
544
  });
545
  }
546
  });
547
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
548
  //handle new page loads with anchor
549
  var myFile = document.location.toString();
550
  if (myFile.match('#')) { // the URL contains an anchor
559
  }
560
  jQuery('#' + anchor).click();
561
  //expand any nested parents
562
+ jQuery('#' + anchor).parents('.collapseomatic_content, .collapseomatic_content_inline').each(function(index) {
563
  parent_arr = jQuery(this).attr('id').split('-');
564
  junk = parent_arr.splice(0, 1);
565
  parent = parent_arr.join('-');
568
  }
569
 
570
  //handle anchor links within the same page
571
+ jQuery('a.expandanchor').on('click', function(event) {
572
  event.preventDefault();
573
  var fullurl = jQuery(this).attr('href');
574
  if (fullurl.match('#')) { // the URL contains an anchor
586
  }
587
 
588
  //expand any nested parents
589
+ jQuery('#' + anchor).parents('.collapseomatic_content, .collapseomatic_content_inline').each(function(index) {
590
  parent_arr = jQuery(this).attr('id').split('-');
591
  junk = parent_arr.splice(0, 1);
592
  parent = parent_arr.join('-');
599
  });
600
 
601
  //jQuery('a.colomat-nolink').click(function(event) {
602
+ jQuery('a.colomat-nolink').on('click', function(event) {
603
  event.preventDefault();
604
  });
605
  });
js/collapse.min.js CHANGED
@@ -1 +1 @@
1
- function collapse_init(){jQuery('.force_content_collapse').each(function(index){jQuery(this).css('display','none')});jQuery('.collapseomatic:not(.colomat-close)').each(function(index){var thisid=jQuery(this).attr('id');jQuery('#target-'+thisid).css('display','none')});jQuery('.collapseomatic.colomat-close').each(function(index){var thisid=jQuery(this).attr('id');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,thisid)}})}function swapTitle(obj,id){var orightml=jQuery(obj).html();var swaphtml=jQuery("#swap-"+id).html();jQuery(obj).html(swaphtml);jQuery("#swap-"+id).html(orightml);if(swaphtml.indexOf("<cufon")!=-1){var trigelem=jQuery(this).get(0).tagName;Cufon.replace(trigelem)}}function closeOtherGroups(rel){jQuery('.collapseomatic[rel!="'+rel+'"]').each(function(index){if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}if(jQuery(this).hasClass('colomat-close')&&jQuery(this).attr('rel')!==undefined){jQuery(this).removeClass('colomat-close');var id=jQuery(this).attr('id');jQuery('#parent-'+id).removeClass('colomat-parent-highlight');if(jQuery("#swap-"+id).length>0){swapTitle(this,id)}if(colomatslideEffect=='slideToggle'){jQuery('#target-'+id).slideToggle(colomatduration,function(){})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+id).animate({height:"toggle",opacity:"toggle"},colomatduration)}var ancestors=jQuery('.collapseomatic','#target-'+id);ancestors.each(function(index){jQuery(this).removeClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#target-'+thisid).css('display','none')})}})}function closeOtherMembers(rel,id){jQuery('.collapseomatic[rel="'+rel+'"]').each(function(index){if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}if(jQuery(this).attr('id')!=id&&jQuery(this).hasClass('colomat-close')&&jQuery(this).attr('rel')!==undefined){jQuery(this).removeClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,thisid)}if(!jQuery(this).hasClass('colomat-close')&&jQuery(this).hasClass('snap-shut')){jQuery('#target-'+thisid).hide()}else if(colomatslideEffect=='slideToggle'){jQuery('#target-'+thisid).slideToggle(colomatduration,function(){})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+thisid).animate({height:"toggle",opacity:"toggle"},colomatduration)}var ancestors=jQuery('.collapseomatic','#target-'+id);ancestors.each(function(index){if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}if(jQuery(this).attr('id').indexOf('bot-')=='-1'){jQuery(this).removeClass('colomat-close');var thisid=jQuery(this).attr('id');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,thisid)}jQuery('#target-'+thisid).css('display','none')}})}})}jQuery(document).ready(function(){collapse_init();jQuery('.content_collapse_wrapper').each(function(index){jQuery(this).css('display','inline')});jQuery('.collapseomatic').livequery(function(){jQuery(this).hover(function(){jQuery(this).addClass('colomat-hover')},function(){jQuery(this).removeClass('colomat-hover')})},function(){jQuery(this).unbind('mouseover').unbind('mouseout')});jQuery('.collapseomatic').livequery('click',function(event){var offest_top;if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}var id=jQuery(this).attr('id');var offset_top=0;if(jQuery(this).hasClass('colomat-close')&&jQuery(this).hasClass('scroll-to-trigger')){offset_top=jQuery('#scrollonclose-'+id).attr('name')}if(id.indexOf('bot-')!='-1'){id=id.substr(4);jQuery('#'+id).toggleClass('colomat-close');if(jQuery(this).hasClass('scroll-to-trigger')){var target_offset=jQuery('#'+id).offset();offset_top=target_offset.top}if(jQuery('#'+id).hasClass('scroll-to-trigger')){offset_top=jQuery('#scrollonclose-'+id).attr('name')}}else{jQuery(this).toggleClass('colomat-close')}if(jQuery("#swap-"+id).length>0){swapTitle(jQuery('#'+id),id)}jQuery(this).addClass('colomat-visited');var parentID='parent-'+id;jQuery('#'+parentID).toggleClass('colomat-parent-highlight');if(!jQuery(this).hasClass('colomat-close')&&jQuery(this).hasClass('snap-shut')){jQuery('#target-'+id).hide()}else if(colomatslideEffect=='slideToggle'){jQuery('#target-'+id).slideToggle(colomatduration,function(){})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+id).removeClass('maptastic');jQuery('#target-'+id).animate({height:"toggle",opacity:"toggle"},colomatduration)}if(jQuery(this).attr('rel')!==undefined){var rel=jQuery(this).attr('rel');if(rel.indexOf('-highlander')!='-1'){closeOtherMembers(rel,id)}else{closeOtherGroups(rel)}}if(offset_top){jQuery('html, body').animate({scrollTop:offset_top},500)}});jQuery('.expandall').livequery('click',function(event){if(jQuery(this).attr('rel')!==undefined){var rel=jQuery(this).attr('rel');jQuery('.collapseomatic[rel="'+rel+'"].collapseomatic:not(.colomat-close)').each(function(index){jQuery(this).addClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#parent-'+thisid).addClass('colomat-parent-highlight');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,thisid)}if(colomatslideEffect=='slideToggle'){jQuery('#target-'+thisid).slideToggle(colomatduration,function(){})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+thisid).animate({height:"toggle",opacity:"toggle"},colomatduration)}})}else{jQuery('.collapseomatic:not(.colomat-close)').each(function(index){jQuery(this).addClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#parent-'+thisid).addClass('colomat-parent-highlight');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,thisid)}if(colomatslideEffect=='slideToggle'){jQuery('#target-'+thisid).slideToggle(colomatduration,function(){})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+thisid).animate({height:"toggle",opacity:"toggle"},colomatduration)}})}});jQuery('.collapseall').livequery('click',function(event){if(jQuery(this).attr('rel')!==undefined){var rel=jQuery(this).attr('rel');jQuery('.collapseomatic[rel="'+rel+'"].collapseomatic.colomat-close').each(function(index){if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}jQuery(this).removeClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,thisid)}if(colomatslideEffect=='slideToggle'){jQuery('#target-'+thisid).slideToggle(colomatduration,function(){})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+thisid).animate({height:"toggle",opacity:"toggle"},colomatduration)}})}else{jQuery('.collapseomatic.colomat-close').each(function(index){if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}jQuery(this).removeClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,thisid)}if(colomatslideEffect=='slideToggle'){jQuery('#target-'+thisid).slideToggle(colomatduration,function(){})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+thisid).animate({height:"toggle",opacity:"toggle"},colomatduration)}})}});jQuery('.find-me').livequery('click',function(event){var myFile=document.location.toString();if(myFile.match('#')){return}var thisid=jQuery(this).attr('id');var offset_top=jQuery('#find-'+thisid).attr('name');if(!offset_top){target_offset=jQuery(this).offset();offset_top=target_offset.top}jQuery('html, body').animate({scrollTop:offset_top},500)});var myFile=document.location.toString();if(myFile.match('#')){var anchor_arr=myFile.split('#');if(anchor_arr.length>1){junk=anchor_arr.splice(0,1);anchor=anchor_arr.join('#')}else{anchor=anchor_arr[0]}jQuery('#'+anchor).click();jQuery('#'+anchor).parents('.collapseomatic_content').each(function(index){parent_arr=jQuery(this).attr('id').split('-');junk=parent_arr.splice(0,1);parent=parent_arr.join('-');jQuery('#'+parent).click()})}jQuery('a.expandanchor').livequery('click',function(event){event.preventDefault();var fullurl=jQuery(this).attr('href');if(fullurl.match('#')){var anchor_arr=fullurl.split('#');if(anchor_arr.length>1){junk=anchor_arr.splice(0,1);anchor=anchor_arr.join('#')}else{anchor=anchor_arr[0]}if(!jQuery('#'+anchor).hasClass('colomat-close')){jQuery('#'+anchor).click()}jQuery('#'+anchor).parents('.collapseomatic_content').each(function(index){parent_arr=jQuery(this).attr('id').split('-');junk=parent_arr.splice(0,1);parent=parent_arr.join('-');if(!jQuery('#'+parent).hasClass('colomat-close')){jQuery('#'+parent).click()}})}});jQuery('a.colomat-nolink').livequery('click',function(event){event.preventDefault()})});
1
+ function collapse_init(){jQuery('.force_content_collapse').each(function(index){jQuery(this).css('display','none')});jQuery('.collapseomatic:not(.colomat-close)').each(function(index){var thisid=jQuery(this).attr('id');jQuery('#target-'+thisid).css('display','none')});jQuery('.collapseomatic.colomat-close').each(function(index){var thisid=jQuery(this).attr('id');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,"#swap-"+thisid)}if(jQuery("#swapexcerpt-"+thisid).length>0){swapTitle("#excerpt-"+thisid,"#swapexcerpt-"+thisid)}})}function swapTitle(origObj,swapObj){var orightml=jQuery(origObj).html();var swaphtml=jQuery(swapObj).html();jQuery(origObj).html(swaphtml);jQuery(swapObj).html(orightml);if(swaphtml.indexOf("<cufon")!=-1){var trigelem=jQuery(this).get(0).tagName;Cufon.replace(trigelem)}}function closeOtherGroups(rel){jQuery('.collapseomatic[rel!="'+rel+'"]').each(function(index){if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}if(jQuery(this).hasClass('colomat-close')&&jQuery(this).attr('rel')!==undefined){jQuery(this).removeClass('colomat-close');var id=jQuery(this).attr('id');jQuery('#parent-'+id).removeClass('colomat-parent-highlight');if(jQuery("#swap-"+id).length>0){swapTitle(this,"#swap-"+id)}if(jQuery("#swapexcerpt-"+id).length>0){swapTitle("#exerpt-"+id,"#swapexcerpt-"+id)}if(colomatslideEffect=='slideToggle'){jQuery('#target-'+id).slideToggle(colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+id).animate({height:"toggle",opacity:"toggle"},colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}var ancestors=jQuery('.collapseomatic','#target-'+id);ancestors.each(function(index){jQuery(this).removeClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#target-'+thisid).css('display','none')})}})}function closeOtherMembers(rel,id){jQuery('.collapseomatic[rel="'+rel+'"]').each(function(index){if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}if(jQuery(this).attr('id')!=id&&jQuery(this).hasClass('colomat-close')&&jQuery(this).attr('rel')!==undefined){jQuery(this).removeClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,"#swap-"+thisid)}if(jQuery("#swapexcerpt-"+thisid).length>0){swapTitle("#excerpt-"+thisid,"#swapexcerpt-"+thisid)}if(!jQuery(this).hasClass('colomat-close')&&jQuery(this).hasClass('snap-shut')){jQuery('#target-'+thisid).hide()}else if(colomatslideEffect=='slideToggle'){jQuery('#target-'+thisid).slideToggle(colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+thisid).animate({height:"toggle",opacity:"toggle"},colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}var ancestors=jQuery('.collapseomatic','#target-'+id);ancestors.each(function(index){if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}var pre_id=id.split('-');if(pre_id[0].indexOf('extra')!='-1'){pre=pre_id.splice(0,1);id=pre_id.join('-');if(jQuery(this).hasClass('scroll-to-trigger')){var target_offset=jQuery('#'+id).offset();offset_top=target_offset.top}if(jQuery('#'+id).hasClass('scroll-to-trigger')){offset_top=jQuery('#scrollonclose-'+id).attr('name')}jQuery('#'+id).toggleClass('colomat-close');jQuery('[id^=extra][id$='+id+']').toggleClass('colomat-close')}if(jQuery(this).attr('id').indexOf('bot-')=='-1'){jQuery(this).removeClass('colomat-close');var thisid=jQuery(this).attr('id');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,"#swap-"+thisid)}if(jQuery("#swapexcerpt-"+thisid).length>0){swapTitle("#excerpt-"+thisid,"#swapexcerpt-"+thisid)}jQuery('#target-'+thisid).css('display','none')}})}})}jQuery(document).ready(function(){collapse_init();jQuery('.content_collapse_wrapper').each(function(index){jQuery(this).css('display','inline')});jQuery(document).on({mouseenter:function(){jQuery(this).addClass('colomat-hover')},mouseleave:function(){jQuery(this).removeClass('colomat-hover')}},'.collapseomatic');jQuery('.collapseomatic').on('click',function(event){var offset_top;if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}var id=jQuery(this).attr('id');if(jQuery(this).hasClass('colomat-close')&&jQuery(this).hasClass('scroll-to-trigger')){offset_top=jQuery('#scrollonclose-'+id).attr('name')}var pre_id=id.split('-');if(pre_id[0].indexOf('extra')!='-1'){pre=pre_id.splice(0,1);id=pre_id.join('-');if(jQuery(this).hasClass('scroll-to-trigger')){var target_offset=jQuery('#'+id).offset();offset_top=target_offset.top}if(jQuery('#'+id).hasClass('scroll-to-trigger')){offset_top=jQuery('#scrollonclose-'+id).attr('name')}jQuery('#'+id).toggleClass('colomat-close');jQuery('[id^=extra][id$='+id+']').toggleClass('colomat-close')}else if(id.indexOf('bot-')!='-1'){id=id.substr(4);jQuery('#'+id).toggleClass('colomat-close');if(jQuery(this).hasClass('scroll-to-trigger')){var target_offset=jQuery('#'+id).offset();offset_top=target_offset.top}if(jQuery('#'+id).hasClass('scroll-to-trigger')){offset_top=jQuery('#scrollonclose-'+id).attr('name')}}else{jQuery(this).toggleClass('colomat-close');jQuery('[id^=extra][id$='+id+']').toggleClass('colomat-close')}if(jQuery("#swap-"+id).length>0){swapTitle(jQuery('#'+id),"#swap-"+id)}if(jQuery("#swapexcerpt-"+id).length>0){swapTitle("#excerpt-"+id,"#swapexcerpt-"+id)}jQuery(this).addClass('colomat-visited');var parentID='parent-'+id;jQuery('#'+parentID).toggleClass('colomat-parent-highlight');if(!jQuery(this).hasClass('colomat-close')&&jQuery(this).hasClass('snap-shut')){jQuery('#target-'+id).hide()}else if(colomatslideEffect=='slideToggle'){jQuery('#target-'+id).removeClass('maptastic');jQuery('#target-'+id).slideToggle(colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}trig_id=jQuery(this).attr('id').substring(7);if(jQuery('#'+trig_id).hasClass('find-me').hasClass('colomat-close')){offset_top=jQuery('#find-'+trig_id).attr('name');if(!offset_top){target_offset=jQuery('#'+trig_id).offset();offset_top=target_offset.top}jQuery('html, body').animate({scrollTop:offset_top},500)}})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+id).removeClass('maptastic');jQuery('#target-'+id).animate({height:"toggle",opacity:"toggle"},colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}trig_id=jQuery(this).attr('id').substring(7);if(jQuery('#'+trig_id).hasClass('find-me')&&jQuery('#'+trig_id).hasClass('colomat-close')){offset_top=jQuery('#find-'+trig_id).attr('name');if(!offset_top){target_offset=jQuery('#'+trig_id).offset();offset_top=target_offset.top}jQuery('html, body').animate({scrollTop:offset_top},500)}})}if(jQuery(this).attr('rel')!==undefined){var rel=jQuery(this).attr('rel');if(rel.indexOf('-highlander')!='-1'){closeOtherMembers(rel,id)}else{closeOtherGroups(rel)}}if(offset_top){jQuery('html, body').animate({scrollTop:offset_top},500)}});jQuery('.expandall').on('click',function(event){if(jQuery(this).attr('rel')!==undefined){var rel=jQuery(this).attr('rel');jQuery('.collapseomatic[rel="'+rel+'"].collapseomatic:not(.colomat-close)').each(function(index){jQuery(this).addClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#parent-'+thisid).addClass('colomat-parent-highlight');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,"#swap-"+thisid)}if(jQuery("#swapexcerpt-"+thisid).length>0){swapTitle("#excerpt-"+thisid,"#swapexcerpt-"+thisid)}if(colomatslideEffect=='slideToggle'){jQuery('#target-'+thisid).slideToggle(colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+thisid).animate({height:"toggle",opacity:"toggle"},colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}})}else{jQuery('.collapseomatic:not(.colomat-close)').each(function(index){jQuery(this).addClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#parent-'+thisid).addClass('colomat-parent-highlight');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,"#swap-"+thisid)}if(jQuery("#swapexcerpt-"+thisid).length>0){swapTitle("#excerpt-"+thisid,"#swapexcerpt-"+thisid)}if(colomatslideEffect=='slideToggle'){jQuery('#target-'+thisid).slideToggle(colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+thisid).animate({height:"toggle",opacity:"toggle"},colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}})}});jQuery('.collapseall').on('click',function(event){if(jQuery(this).attr('rel')!==undefined){var rel=jQuery(this).attr('rel');jQuery('.collapseomatic[rel="'+rel+'"].collapseomatic.colomat-close').each(function(index){if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}jQuery(this).removeClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,"#swap-"+thisid)}if(jQuery("#swapexcerpt-"+thisid).length>0){swapTitle("#excerpt-"+thisid,"#swapexcerpt-"+thisid)}if(colomatslideEffect=='slideToggle'){jQuery('#target-'+thisid).slideToggle(colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+thisid).animate({height:"toggle",opacity:"toggle"},colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}})}else{jQuery('.collapseomatic.colomat-close').each(function(index){if(jQuery(this).hasClass('colomat-expand-only')&&jQuery(this).hasClass('colomat-close')){return}jQuery(this).removeClass('colomat-close');var thisid=jQuery(this).attr('id');jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight');if(jQuery("#swap-"+thisid).length>0){swapTitle(this,"#swap-"+thisid)}if(jQuery("#swapexcerpt-"+thisid).length>0){swapTitle("#excerpt-"+thisid,"#swapexcerpt-"+thisid)}if(colomatslideEffect=='slideToggle'){jQuery('#target-'+thisid).slideToggle(colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}else if(colomatslideEffect=='slideFade'){jQuery('#target-'+thisid).animate({height:"toggle",opacity:"toggle"},colomatduration,function(){if(jQuery(this).hasClass('colomat-inline')&&jQuery(this).is(':visible')){jQuery(this).css('display','inline')}})}})}});var myFile=document.location.toString();if(myFile.match('#')){var anchor_arr=myFile.split('#');if(anchor_arr.length>1){junk=anchor_arr.splice(0,1);anchor=anchor_arr.join('#')}else{anchor=anchor_arr[0]}jQuery('#'+anchor).click();jQuery('#'+anchor).parents('.collapseomatic_content, .collapseomatic_content_inline').each(function(index){parent_arr=jQuery(this).attr('id').split('-');junk=parent_arr.splice(0,1);parent=parent_arr.join('-');jQuery('#'+parent).click()})}jQuery('a.expandanchor').on('click',function(event){event.preventDefault();var fullurl=jQuery(this).attr('href');if(fullurl.match('#')){var anchor_arr=fullurl.split('#');if(anchor_arr.length>1){junk=anchor_arr.splice(0,1);anchor=anchor_arr.join('#')}else{anchor=anchor_arr[0]}if(!jQuery('#'+anchor).hasClass('colomat-close')){jQuery('#'+anchor).click()}jQuery('#'+anchor).parents('.collapseomatic_content, .collapseomatic_content_inline').each(function(index){parent_arr=jQuery(this).attr('id').split('-');junk=parent_arr.splice(0,1);parent=parent_arr.join('-');if(!jQuery('#'+parent).hasClass('colomat-close')){jQuery('#'+parent).click()}})}});jQuery('a.colomat-nolink').on('click',function(event){event.preventDefault()})});
js/jquery.livequery.min.js DELETED
@@ -1,9 +0,0 @@
1
- /* Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
2
- * Dual licensed under the MIT (MIT_LICENSE.txt)
3
- * and GPL Version 2 (GPL_LICENSE.txt) licenses.
4
- *
5
- * Version: 1.1.1
6
- * Requires jQuery 1.3+
7
- * Docs: http://docs.jquery.com/Plugins/livequery
8
- */
9
- (function(a){a.extend(a.fn,{livequery:function(e,d,c){var b=this,f;if(a.isFunction(e)){c=d,d=e,e=undefined}a.each(a.livequery.queries,function(g,h){if(b.selector==h.selector&&b.context==h.context&&e==h.type&&(!d||d.$lqguid==h.fn.$lqguid)&&(!c||c.$lqguid==h.fn2.$lqguid)){return(f=h)&&false}});f=f||new a.livequery(this.selector,this.context,e,d,c);f.stopped=false;f.run();return this},expire:function(e,d,c){var b=this;if(a.isFunction(e)){c=d,d=e,e=undefined}a.each(a.livequery.queries,function(f,g){if(b.selector==g.selector&&b.context==g.context&&(!e||e==g.type)&&(!d||d.$lqguid==g.fn.$lqguid)&&(!c||c.$lqguid==g.fn2.$lqguid)&&!this.stopped){a.livequery.stop(g.id)}});return this}});a.livequery=function(b,d,f,e,c){this.selector=b;this.context=d;this.type=f;this.fn=e;this.fn2=c;this.elements=[];this.stopped=false;this.id=a.livequery.queries.push(this)-1;e.$lqguid=e.$lqguid||a.livequery.guid++;if(c){c.$lqguid=c.$lqguid||a.livequery.guid++}return this};a.livequery.prototype={stop:function(){var b=this;if(this.type){this.elements.unbind(this.type,this.fn)}else{if(this.fn2){this.elements.each(function(c,d){b.fn2.apply(d)})}}this.elements=[];this.stopped=true},run:function(){if(this.stopped){return}var d=this;var e=this.elements,c=a(this.selector,this.context),b=c.not(e);this.elements=c;if(this.type){b.bind(this.type,this.fn);if(e.length>0){a.each(e,function(f,g){if(a.inArray(g,c)<0){a.event.remove(g,d.type,d.fn)}})}}else{b.each(function(){d.fn.apply(this)});if(this.fn2&&e.length>0){a.each(e,function(f,g){if(a.inArray(g,c)<0){d.fn2.apply(g)}})}}}};a.extend(a.livequery,{guid:0,queries:[],queue:[],running:false,timeout:null,checkQueue:function(){if(a.livequery.running&&a.livequery.queue.length){var b=a.livequery.queue.length;while(b--){a.livequery.queries[a.livequery.queue.shift()].run()}}},pause:function(){a.livequery.running=false},play:function(){a.livequery.running=true;a.livequery.run()},registerPlugin:function(){a.each(arguments,function(c,d){if(!a.fn[d]){return}var b=a.fn[d];a.fn[d]=function(){var e=b.apply(this,arguments);a.livequery.run();return e}})},run:function(b){if(b!=undefined){if(a.inArray(b,a.livequery.queue)<0){a.livequery.queue.push(b)}}else{a.each(a.livequery.queries,function(c){if(a.inArray(c,a.livequery.queue)<0){a.livequery.queue.push(c)}})}if(a.livequery.timeout){clearTimeout(a.livequery.timeout)}a.livequery.timeout=setTimeout(a.livequery.checkQueue,20)},stop:function(b){if(b!=undefined){a.livequery.queries[b].stop()}else{a.each(a.livequery.queries,function(c){a.livequery.queries[c].stop()})}}});a.livequery.registerPlugin("append","prepend","after","before","wrap","attr","removeAttr","addClass","removeClass","toggleClass","empty","remove","html");a(function(){a.livequery.play()})})(jQuery);
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -3,9 +3,9 @@
3
  Contributors: twinpictures, baden03
4
  Donate link: http://plugins.twinpictures.de/plugins/collapse-o-matic/
5
  Tags: collapse, expand, collapsible, expandable, expandable content, collapsable content, shortcode, hidden, hide, display, accordion, accordion, jQuery, javascript, roll-your-own, twinpictures, read me, read more, more
6
- Requires at least: 2.8
7
- Tested up to: 3.5
8
- Stable tag: 1.5.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -50,8 +50,21 @@ No. Not even close.
50
 
51
  == Changelog ==
52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  = 1.5.1 =
54
- * fine-me auto feature improved to work with responsive websites
55
 
56
  = 1.5 =
57
  * completely re-wrote plugin
@@ -198,8 +211,21 @@ Fixed auto-expand of urls with id-anchors
198
 
199
  == Upgrade Notice ==
200
 
 
 
 
 
 
 
 
 
 
 
 
 
 
201
  = 1.5.1 =
202
- * fine-me auto feature now works with responsive webistes
203
 
204
  = 1.5 =
205
  * Plugin code completely rewritten
3
  Contributors: twinpictures, baden03
4
  Donate link: http://plugins.twinpictures.de/plugins/collapse-o-matic/
5
  Tags: collapse, expand, collapsible, expandable, expandable content, collapsable content, shortcode, hidden, hide, display, accordion, accordion, jQuery, javascript, roll-your-own, twinpictures, read me, read more, more
6
+ Requires at least: 3.3
7
+ Tested up to: 3.6-beta
8
+ Stable tag: 1.5.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
50
 
51
  == Changelog ==
52
 
53
+ = 1.5.3 =
54
+ * shortcode works in sidebar widgets (again)
55
+
56
+ = 1.5.2 =
57
+ * find-me now is called only after collapse/expand animations
58
+ * using .on() method once again
59
+ * updated Requires at least tag to 3.3
60
+ * added swapexcerpt
61
+ * fixed typos on the options page
62
+ * added custom css to options page
63
+ * added targtag and targpos attributes
64
+ * added the ability to insert extra external triggers
65
+
66
  = 1.5.1 =
67
+ * find-me auto feature improved to work with responsive websites
68
 
69
  = 1.5 =
70
  * completely re-wrote plugin
211
 
212
  == Upgrade Notice ==
213
 
214
+ = 1.5.3 =
215
+ * shortcode works in sidebar widgets (again)
216
+
217
+ = 1.5.2 =
218
+ * find-me is now called after all collapse/expand animations finish
219
+ * removed livequery in favor of jQuery .on() method
220
+ * updated Requires at least tag to 3.3
221
+ * added swapexcerpt attribute
222
+ * fixed typos on the options page
223
+ * added custom css to options page
224
+ * added targtag and targpos attributes
225
+ * added ability to add extra internal triggers
226
+
227
  = 1.5.1 =
228
+ * find-me auto feature now works with responsive websites
229
 
230
  = 1.5 =
231
  * Plugin code completely rewritten
screenshot-1.png DELETED
Binary file
screenshot-2.png DELETED
Binary file
screenshot-3.png DELETED
Binary file