Version Description
- fixed expand_all triggers to work with maptastic
- fully tested with WordPress 5.4.1
Download this release
Release Info
Developer | baden03 |
Plugin | Collapse-O-Matic |
Version | 1.7.12 |
Comparing to | |
See all releases |
Code changes from version 1.7.11 to 1.7.12
- README.md +46 -0
- collapse-o-matic.php +4 -4
- js/collapse.js +2 -2
- readme.txt +10 -6
README.md
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Collapse-O-Matic
|
2 |
+
================
|
3 |
+
|
4 |
+
* Contributors: twinpictures, baden03
|
5 |
+
* Donate link: https://plugins.twinpictures.de/plugins/collapse-o-matic/
|
6 |
+
* 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
|
7 |
+
* Requires at least: 4.7
|
8 |
+
* Tested up to: 5.4.1
|
9 |
+
* Stable tag: 1.7.12
|
10 |
+
* Requires PHP: 7.0
|
11 |
+
* License: GPLv2 or later
|
12 |
+
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
13 |
+
|
14 |
+
Description
|
15 |
+
-----------
|
16 |
+
|
17 |
+
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='https://plugins.twinpictures.de/plugins/collapse-o-matic/documentation/'>complete listing of shortcode options and attribute demos</a> are available, as well as <a href='https://wordpress.org/support/plugin/jquery-collapse-o-matic'>free community</a> support.
|
18 |
+
|
19 |
+
Installation
|
20 |
+
------------
|
21 |
+
|
22 |
+
1. Old-school: upload the `collapse-o-matic` folder to the `/wp-content/plug-ins/` directory via FTP. Hipster: Ironically add collapse-o-matic via the WordPress Plug-ins menu.
|
23 |
+
1. Activate the Plug-in
|
24 |
+
1. Add a the shortcode to your post like so: `[expand title="Displayed Title Goes Here"]Hidden content goes here[/expand]`
|
25 |
+
1. Test that the this plug-in meets your demanding needs.
|
26 |
+
1. Tweak the CSS to match your flavour.
|
27 |
+
1. Rate the plug-in and verify if it works at wordpress.org.
|
28 |
+
1. Leave a comment regarding bugs, feature request, cocktail recipes at https://wordpress.org/tags/jquery-collapse-o-matic/
|
29 |
+
|
30 |
+
Frequently Asked Questions
|
31 |
+
--------------------------
|
32 |
+
|
33 |
+
<b>Where can I translate this plugin into my favourite language?</b>
|
34 |
+
* <a href='https://translate.wordpress.org/projects/wp-plugins/jquery-collapse-o-matic'>Community translation for Collapse-O-Matic</a> is available via the WordPress Translation project.
|
35 |
+
|
36 |
+
<b>I am a Social Netwookiee, might Twinpictures have a Facebook page?</b>
|
37 |
+
* Yes, yes... <a href='https://www.facebook.com/twinpictures'>Twinpictures is on Facebook</a>.
|
38 |
+
|
39 |
+
<b>Does Twinpictures do the Twitter?</b>
|
40 |
+
* Ah yes! <a href='https://twitter.com/#!/twinpictures'>@Twinpictures</a> does the twitter tweeting around here.
|
41 |
+
|
42 |
+
<b>How does one use the shortcode, exactly?</b>
|
43 |
+
* A <a href='https://plugins.twinpictures.de/plugins/collapse-o-matic/documentation/'>complete listing of shortcode options</a> has been provided to answer this exact question.
|
44 |
+
|
45 |
+
<b>Is Galato the same as Ice Cream?</b>
|
46 |
+
* No. Not even close.
|
collapse-o-matic.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Collapse-O-Matic
|
|
4 |
Text Domain: jquery-collapse-o-matic
|
5 |
Plugin URI: https://plugins.twinpictures.de/plugins/collapse-o-matic/
|
6 |
Description: Collapse-O-Matic adds an [expand] shortcode that wraps content into a lovely, jQuery collapsible div.
|
7 |
-
Version: 1.7.
|
8 |
Author: twinpictures, baden03
|
9 |
Author URI: https://twinpictures.de/
|
10 |
License: GPL2
|
@@ -29,7 +29,7 @@ class WP_Collapse_O_Matic {
|
|
29 |
* Current version
|
30 |
* @var string
|
31 |
*/
|
32 |
-
var $version = '1.7.
|
33 |
|
34 |
/**
|
35 |
* Used as prefix for options entry
|
@@ -138,7 +138,7 @@ class WP_Collapse_O_Matic {
|
|
138 |
if($this->options['script_location'] == 'footer' ){
|
139 |
$load_in_footer = true;
|
140 |
}
|
141 |
-
wp_register_script('collapseomatic-js', plugins_url('js/collapse.js', __FILE__), array('jquery'), '1.6.
|
142 |
if( empty($this->options['script_check']) ){
|
143 |
wp_enqueue_script('collapseomatic-js');
|
144 |
}
|
@@ -872,7 +872,7 @@ class WP_Collapse_O_Matic {
|
|
872 |
if ( !empty( $saved_options ) ) {
|
873 |
foreach ( $this->options AS $key => $option ) {
|
874 |
if($key == 'tabindex'){
|
875 |
-
$this->options[ $key ] = $saved_options[ $key ];
|
876 |
}
|
877 |
else{
|
878 |
$this->options[ $key ] = ( empty( $saved_options[ $key ] ) ) ? '' : $saved_options[ $key ];
|
4 |
Text Domain: jquery-collapse-o-matic
|
5 |
Plugin URI: https://plugins.twinpictures.de/plugins/collapse-o-matic/
|
6 |
Description: Collapse-O-Matic adds an [expand] shortcode that wraps content into a lovely, jQuery collapsible div.
|
7 |
+
Version: 1.7.12
|
8 |
Author: twinpictures, baden03
|
9 |
Author URI: https://twinpictures.de/
|
10 |
License: GPL2
|
29 |
* Current version
|
30 |
* @var string
|
31 |
*/
|
32 |
+
var $version = '1.7.12';
|
33 |
|
34 |
/**
|
35 |
* Used as prefix for options entry
|
138 |
if($this->options['script_location'] == 'footer' ){
|
139 |
$load_in_footer = true;
|
140 |
}
|
141 |
+
wp_register_script('collapseomatic-js', plugins_url('js/collapse.js', __FILE__), array('jquery'), '1.6.19', $load_in_footer);
|
142 |
if( empty($this->options['script_check']) ){
|
143 |
wp_enqueue_script('collapseomatic-js');
|
144 |
}
|
872 |
if ( !empty( $saved_options ) ) {
|
873 |
foreach ( $this->options AS $key => $option ) {
|
874 |
if($key == 'tabindex'){
|
875 |
+
$this->options[ $key ] = in_array( $key, $saved_options ) ? $saved_options[ $key ] : 0;
|
876 |
}
|
877 |
else{
|
878 |
$this->options[ $key ] = ( empty( $saved_options[ $key ] ) ) ? '' : $saved_options[ $key ];
|
js/collapse.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
-
* Collapse-O-Matic JavaSctipt v1.6.
|
3 |
* http://plugins.twinpictures.de/plugins/collapse-o-matic/
|
4 |
*
|
5 |
* Copyright 2019, Twinpictures
|
@@ -342,7 +342,7 @@ function colomat_expandall(loop_items){
|
|
342 |
}
|
343 |
});
|
344 |
|
345 |
-
toggleState(jQuery(this), thisid,
|
346 |
});
|
347 |
}
|
348 |
|
1 |
/*!
|
2 |
+
* Collapse-O-Matic JavaSctipt v1.6.19
|
3 |
* http://plugins.twinpictures.de/plugins/collapse-o-matic/
|
4 |
*
|
5 |
* Copyright 2019, Twinpictures
|
342 |
}
|
343 |
});
|
344 |
|
345 |
+
toggleState(jQuery(this), thisid, true, false);
|
346 |
});
|
347 |
}
|
348 |
|
readme.txt
CHANGED
@@ -2,15 +2,15 @@
|
|
2 |
|
3 |
Contributors: twinpictures, baden03
|
4 |
Donate link: https://plugins.twinpictures.de/plugins/collapse-o-matic/
|
5 |
-
Tags: collapse, expand,
|
6 |
Requires at least: 4.7
|
7 |
-
Tested up to: 5.
|
8 |
-
Stable tag: 1.7.
|
9 |
Requires PHP: 7.0
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
13 |
-
Remove clutter, save space: display and hide additional
|
14 |
|
15 |
== Description ==
|
16 |
|
@@ -51,6 +51,10 @@ No. Not even close.
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
|
|
54 |
= 1.7.11 =
|
55 |
* added swaptitle capability to extra triggers
|
56 |
* fully tested with WordPress 5.2.1
|
@@ -372,5 +376,5 @@ Fixed auto-expand of urls with id-anchors
|
|
372 |
* The plug-in came to be.
|
373 |
|
374 |
== Upgrade Notice ==
|
375 |
-
*
|
376 |
-
* fully tested with WordPress 5.
|
2 |
|
3 |
Contributors: twinpictures, baden03
|
4 |
Donate link: https://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: 4.7
|
7 |
+
Tested up to: 5.4.1
|
8 |
+
Stable tag: 1.7.12
|
9 |
Requires PHP: 7.0
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
13 |
+
Remove clutter, save space: display and hide additional content in a SEO friendly way by wrapping content in an [expand] shortcode.
|
14 |
|
15 |
== Description ==
|
16 |
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 1.7.12 =
|
55 |
+
* fixed expand_all triggers to work with maptastic
|
56 |
+
* fully tested with WordPress 5.4.1
|
57 |
+
|
58 |
= 1.7.11 =
|
59 |
* added swaptitle capability to extra triggers
|
60 |
* fully tested with WordPress 5.2.1
|
376 |
* The plug-in came to be.
|
377 |
|
378 |
== Upgrade Notice ==
|
379 |
+
* fixed expand_all triggers to work with maptastic
|
380 |
+
* fully tested with WordPress 5.4.1
|