Here it is:
[tminus cid="1031"]
A Pluginoven Test Site
Here it is:
[tminus cid="1031"]
Test of the new Template feature in Collapse Commander. Template 1885 should expand the target above the trigger.
[expand title="Trigger Text" template_id="1885"]This is a test using template number 1885[/expand]
Example using cid:
[expand cid="2039"/]
Alt Test
Expand Trig:
Expand Targ:
Here is a simple example of how you can create nested expand elements using the shortcode:
[expand title="state1" id="state1"]
[expandsub1 title="city1" id="city1"]bar1
bar2[/expandsub1]
[expandsub1 title="city2" id="city2"]bar3
bar4[/expandsub1]
[/expand]
Here is a similar example of nested expand elements using the Roll-Your-Own method:
<div class="collapseomatic" id="state2" title="state2">state2</div>
<div id="target-state2" class="collapseomatic_content " style="display: none;">
<div class="collapseomatic" id="city3" title="city3">city3</div><div id="target-city3" class="collapseomatic_content " style="display: none;">bar5<br>
bar6</div>
<div class="collapseomatic" id="city4" title="city4">city4</div><div id="target-city4" class="collapseomatic_content " style="display: none;">bar7<br>
bar8</div>
</div>
~~~
Here is a four level deep nested test using shortcodes:
Agile Team Accelerator
Expandsub4
Embedded Agile Coaching
Technical Agile Coaching
Executive Session for Agile
Introducing ‘togglegroup’ a new attribute that can be used instead of rel and highlander grouping for collapseall/expandall/setall toggles.
Here is a list of expand elements with nested expansub elements:
[expand title="main 1" rel="main-highlander" togglegroup="group_1"] This is the first main section and it has multiple sub sections:
[expandsub1 title="sub a" rel="sub-highlander" togglegroup="group_1"]sub section a[/expandsub1]
[expandsub1 title="sub b" rel="sub-highlander" togglegroup="group_1"]sub section b[/expandsub1]
[expandsub1 title="sub c" rel="sub-highlander" togglegroup="group_1"]sub section b[/expandsub1]
[/expand]
[expand title="main 2" rel="main-highlander" togglegroup="group_1"] This is the second main section and it has multiple sub sections:
[expandsub1 title="sub d" rel="sub-highlander" togglegroup="group_1"]sub section d[/expandsub1]
[expandsub1 title="sub e" rel="sub-highlander" togglegroup="group_1"]sub section e[/expandsub1]
[expandsub1 title="sub f" rel="sub-highlander" togglegroup="group_1"]sub section f[/expandsub1]
[/expand]
And here is a list of the different types of expandall/collapseall and toggle triggers that may be used.
[expand title="Expand All" swaptitle="Collapse All" trigclass="setall"/]
[expand title="Expand Main" swaptitle="Collapse Main" trigclass="setall" rel="main-highlander"/]
[expand title="Expand Sub" swaptitle="Collapse Sub" trigclass="setall" rel="sub-highlander"/]
[expand title="Expand Group 1" swaptitle="Collapse Group 1" trigclass="setall" togglegroup="group_1" /]
<span class="expandall">Expand All</span>
<span class="collapseall">Collapse All</span>
<span class="collapseomatic setall noarrow" id="my_toggle_id" title="Expand All">Expand All Toggle</span>
<span id="swap-my_toggle_id" class="colomat-swap" style="display:none;">Collapse All Toggle</span>
<span class="collapseomatic setall noarrow" id="my_other_toggle_id" title="Expand Group 1" data-togglegroup="group_1">Expand Group 1 Toggle</span>
<span id="swap-my_other_toggle_id" class="colomat-swap" style="display:none;">Collapse Group 1 Toggle</span>
Collapse All
Expand All Toggle
Expand Group 1 Toggle
This is an expand element is not grouped with anything.
the alt attribute is causing the html to not validate properly. Here is a test to ensure it does not show up anymore:
[expand title="Expand all" swaptitle="Swap all" trigclass="setall" rel="main" notitle="true"]this is a test[/expand]
With SwapAlt:
[expand title="Monkey" alt="click for donkey" swaptitle="Donkey" swapalt="click for monkey" notitle="true"]this is a test[/expand]
One of the more common support issues with Collapse-O-Matic are related to unwanted spacing between collapse elements. While there are a number of reasons why this happens, the most common issues are extra ‘p’ or ‘br’ tags being added due to the strange way the wpautop filter. Often the spacing issue can be resolved by wrapping the expand elements in a div, removing any extra spacing or hard-returns between the expand elements, adjusting css, using different expand html elements (such as the ‘li’ element), or using the Collapse Commander add-on.
Example of a simple list using Collapse-O-Matic:
[expand title="Item One"]
This is some special text to display about item one
[/expand]
[expand title="Item Two"]
This is some special text about item two to display
[/expand]
[expand title="Item Three"]
Item three also has some special text to be displayed
[/expand]
Example using UL and LI elements:
<ul>
[expand title="Item One" tag="li"]
This is some special text to display about item one
[/expand]
[expand title="Item Two" tag="li"]
This is some special text about item two to display
[/expand]
[expand title="Item Three" tag="li"]
Item three also has some special text to be displayed
[/expand]
</ul>
Example of a list using Collapse-Commander
[expand cid="1765"/]
[expand cid="1766"/]
[expand cid="1767"/]
example of internal content list without using filter attribute:
[expand title="Standard"]
This is some text on the first line
This is some text on the second line
This is some text on the third line
[/expand]
example of internal content list using filter attribute:
[expand title="Filtered" filter="true"]
This is some text on the first line
This is some text on the second line
This is some text on the third line
[/expand]
This is some text on the first line
This is some text on the second line
This is some text on the third line
The maptastic class has two uses.
In this post we focus on the primary use. To demonstrate this, we are going to add a google map in a collapse element without using the maptastic class. This is a standard google map embed direct form maps.google.com:
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2370.176761299221!2d9.967689000000014!3d53.55461200000002!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47b18f6cbedab441%3A0x6678f70133d32916!2sMillerntor-Stadion!5e0!3m2!1sen!2s!4v1420013219192" width="800" height="600" frameborder="0" style="border:0"></iframe>
That works fine, because the map has iframe has a specific width and height assigned.
Now we will assign a map using a google_maps shortcode and also assign the target a class of maptastic. maptastic is a class that is part of the collapse plugin:
.maptastic {
position: absolute !important;
left: -10000px !important;
display:block !important;
max-width: 9999px;
}
All together, the complete shortcode will look like this:
(this is the one we need to fix… it should work with just maptastic)
[expand title="St. Pauli" targclass="maptastic"][google_maps id="1875"][/expand]
See how the map is not the correct width? But once we resize the window it will then display correctly.
Now we are going to create a new class for our target that gives it a width of 100%
.mapclass {
width: 100%;
}
and assign it to the target as well:
[expand title="St. Pauli" targclass="maptastic mapclass"][google_maps id="1875"][/expand]
This is the map without being placed in an expand element:
[[google_maps id="1875"]]
[google_maps id=”1875″]
This is w/o using maptastic and just using expand=”true”:
[expand title="St. Pauli" expanded="true"][google_maps id="1875"][/expand]
Everything is fine. OK… we need to tweak maptastic.
This is a test of the new slide effect for that has been added to Collapse-Pro-Matic version 1.1.6.
For this to work on ALL expand elements, simply set the Animation Effect to Directional Slide in Collapse-Pro-Matic options page. To set only a single expand element using the shortcode, the animation_effect attribute set to ‘toggle’:
[expand title="Trigger" animation_effect="toggle" direction="left"]Target Content[/expand]
To best appreciate how this effect works, it would be best to create a target with a fixed width and height. Using the roll-your-own method the attributes are assigned using data-* format. Here is an example that wraps a fixed size target element in a slightly larger container:
<div class="collapseomatic" id="hortest" title="Trigger" data-animation-effect="toggle" data-direction="left">Trigger One</div>
<div style="width: 400px; height: 400px; border: 1px dotted #ccc;">
<div id="target-hortest" class="collapseomatic_content" style="width: 300px; Height: 300px; background: #ccc;">Target Content</div>
</div>
Collapse-Pro-Mtic 1.1.6 includes three new attributes that override the global default settings, allowing single expand elements to have there own animation-effect, distance and direction attributes. Using the roll-your-own method they defined using the data-* attribute like so:
<div class="collapseomatic" id="hortesthree" title="Trigger" data-animation-effect="toggle" data-direction="right">Trigger Three</div>
Anne asks: Is there a way to use this plugin with image maps?
And by ‘this plugin’ she means Collapse-O-Matic. Well, Anne, that’s a good question! Let’s see what we can figure out here. First we need an image with an image map. We’ll pick something easy… like this:
Now clearly we will need to use the roll-your-own method to assign the triggers and target elements. So each of the image map area elements will need the collapseomatic
class assigned. And since we do not want arrows assigned, we will also give each area element the class of noarrow
.
<area id="noteaten" class="collapseomatic noarrow" shape="poly" coords="x, y, z, n" />
Now we just need to add in our target elements:
<div id="target-noteaten" class="collapseomatic_content ">Target Content</div>
Standard Use of Collapse Commander’s expand_trig and expand_targ shortcodes:
This is the trigger
[expand_trig cid="1537"]
This is the target:
[expand_targ cid="1537"]
Note the above Collapse-Commander expand element had a default ID assigned. Currently, if a default ID has been assigned, the ID can-not be override with a shortcode attribute. This would not work:
[expand_trig cid="1537" id="donk"]
[expand_targ cid="1537" id="donk"]