Collapse-O-Matic - Version 1.6.7

Version Description

  • added filter_content to the options page, defaults to off
Download this release

Release Info

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

Code changes from version 1.6.6 to 1.6.7

Files changed (2) hide show
  1. collapse-o-matic.php +13 -5
  2. readme.txt +7 -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.6
9
  Author: twinpictures, baden03
10
  Author URI: http://twinpictures.de/
11
  License: GPL2
@@ -30,7 +30,7 @@ class WP_Collapse_O_Matic {
30
  * Current version
31
  * @var string
32
  */
33
- var $version = '1.6.6';
34
 
35
  /**
36
  * Used as prefix for options entry
@@ -61,7 +61,8 @@ class WP_Collapse_O_Matic {
61
  'script_check' => '',
62
  'script_location' => 'footer',
63
  'cc_download_key' => '',
64
- 'cc_email' => ''
 
65
  );
66
 
67
  var $license_group = 'colomat_licenseing';
@@ -195,7 +196,7 @@ class WP_Collapse_O_Matic {
195
  'endwrap' => '',
196
  'elwraptag' => '',
197
  'elwrapclass' => '',
198
- 'filter' => 'true',
199
  'tabindex' => $options['tabindex']
200
  ), $atts));
201
 
@@ -230,7 +231,7 @@ class WP_Collapse_O_Matic {
230
  $content = get_the_content();
231
  }else{
232
  $content = apply_filters( 'the_content', get_the_content() );
233
- $content = str_replace( ']]>', ']]>', $content );
234
  }
235
  }
236
  }
@@ -541,6 +542,13 @@ class WP_Collapse_O_Matic {
541
  </td>
542
  </tr>
543
 
 
 
 
 
 
 
 
544
  <tr>
545
  <th><?php _e( 'Shortcode Loads Scripts', 'colomat' ) ?>:</th>
546
  <td><label><input type="checkbox" id="<?php echo $this->options_name ?>[script_check]" name="<?php echo $this->options_name ?>[script_check]" value="1" <?php echo checked( $options['script_check'], 1 ); ?> /> <?php _e('Only load scripts with shortcode.', '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.7
9
  Author: twinpictures, baden03
10
  Author URI: http://twinpictures.de/
11
  License: GPL2
30
  * Current version
31
  * @var string
32
  */
33
+ var $version = '1.6.7';
34
 
35
  /**
36
  * Used as prefix for options entry
61
  'script_check' => '',
62
  'script_location' => 'footer',
63
  'cc_download_key' => '',
64
+ 'cc_email' => '',
65
+ 'filter_content' => '',
66
  );
67
 
68
  var $license_group = 'colomat_licenseing';
196
  'endwrap' => '',
197
  'elwraptag' => '',
198
  'elwrapclass' => '',
199
+ 'filter' => $options['filter_content'],
200
  'tabindex' => $options['tabindex']
201
  ), $atts));
202
 
231
  $content = get_the_content();
232
  }else{
233
  $content = apply_filters( 'the_content', get_the_content() );
234
+ //$content = str_replace( ']]>', ']]&gt;', $content );
235
  }
236
  }
237
  }
542
  </td>
543
  </tr>
544
 
545
+ <tr>
546
+ <th><?php _e( 'Content Filter', 'colomat' ) ?>:</th>
547
+ <td><label><input type="checkbox" id="<?php echo $this->options_name ?>[filter_content]" name="<?php echo $this->options_name ?>[filter_content]" value="1" <?php echo checked( $options['filter_content'], 1 ); ?> /> <?php _e('Apply filter', 'colomat'); ?>
548
+ <br /><span class="description"><?php _e('Apply the_content filter to target content.', 'colomat'); ?></span></label>
549
+ </td>
550
+ </tr>
551
+
552
  <tr>
553
  <th><?php _e( 'Shortcode Loads Scripts', 'colomat' ) ?>:</th>
554
  <td><label><input type="checkbox" id="<?php echo $this->options_name ?>[script_check]" name="<?php echo $this->options_name ?>[script_check]" value="1" <?php echo checked( $options['script_check'], 1 ); ?> /> <?php _e('Only load scripts with shortcode.', 'colomat'); ?>
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.9
7
  Tested up to: 4.2
8
- Stable tag: 1.6.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -50,6 +50,9 @@ No. Not even close.
50
 
51
  == Changelog ==
52
 
 
 
 
53
  = 1.6.6 =
54
  * added filter attribute to pass the content through the_content filter
55
  * changed name of wpex_clean_shortcodes function
@@ -279,6 +282,9 @@ Fixed auto-expand of urls with id-anchors
279
 
280
  == Upgrade Notice ==
281
 
 
 
 
282
  = 1.6.6 =
283
  * added filter attribute to pass the content through the_content filter
284
  * changed name of wpex_clean_shortcodes function
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.9
7
  Tested up to: 4.2
8
+ Stable tag: 1.6.7
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.7 =
54
+ * added filter_content to the options page, defaults to off
55
+
56
  = 1.6.6 =
57
  * added filter attribute to pass the content through the_content filter
58
  * changed name of wpex_clean_shortcodes function
282
 
283
  == Upgrade Notice ==
284
 
285
+ = 1.6.7 =
286
+ * added filter_content to the options page, defaults to off
287
+
288
  = 1.6.6 =
289
  * added filter attribute to pass the content through the_content filter
290
  * changed name of wpex_clean_shortcodes function