Version Description
- Added excerpt feature and all related attributes.
Download this release
Release Info
Developer | baden03 |
Plugin | Collapse-O-Matic |
Version | 1.3.11 |
Comparing to | |
See all releases |
Code changes from version 1.3.10 to 1.3.11
- collapse-o-matic.php +28 -2
- readme.txt +8 -3
- style.css +2 -4
collapse-o-matic.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: jQuery Collapse-O-Matic
|
4 |
Plugin URI: http://www.twinpictures.de/jquery-collapse-o-matic-1-3/
|
5 |
Description: Collapse-O-Matic adds an `[expand]` shortcode that wraps content into a lovely, jQuery collapsible div.
|
6 |
-
Version: 1.3.
|
7 |
Author: Twinpictures
|
8 |
Author URI: http://www.twinpictures.de
|
9 |
License: GPL2
|
@@ -52,8 +52,21 @@ function collapsTronic($atts, $content = null){
|
|
52 |
'targclass' => '',
|
53 |
'rel' => '',
|
54 |
'expanded' => '',
|
|
|
|
|
|
|
|
|
55 |
), $atts));
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
$altatt = '';
|
58 |
if($alt){
|
59 |
$altatt = 'alt="'.$alt.'" title="'.$alt.'"';
|
@@ -76,7 +89,20 @@ function collapsTronic($atts, $content = null){
|
|
76 |
if($content != ' '){
|
77 |
$eDiv = '<div id="target-'.$id.'" class="collapseomatic_content '.$targclass.'">'.do_shortcode($content).'</div>';
|
78 |
}
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
}
|
81 |
|
82 |
add_shortcode('expand', 'collapsTronic');
|
3 |
Plugin Name: jQuery Collapse-O-Matic
|
4 |
Plugin URI: http://www.twinpictures.de/jquery-collapse-o-matic-1-3/
|
5 |
Description: Collapse-O-Matic adds an `[expand]` shortcode that wraps content into a lovely, jQuery collapsible div.
|
6 |
+
Version: 1.3.11
|
7 |
Author: Twinpictures
|
8 |
Author URI: http://www.twinpictures.de
|
9 |
License: GPL2
|
52 |
'targclass' => '',
|
53 |
'rel' => '',
|
54 |
'expanded' => '',
|
55 |
+
'excerpt' => '',
|
56 |
+
'excerptpos' => 'below-trigger',
|
57 |
+
'excerpttag' => 'div',
|
58 |
+
'excerptclass' => '',
|
59 |
), $atts));
|
60 |
|
61 |
+
if($excerpt){
|
62 |
+
if($excerptpos == 'above-trigger'){
|
63 |
+
$nibble = '<'.$excerpttag.' class="'.$excerptclass.'">'.$excerpt.'</'.$excerpttag.'>';
|
64 |
+
}
|
65 |
+
else{
|
66 |
+
$nibble = '<'.$excerpttag.' class="collapseomatic_excerpt '.$excerptclass.'">'.$excerpt.'</'.$excerpttag.'>';
|
67 |
+
}
|
68 |
+
|
69 |
+
}
|
70 |
$altatt = '';
|
71 |
if($alt){
|
72 |
$altatt = 'alt="'.$alt.'" title="'.$alt.'"';
|
89 |
if($content != ' '){
|
90 |
$eDiv = '<div id="target-'.$id.'" class="collapseomatic_content '.$targclass.'">'.do_shortcode($content).'</div>';
|
91 |
}
|
92 |
+
if($excerpt){
|
93 |
+
if($excerptpos == 'above-trigger'){
|
94 |
+
return $nibble . $link . $eDiv;
|
95 |
+
}
|
96 |
+
else if($excerptpos == 'below-trigger'){
|
97 |
+
return $link . $nibble . $eDiv;
|
98 |
+
}
|
99 |
+
else{
|
100 |
+
return $link . $eDiv . $nibble;
|
101 |
+
}
|
102 |
+
}
|
103 |
+
else{
|
104 |
+
return $link . $eDiv;
|
105 |
+
}
|
106 |
}
|
107 |
|
108 |
add_shortcode('expand', 'collapsTronic');
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
|
2 |
|
3 |
Contributors: Twinpictures
|
4 |
Donate link: http://www.twinpictures.de/collapse-o-matic/
|
5 |
Tags: collapse, expand, collapsible, expandable, content, shortcode, hidden, jQuery, javascript, twinpictures
|
6 |
Requires at least: 2.8
|
7 |
-
Tested up to: 3.
|
8 |
-
Stable tag: 1.3.
|
9 |
|
10 |
Collapse-O-Matic adds an `[expand]` shortcode that wraps any object or content--including other shortcodes--into a lovely jQuery collapsible div.
|
11 |
|
@@ -44,6 +44,9 @@ No. Not even close.
|
|
44 |
|
45 |
== Changelog ==
|
46 |
|
|
|
|
|
|
|
47 |
= 1.3.10 =
|
48 |
* Swaptitle system rebuilt to support images and cufon.
|
49 |
* Updated CSS the over generalized names close and hover to more plug-in specific colomat-close and colomat-hover
|
@@ -101,6 +104,8 @@ No. Not even close.
|
|
101 |
* The plug-in came to be.
|
102 |
|
103 |
== Upgrade Notice ==
|
|
|
|
|
104 |
|
105 |
= 1.3.10 =
|
106 |
Rebuilt swaptitle to support images and cufon text. Change CSS names to be more plug-in specific.
|
1 |
+
=== jQuery Collapse-O-Matic ===
|
2 |
|
3 |
Contributors: Twinpictures
|
4 |
Donate link: http://www.twinpictures.de/collapse-o-matic/
|
5 |
Tags: collapse, expand, collapsible, expandable, content, shortcode, hidden, jQuery, javascript, twinpictures
|
6 |
Requires at least: 2.8
|
7 |
+
Tested up to: 3.3
|
8 |
+
Stable tag: 1.3.11
|
9 |
|
10 |
Collapse-O-Matic adds an `[expand]` shortcode that wraps any object or content--including other shortcodes--into a lovely jQuery collapsible div.
|
11 |
|
44 |
|
45 |
== Changelog ==
|
46 |
|
47 |
+
= 1.3.11 =
|
48 |
+
* Added excerpt feature and all related attributes.
|
49 |
+
|
50 |
= 1.3.10 =
|
51 |
* Swaptitle system rebuilt to support images and cufon.
|
52 |
* Updated CSS the over generalized names close and hover to more plug-in specific colomat-close and colomat-hover
|
104 |
* The plug-in came to be.
|
105 |
|
106 |
== Upgrade Notice ==
|
107 |
+
= 1.3.11 =
|
108 |
+
Added excerpt feature that allows a juicy bit of nibble text to be displayed above and below the trigger text—as well as below the target text.
|
109 |
|
110 |
= 1.3.10 =
|
111 |
Rebuilt swaptitle to support images and cufon text. Change CSS names to be more plug-in specific.
|
style.css
CHANGED
@@ -14,16 +14,14 @@
|
|
14 |
.colomat-close {
|
15 |
background-image: url(images/arrow-up.png);
|
16 |
}
|
17 |
-
.collapseomatic_content {
|
18 |
margin-top: 0px;
|
19 |
margin-left: 16px;
|
20 |
padding: 0px;
|
21 |
}
|
22 |
-
|
23 |
.collapseall, .expandall {
|
24 |
cursor: pointer;
|
25 |
}
|
26 |
-
|
27 |
.collapseall:hover, .expandall:hover {
|
28 |
text-decoration: underline;
|
29 |
-
}
|
14 |
.colomat-close {
|
15 |
background-image: url(images/arrow-up.png);
|
16 |
}
|
17 |
+
.collapseomatic_excerpt, .collapseomatic_content {
|
18 |
margin-top: 0px;
|
19 |
margin-left: 16px;
|
20 |
padding: 0px;
|
21 |
}
|
|
|
22 |
.collapseall, .expandall {
|
23 |
cursor: pointer;
|
24 |
}
|
|
|
25 |
.collapseall:hover, .expandall:hover {
|
26 |
text-decoration: underline;
|
27 |
+
}
|