Collapse-O-Matic - Version 1.3.2

Version Description

Download this release

Release Info

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

Code changes from version 1.3.1 to 1.3.2

Files changed (3) hide show
  1. collapse-o-matic.php +9 -3
  2. readme.txt +8 -2
  3. style.css +8 -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.1
7
  Author: Twinpictures
8
  Author URI: http://www.twinpictures.de
9
  License: GPL2
@@ -50,7 +50,8 @@ function collapsTronic($atts, $content=null){
50
  'tag' => 'span',
51
  'trigclass' => '',
52
  'targclass' => '',
53
- 'rel' => ''
 
54
  ), $atts));
55
 
56
  $altatt = '';
@@ -62,6 +63,11 @@ function collapsTronic($atts, $content=null){
62
  if($rel){
63
  $relatt = 'rel="'.$rel.'"';
64
  }
 
 
 
 
 
65
  $link = '<'.$tag.' class="collapseomatic '.$trigclass.'" title="';
66
  if($alt){
67
  $link .= $alt;
@@ -70,7 +76,7 @@ function collapsTronic($atts, $content=null){
70
  $link .= $title;
71
  }
72
  $link .= '" id="'.$id.'" '.$relatt.' '.$altatt.'>'.$title.'</'.$tag.'>';
73
- $eDiv = '<div id="target-'.$id.'" style="display:none;" class="collapseomatic_content '.$targclass.'">'.do_shortcode($content).'</div>';
74
  return $link . $eDiv;
75
  }
76
 
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.2
7
  Author: Twinpictures
8
  Author URI: http://www.twinpictures.de
9
  License: GPL2
50
  'tag' => 'span',
51
  'trigclass' => '',
52
  'targclass' => '',
53
+ 'rel' => '',
54
+ 'expanded' => '',
55
  ), $atts));
56
 
57
  $altatt = '';
63
  if($rel){
64
  $relatt = 'rel="'.$rel.'"';
65
  }
66
+ $hstyle = 'style="display:none;"';
67
+ if($expanded){
68
+ $trigclass .= ' close';
69
+ $hstyle = '';
70
+ }
71
  $link = '<'.$tag.' class="collapseomatic '.$trigclass.'" title="';
72
  if($alt){
73
  $link .= $alt;
76
  $link .= $title;
77
  }
78
  $link .= '" id="'.$id.'" '.$relatt.' '.$altatt.'>'.$title.'</'.$tag.'>';
79
+ $eDiv = '<div id="target-'.$id.'" '.$hstyle.' class="collapseomatic_content '.$targclass.'">'.do_shortcode($content).'</div>';
80
  return $link . $eDiv;
81
  }
82
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ 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.1
8
- Stable tag: 1.3.1
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
 
@@ -19,12 +19,18 @@ Collapse-O-Matic adds an `[expand title="trigger text"]hidden content[/expand]`
19
  1. Activate the Plugin
20
  1. Add a the shortcode to your post like so: `[expand title=Displayed Title Goes Here]Hidden content goes here[/expand]`
21
  1. Test that the this plugin meets your demanding needs.
22
- 1. Tweek the CSS to match your flavor.
23
  1. Rate the plugin and verify if it works at wordpress.org.
24
  1. Leave a comment regarding bugs, feature request, cocktail recipes at http://www.twinpictures.de/jquery-collapse-o-matic-1-3/
25
 
26
  == Frequently Asked Questions ==
27
 
 
 
 
 
 
 
28
  = How does one use the shortcode, exactly? =
29
  A <a href='http://www.twinpictures.de/jquery-collapse-o-matic-1-3/'>complete listing of shortcode options</a> has been provided to answer this exact question.
30
 
5
  Tags: collapse, expand, collapsible, expandable, content, shortcode, hidden, jQuery, javascript, twinpictures
6
  Requires at least: 2.8
7
  Tested up to: 3.1
8
+ Stable tag: 1.3.2
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
 
19
  1. Activate the Plugin
20
  1. Add a the shortcode to your post like so: `[expand title=Displayed Title Goes Here]Hidden content goes here[/expand]`
21
  1. Test that the this plugin meets your demanding needs.
22
+ 1. Tweak the CSS to match your flavor.
23
  1. Rate the plugin and verify if it works at wordpress.org.
24
  1. Leave a comment regarding bugs, feature request, cocktail recipes at http://www.twinpictures.de/jquery-collapse-o-matic-1-3/
25
 
26
  == Frequently Asked Questions ==
27
 
28
+ = I am a Social Netwookiee, do you have a Facebook page? =
29
+ Yes, yes... <a href='http://www.facebook.com/twinpictures'>Twinpictures is on Facebook</a>.
30
+
31
+ = Does Twinpictures do the Twiter? =
32
+ Ah yes! <a href='twitter.com/switzerbaden'>@SwitzerBaden at Twitter</a> does the tweeting around here.
33
+
34
  = How does one use the shortcode, exactly? =
35
  A <a href='http://www.twinpictures.de/jquery-collapse-o-matic-1-3/'>complete listing of shortcode options</a> has been provided to answer this exact question.
36
 
style.css CHANGED
@@ -1,17 +1,21 @@
1
  .collapseomatic {
2
- background-image:url(images/arrow-down.png) !important;
3
- background-repeat:no-repeat;
4
  padding: 0 0 10px 16px;
5
  cursor: pointer;
6
  }
 
 
 
 
7
  .hover {
8
  text-decoration: underline;
9
  }
10
  .close {
11
- background-image:url(images/arrow-up.png) !important;
12
  }
13
  .collapseomatic_content {
14
- display: none;
15
  margin-top: 3px;
16
  margin-left: 16px;
 
17
  }
1
  .collapseomatic {
2
+ background-image: url(images/arrow-down.png) !important;
3
+ background-repeat: no-repeat;
4
  padding: 0 0 10px 16px;
5
  cursor: pointer;
6
  }
7
+ .arrowright {
8
+ background-position: top right;
9
+ padding: 0 16px 10px 0;
10
+ }
11
  .hover {
12
  text-decoration: underline;
13
  }
14
  .close {
15
+ background-image: url(images/arrow-up.png) !important;
16
  }
17
  .collapseomatic_content {
 
18
  margin-top: 3px;
19
  margin-left: 16px;
20
+ padding-bottom: 1px;
21
  }