Collapse-O-Matic - Version 1.6.2

Version Description

  • added colomat-swap class to the swaptitle element
  • added optional cid default to the shortcode
Download this release

Release Info

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

Code changes from version 1.6.1 to 1.6.2

Files changed (4) hide show
  1. collapse-o-matic.php +7 -7
  2. dark_style.css +3 -0
  3. light_style.css +3 -0
  4. readme.txt +12 -1
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.6.1
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.6.1';
27
 
28
  /**
29
  * Used as prefix for options entry
@@ -149,7 +149,7 @@ class WP_Collapse_O_Matic {
149
  $ran = rand(1, 10000);
150
  extract(shortcode_atts(array(
151
  'title' => '',
152
- 'cid' => '',
153
  'swaptitle' => '',
154
  'alt' => '',
155
  'swapalt' => '',
@@ -222,7 +222,7 @@ class WP_Collapse_O_Matic {
222
  $inline_class = 'colomat-inline ';
223
  $collapse_class = 'collapseomatic_content_inline ';
224
  }
225
- $eDiv = '<'.$targtag.' id="target-'.$id.'" class="'.$collapse_class.$inline_class.$targclass.'">'.do_shortcode($content).'</'.$targtag.'>';
226
  }
227
 
228
  if($excerpt){
@@ -271,7 +271,7 @@ class WP_Collapse_O_Matic {
271
  }
272
  $link = $closeanchor.$anchor.'<'.$tag.' class="collapseomatic '.$trigclass.'" id="'.$id.'" '.$relatt.' '.$altatt.'>'.$startwrap.$title.$endwrap.'</'.$tag.'>';
273
  if($swaptitle){
274
- $link .= "<".$tag." id='swap-".$id."' alt='".$swapalt."' style='display:none;'>".$startwrap.$swaptitle.$endwrap."</".$tag.">";
275
  }
276
 
277
  if($excerpt){
@@ -477,14 +477,14 @@ class WP_Collapse_O_Matic {
477
  </tr>
478
  <?php if( !is_plugin_active( 'collapse-commander/collapse-commander.php' ) ) : ?>
479
  <tr>
480
- <th><strong><?php _e( 'Collapse Managment', 'colomat' ) ?></strong></th>
481
  <td><?php printf(__( '%sCollapse Commander%s is an add-on plugin that introduces an advanced management interface to better organize expand elements and simplify expand shortcodes.', 'colomat' ), '<a href="http://plugins.twinpictures.de/premium-plugins/collapse-commander/">', '</a>'); ?>
482
  </td>
483
  </tr>
484
  <?php endif; ?>
485
  <tr>
486
  <th><strong><?php _e( 'Level Up!', 'colomat' ) ?></strong></th>
487
- <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>'); ?>
488
  </td>
489
  </tr>
490
  </table>
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.6.2
9
  Author: twinpictures, baden03
10
  Author URI: http://twinpictures.de/
11
  License: GPL2
23
  * Current version
24
  * @var string
25
  */
26
+ var $version = '1.6.2';
27
 
28
  /**
29
  * Used as prefix for options entry
149
  $ran = rand(1, 10000);
150
  extract(shortcode_atts(array(
151
  'title' => '',
152
+ 'cid' => $options['cid'],
153
  'swaptitle' => '',
154
  'alt' => '',
155
  'swapalt' => '',
222
  $inline_class = 'colomat-inline ';
223
  $collapse_class = 'collapseomatic_content_inline ';
224
  }
225
+ $eDiv = '<'.$targtag.' id="target-'.$id.'" class="'.$collapse_class.$inline_class.$targclass.'">'.do_shortcode($content).'</'.$targtag.'>';
226
  }
227
 
228
  if($excerpt){
271
  }
272
  $link = $closeanchor.$anchor.'<'.$tag.' class="collapseomatic '.$trigclass.'" id="'.$id.'" '.$relatt.' '.$altatt.'>'.$startwrap.$title.$endwrap.'</'.$tag.'>';
273
  if($swaptitle){
274
+ $link .= "<".$tag." id='swap-".$id."' alt='".$swapalt."' class='colomat-swap' style='display:none;'>".$startwrap.$swaptitle.$endwrap."</".$tag.">";
275
  }
276
 
277
  if($excerpt){
477
  </tr>
478
  <?php if( !is_plugin_active( 'collapse-commander/collapse-commander.php' ) ) : ?>
479
  <tr>
480
+ <th><strong><?php _e( 'Take Command!', 'colomat' ) ?></strong></th>
481
  <td><?php printf(__( '%sCollapse Commander%s is an add-on plugin that introduces an advanced management interface to better organize expand elements and simplify expand shortcodes.', 'colomat' ), '<a href="http://plugins.twinpictures.de/premium-plugins/collapse-commander/">', '</a>'); ?>
482
  </td>
483
  </tr>
484
  <?php endif; ?>
485
  <tr>
486
  <th><strong><?php _e( 'Level Up!', 'colomat' ) ?></strong></th>
487
+ <td><?php printf(__( '%sCollapse-Pro-Matic%s is our premium 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>'); ?>
488
  </td>
489
  </tr>
490
  </table>
dark_style.css CHANGED
@@ -18,6 +18,9 @@
18
  .colomat-close {
19
  background-image: url(images/arrow-up-dark.png);
20
  }
 
 
 
21
  .collapseomatic_excerpt, .collapseomatic_content {
22
  margin-top: 0px;
23
  margin-left: 16px;
18
  .colomat-close {
19
  background-image: url(images/arrow-up-dark.png);
20
  }
21
+ .colomat-swap {
22
+ display: none;
23
+ }
24
  .collapseomatic_excerpt, .collapseomatic_content {
25
  margin-top: 0px;
26
  margin-left: 16px;
light_style.css CHANGED
@@ -18,6 +18,9 @@
18
  .colomat-close {
19
  background-image: url(images/arrow-up.png);
20
  }
 
 
 
21
  .collapseomatic_excerpt, .collapseomatic_content {
22
  margin-top: 0px;
23
  margin-left: 16px;
18
  .colomat-close {
19
  background-image: url(images/arrow-up.png);
20
  }
21
+ .colomat-swap {
22
+ display: none;
23
+ }
24
  .collapseomatic_excerpt, .collapseomatic_content {
25
  margin-top: 0px;
26
  margin-left: 16px;
readme.txt CHANGED
@@ -5,7 +5,7 @@ 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, plugin oven
6
  Requires at least: 3.5
7
  Tested up to: 4.0
8
- Stable tag: 1.6.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -50,6 +50,10 @@ No. Not even close.
50
 
51
  == Changelog ==
52
 
 
 
 
 
53
  = 1.6.1 =
54
  * fixed undeclared cid variable
55
 
@@ -254,6 +258,13 @@ Fixed auto-expand of urls with id-anchors
254
 
255
  == Upgrade Notice ==
256
 
 
 
 
 
 
 
 
257
  = 1.6 =
258
  * fixed issue with using id anchor links on elements with expanded=‘true’
259
  * added support for Collapse Commander add-on plugin to manage expand elements
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, plugin oven
6
  Requires at least: 3.5
7
  Tested up to: 4.0
8
+ Stable tag: 1.6.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
50
 
51
  == Changelog ==
52
 
53
+ = 1.6.2 =
54
+ * added colomat-swap class to the swaptitle element
55
+ * added optional cid default to the shortcode
56
+
57
  = 1.6.1 =
58
  * fixed undeclared cid variable
59
 
258
 
259
  == Upgrade Notice ==
260
 
261
+ = 1.6.2 =
262
+ * added colomat-swap class to the swaptitle element
263
+ * added optional cid default to the shortcode
264
+
265
+ = 1.6.1 =
266
+ * fixed undeclared cid variable
267
+
268
  = 1.6 =
269
  * fixed issue with using id anchor links on elements with expanded=‘true’
270
  * added support for Collapse Commander add-on plugin to manage expand elements