Version Description
- custom css now added to new core.css file that is not affected if no default style is loaded.
- fully tested with WordPress version 5.8.2
Download this release
Release Info
Developer | baden03 |
Plugin | Collapse-O-Matic |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- README.md +2 -2
- collapse-o-matic.php +18 -10
- css/core_style.css +19 -0
- css/dark_style.css +0 -13
- css/light_style.css +0 -13
- readme.txt +8 -3
README.md
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
* Donate link: https://plugins.twinpictures.de/plugins/collapse-o-matic/
|
4 |
* 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
|
5 |
* Requires at least: 4.9
|
6 |
-
* Tested up to: 5.8.
|
7 |
-
* Stable tag: 1.8.
|
8 |
* Requires PHP: 7.2
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
3 |
* Donate link: https://plugins.twinpictures.de/plugins/collapse-o-matic/
|
4 |
* 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
|
5 |
* Requires at least: 4.9
|
6 |
+
* Tested up to: 5.8.2
|
7 |
+
* Stable tag: 1.8.2
|
8 |
* Requires PHP: 7.2
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
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://pluginoven.com/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.8.
|
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.8.
|
33 |
|
34 |
/**
|
35 |
* Used as prefix for options entry
|
@@ -134,12 +134,15 @@ class WP_Collapse_O_Matic {
|
|
134 |
}
|
135 |
|
136 |
//css
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
|
|
|
|
|
|
143 |
wp_enqueue_style( 'collapseomatic-css' );
|
144 |
}
|
145 |
}
|
@@ -193,9 +196,14 @@ class WP_Collapse_O_Matic {
|
|
193 |
if( !empty($this->options['script_check']) ){
|
194 |
wp_enqueue_script('collapseomatic-js');
|
195 |
}
|
196 |
-
|
197 |
-
|
|
|
|
|
|
|
|
|
198 |
}
|
|
|
199 |
//find a random number, if no id is assigned
|
200 |
$ran = uniqid();
|
201 |
extract(shortcode_atts(array(
|
4 |
Text Domain: jquery-collapse-o-matic
|
5 |
Plugin URI: https://pluginoven.com/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.8.2
|
8 |
Author: twinpictures, baden03
|
9 |
Author URI: https://twinpictures.de/
|
10 |
License: GPL2
|
29 |
* Current version
|
30 |
* @var string
|
31 |
*/
|
32 |
+
var $version = '1.8.2';
|
33 |
|
34 |
/**
|
35 |
* Used as prefix for options entry
|
134 |
}
|
135 |
|
136 |
//css
|
137 |
+
wp_register_style( 'collapscore-css', plugins_url('css/core_style.css', __FILE__) , array (), '1.0' );
|
138 |
+
wp_register_style( 'collapseomatic-css', plugins_url('css/'.$this->options['style'].'_style.css', __FILE__) , array (), '1.6' );
|
139 |
+
if( !empty( $this->options['custom_css'] ) ){
|
140 |
+
wp_add_inline_style( 'collapscore-css', $this->options['custom_css'] );
|
141 |
+
}
|
142 |
+
|
143 |
+
if( empty($this->options['css_check'])){
|
144 |
+
wp_enqueue_style( 'collapscore-css' );
|
145 |
+
if ($this->options['style'] !== 'none') {
|
146 |
wp_enqueue_style( 'collapseomatic-css' );
|
147 |
}
|
148 |
}
|
196 |
if( !empty($this->options['script_check']) ){
|
197 |
wp_enqueue_script('collapseomatic-js');
|
198 |
}
|
199 |
+
|
200 |
+
if( !empty($this->options['css_check'])){
|
201 |
+
wp_enqueue_style( 'collapscore-css' );
|
202 |
+
if ($this->options['style'] !== 'none') {
|
203 |
+
wp_enqueue_style( 'collapseomatic-css' );
|
204 |
+
}
|
205 |
}
|
206 |
+
|
207 |
//find a random number, if no id is assigned
|
208 |
$ran = uniqid();
|
209 |
extract(shortcode_atts(array(
|
css/core_style.css
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.collapseomatic, .colomat_trigger, .collapseall, .expandall, .setall {
|
2 |
+
cursor: pointer;
|
3 |
+
}
|
4 |
+
.colomat-swap {
|
5 |
+
display: none;
|
6 |
+
}
|
7 |
+
.maptastic {
|
8 |
+
position: absolute !important;
|
9 |
+
left: -10000px !important;
|
10 |
+
display:block !important;
|
11 |
+
max-width: 9999px;
|
12 |
+
}
|
13 |
+
.com_edit_link {
|
14 |
+
margin: 0;
|
15 |
+
padding: 0;
|
16 |
+
font-size: 1.2rem;
|
17 |
+
width: 100%;
|
18 |
+
text-align: right;
|
19 |
+
}
|
css/dark_style.css
CHANGED
@@ -2,7 +2,6 @@
|
|
2 |
background-image: url(images/arrow-down-dark.png);
|
3 |
background-repeat: no-repeat;
|
4 |
padding: 0 0 10px 16px;
|
5 |
-
cursor: pointer;
|
6 |
}
|
7 |
.collapseomatic:focus {
|
8 |
outline: 0;
|
@@ -21,9 +20,6 @@
|
|
21 |
.colomat-close {
|
22 |
background-image: url(images/arrow-up-dark.png);
|
23 |
}
|
24 |
-
.colomat-swap {
|
25 |
-
display: none;
|
26 |
-
}
|
27 |
.collapseomatic_excerpt, .collapseomatic_content {
|
28 |
margin-top: 0px;
|
29 |
margin-left: 16px;
|
@@ -32,18 +28,9 @@
|
|
32 |
.content_collapse_wrapper {
|
33 |
position: absolute; left: -999em;
|
34 |
}
|
35 |
-
.collapseall, .expandall {
|
36 |
-
cursor: pointer;
|
37 |
-
}
|
38 |
.collapseall:hover, .expandall:hover, .collapseall:focus, .expandall:focus {
|
39 |
text-decoration: underline;
|
40 |
}
|
41 |
-
.maptastic {
|
42 |
-
position: absolute !important;
|
43 |
-
left: -10000px !important;
|
44 |
-
display:block !important;
|
45 |
-
max-width: 9999px;
|
46 |
-
}
|
47 |
.span_fix {
|
48 |
padding: 0 !important;
|
49 |
margin: 0 !important;
|
2 |
background-image: url(images/arrow-down-dark.png);
|
3 |
background-repeat: no-repeat;
|
4 |
padding: 0 0 10px 16px;
|
|
|
5 |
}
|
6 |
.collapseomatic:focus {
|
7 |
outline: 0;
|
20 |
.colomat-close {
|
21 |
background-image: url(images/arrow-up-dark.png);
|
22 |
}
|
|
|
|
|
|
|
23 |
.collapseomatic_excerpt, .collapseomatic_content {
|
24 |
margin-top: 0px;
|
25 |
margin-left: 16px;
|
28 |
.content_collapse_wrapper {
|
29 |
position: absolute; left: -999em;
|
30 |
}
|
|
|
|
|
|
|
31 |
.collapseall:hover, .expandall:hover, .collapseall:focus, .expandall:focus {
|
32 |
text-decoration: underline;
|
33 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
.span_fix {
|
35 |
padding: 0 !important;
|
36 |
margin: 0 !important;
|
css/light_style.css
CHANGED
@@ -2,7 +2,6 @@
|
|
2 |
background-image: url('images/arrow-down.png');
|
3 |
background-repeat: no-repeat;
|
4 |
padding: 0 0 10px 16px;
|
5 |
-
cursor: pointer;
|
6 |
}
|
7 |
.collapseomatic:focus {
|
8 |
outline: 0;
|
@@ -21,9 +20,6 @@
|
|
21 |
.colomat-close {
|
22 |
background-image: url('images/arrow-up.png');
|
23 |
}
|
24 |
-
.colomat-swap {
|
25 |
-
display: none;
|
26 |
-
}
|
27 |
.collapseomatic_excerpt, .collapseomatic_content {
|
28 |
margin-top: 0px;
|
29 |
margin-left: 16px;
|
@@ -32,18 +28,9 @@
|
|
32 |
.content_collapse_wrapper {
|
33 |
position: absolute; left: -999em;
|
34 |
}
|
35 |
-
.collapseall, .expandall {
|
36 |
-
cursor: pointer;
|
37 |
-
}
|
38 |
.collapseall:hover, .expandall:hover, .collapseall:focus, .expandall:focus {
|
39 |
text-decoration: underline;
|
40 |
}
|
41 |
-
.maptastic {
|
42 |
-
position: absolute !important;
|
43 |
-
left: -10000px !important;
|
44 |
-
display:block !important;
|
45 |
-
max-width: 9999px;
|
46 |
-
}
|
47 |
.span_fix {
|
48 |
padding: 0 !important;
|
49 |
margin: 0 !important;
|
2 |
background-image: url('images/arrow-down.png');
|
3 |
background-repeat: no-repeat;
|
4 |
padding: 0 0 10px 16px;
|
|
|
5 |
}
|
6 |
.collapseomatic:focus {
|
7 |
outline: 0;
|
20 |
.colomat-close {
|
21 |
background-image: url('images/arrow-up.png');
|
22 |
}
|
|
|
|
|
|
|
23 |
.collapseomatic_excerpt, .collapseomatic_content {
|
24 |
margin-top: 0px;
|
25 |
margin-left: 16px;
|
28 |
.content_collapse_wrapper {
|
29 |
position: absolute; left: -999em;
|
30 |
}
|
|
|
|
|
|
|
31 |
.collapseall:hover, .expandall:hover, .collapseall:focus, .expandall:focus {
|
32 |
text-decoration: underline;
|
33 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
.span_fix {
|
35 |
padding: 0 !important;
|
36 |
margin: 0 !important;
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ 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.9
|
7 |
-
Tested up to: 5.8.
|
8 |
-
Stable tag: 1.8.
|
9 |
Requires PHP: 7.2
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -51,6 +51,10 @@ No. Not even close.
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
|
|
54 |
= 1.8.1 =
|
55 |
* options passed using the preferred wp_add_inline_script
|
56 |
|
@@ -399,4 +403,5 @@ Fixed auto-expand of urls with id-anchors
|
|
399 |
* The plug-in came to be.
|
400 |
|
401 |
== Upgrade Notice ==
|
402 |
-
*
|
|
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.9
|
7 |
+
Tested up to: 5.8.2
|
8 |
+
Stable tag: 1.8.2
|
9 |
Requires PHP: 7.2
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 1.8.2 =
|
55 |
+
* custom css now added to new core.css file that is not affected if no default style is loaded.
|
56 |
+
* fully tested with WordPress version 5.8.2
|
57 |
+
|
58 |
= 1.8.1 =
|
59 |
* options passed using the preferred wp_add_inline_script
|
60 |
|
403 |
* The plug-in came to be.
|
404 |
|
405 |
== Upgrade Notice ==
|
406 |
+
* custom css now added to new core.css file that is not affected if no default style is loaded.
|
407 |
+
* fully tested with WordPress version 5.8.2
|