Collapse-O-Matic - Version 1.5.5

Version Description

  • updated for 3.8
  • cleaned up old code
Download this release

Release Info

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

Code changes from version 1.5.4 to 1.5.5

Files changed (2) hide show
  1. collapse-o-matic.php +5 -11
  2. readme.txt +11 -3
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.4
9
  Author: twinpictures, baden03
10
  Author URI: http://twinpictures.de/
11
  License: GPL2
@@ -23,7 +23,7 @@ class WP_Collapse_O_Matic {
23
  * Current version
24
  * @var string
25
  */
26
- var $version = '1.5.4';
27
 
28
  /**
29
  * Used as prefix for options entry
@@ -120,13 +120,6 @@ class WP_Collapse_O_Matic {
120
  }
121
  }
122
 
123
- /**
124
- * Callback admin_init
125
- */
126
- function admin_init() {
127
- // register settings
128
- register_setting( $this->domain, $this->options_name );
129
- }
130
 
131
  /**
132
  * Callback shortcode
@@ -139,6 +132,7 @@ class WP_Collapse_O_Matic {
139
  'title' => '',
140
  'swaptitle' => '',
141
  'alt' => '',
 
142
  'notitle' => '',
143
  'id' => 'id'.$ran,
144
  'tag' => $options['tag'],
@@ -230,7 +224,7 @@ class WP_Collapse_O_Matic {
230
  }
231
  $link = $closeanchor.$anchor.'<'.$tag.' class="collapseomatic '.$trigclass.'" id="'.$id.'" '.$relatt.' '.$altatt.'>'.$startwrap.$title.$endwrap.'</'.$tag.'>';
232
  if($swaptitle){
233
- $link .= "<".$tag." id='swap-".$id."' style='display:none;'>".$startwrap.$swaptitle.$endwrap."</".$tag.">";
234
  }
235
 
236
  if($excerpt){
@@ -405,7 +399,7 @@ class WP_Collapse_O_Matic {
405
  <p><?php _e( 'Remove clutter, save space. Display and hide additional content in a SEO friendly way. Wrap any content&mdash;including other shortcodes&mdash;into a lovely jQuery expanding and collapsing element.', 'colomat') ?></p>
406
  <ul>
407
  <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>
408
- <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>
409
  <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>
410
  <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>
411
  </ul>
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.5
9
  Author: twinpictures, baden03
10
  Author URI: http://twinpictures.de/
11
  License: GPL2
23
  * Current version
24
  * @var string
25
  */
26
+ var $version = '1.5.5';
27
 
28
  /**
29
  * Used as prefix for options entry
120
  }
121
  }
122
 
 
 
 
 
 
 
 
123
 
124
  /**
125
  * Callback shortcode
132
  'title' => '',
133
  'swaptitle' => '',
134
  'alt' => '',
135
+ 'swapalt' => '',
136
  'notitle' => '',
137
  'id' => 'id'.$ran,
138
  'tag' => $options['tag'],
224
  }
225
  $link = $closeanchor.$anchor.'<'.$tag.' class="collapseomatic '.$trigclass.'" id="'.$id.'" '.$relatt.' '.$altatt.'>'.$startwrap.$title.$endwrap.'</'.$tag.'>';
226
  if($swaptitle){
227
+ $link .= "<".$tag." id='swap-".$id."' alt='".$swapalt."' style='display:none;'>".$startwrap.$swaptitle.$endwrap."</".$tag.">";
228
  }
229
 
230
  if($excerpt){
399
  <p><?php _e( 'Remove clutter, save space. Display and hide additional content in a SEO friendly way. Wrap any content&mdash;including other shortcodes&mdash;into a lovely jQuery expanding and collapsing element.', 'colomat') ?></p>
400
  <ul>
401
  <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>
402
+ <li><?php printf( __( '%sFree%s Opensource Support', 'colomat'), '<a href="http://wordpress.org/support/plugin/jquery-collapse-o-matic" target="_blank">', '</a>'); ?></li>
403
  <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>
404
  <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>
405
  </ul>
readme.txt CHANGED
@@ -4,8 +4,8 @@ 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.5
7
- Tested up to: 3.7.1
8
- Stable tag: 1.5.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -13,7 +13,7 @@ Remove clutter, save space: display and hide additional content in a SEO friendl
13
 
14
  == Description ==
15
 
16
- Collapse-O-Matic adds an `[expand title="trigger text"]hidden content[/expand]` shortcode that will wrap any content, including other shortcodes, into a lovely jQuery expanding and collapsing div. A <a href='http://plugins.twinpictures.de/plugins/collapse-o-matic/documentation/'>complete listing of shortcode options and attribute demos</a> are available, as well as <a href='http://wordpress.org/support/plugin/jquery-collapse-o-matic'>free community</a> and <a href='http://plugins.twinpictures.de/plugins/collapse-o-matic/support/'>premium support</a>.
17
 
18
  == Installation ==
19
 
@@ -50,6 +50,10 @@ No. Not even close.
50
 
51
  == Changelog ==
52
 
 
 
 
 
53
  = 1.5.4 =
54
  * updated .on method
55
  * removed php4 constructor
@@ -217,6 +221,10 @@ Fixed auto-expand of urls with id-anchors
217
 
218
  == Upgrade Notice ==
219
 
 
 
 
 
220
  = 1.5.4 =
221
  * updated jQuery .on() method
222
  * removed php4 constructor
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.5
7
+ Tested up to: 3.8
8
+ Stable tag: 1.5.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
13
 
14
  == Description ==
15
 
16
+ Collapse-O-Matic adds an `[expand title="trigger text"]hidden content[/expand]` shortcode that will wrap any content, including other shortcodes, into a lovely jQuery expanding and collapsing div. A <a href='http://plugins.twinpictures.de/plugins/collapse-o-matic/documentation/'>complete listing of shortcode options and attribute demos</a> are available, as well as <a href='http://wordpress.org/support/plugin/jquery-collapse-o-matic'>free community</a> support.
17
 
18
  == Installation ==
19
 
50
 
51
  == Changelog ==
52
 
53
+ = 1.5.5 =
54
+ * updated for 3.8
55
+ * cleaned up old code
56
+
57
  = 1.5.4 =
58
  * updated .on method
59
  * removed php4 constructor
221
 
222
  == Upgrade Notice ==
223
 
224
+ = 1.5.5 =
225
+ * updated for 3.8
226
+ * cleaned up old code
227
+
228
  = 1.5.4 =
229
  * updated jQuery .on() method
230
  * removed php4 constructor