This is the test page for a new plugin Isotope-O-Matic. The plugin will drop in the Isotope library to create fancy-schmancy gallery thing-a-ma-jigs
Here are some images in a div:
A Pluginoven Test Site
This is the test page for a new plugin Isotope-O-Matic. The plugin will drop in the Isotope library to create fancy-schmancy gallery thing-a-ma-jigs
Here are some images in a div:
In the swiss canton of Basel this donkey was stuck in a asshole manhole. The brave firefighters saved him, so a happy ending for all. Full story and pictures available at nydailynews.
Here is an example of how to add ‘extra’ sub li’s to a list element using the jedi powers of collapse-o-matic:
The basic idea is this:
<ul>
<li>your thing with a link
<ul>
<li>this is the super cool extra info</li>
</ul>
</li>
<li>some other thing</li>
</ul>
So now we just need to add the roll-your-own collapse-o-matic elements:
<ul>
<li>your thing with a <span class="collapseomatic" id="linkone">link</span><ul><li id="target-linkone" class="collapseomatic_content">this is the super cool extra info</li></ul></li>
<li>some other thing</li>
</ul>
and BLAMO!
Collapse-O-Matic is a WordPress plugin. But what if you wanted to use it on a static HTML page?
Well, that just might work.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
You will need to download the latest version of Collapse-O-Matic and then find and upload just the collapse.js file. It’s located in the js sub-folder.
<script src="http://yourdomain.com/path_to_js/collapse.js"></script>
Now that you have all the jQuery scripts installed, you can simply follow the standard roll-your-own method to create the expand elements.
Good luck!
[expand title="Trigger Text" expand_on="is_search"]Target Text[/expand]
This new conditional expand feature is based on a request by user thisimnot. We introduce a new attribute called expand_on
that accepts a comma separated list of WordPress Conditional Tags that will auto-expand the element if true.
For example. The following element should be displayed as collapsed when viewing the front (blog) page, but when viewing the single post or the search results page it will be shown as expanded.
[expand title="Trigger Text" expand_on="is_single, is_search"]Target Text[/expand]
To create a custom conditional that checks for a custom query_var, for example, is_hilite:
Step 1: Place the following in your child theme’s function.php file:
//Add query vars
add_filter( 'query_vars', 'my_query_vars' );
function my_query_vars( $qvars ) {
$qvars[] = 'hilite';
return $qvars;
}
//Add custom hilite conditional
function is_hilite(){
if(get_query_var( 'hilite')){
return true;
}
return false;
}
The shortcode:
[expand title="Trigger Text" expand_on="is_hilite"]Target Text[/expand]
Example:
Here, at the very bottom of this page is a little collapse element to test the internal WordPress Search.
This is an expand element from Collapse-O-Matic:
[expand title='trigger']target[/expand]
and this is an example of a link to an image that should pop up using fancy box:
Here are the responsive countdown styles.
Normally, expand elements display the arrow on the left:
[expand title="trigger"]target[/expand]
However, we can move the arrow all the way to the right by assigning the the trigger the arrowright
class:
[expand title="trigger" trigclass="arrowright"]target[/expand]
We can move the trigger closer to the text by changing the width of the trigger element using css:
CSS
.shorty {
width: 70px;
}
[expand title="trigger" trigclass="arrowright shorty"]target[/expand]
What if we want both left and right arrows? We first start with a roll-your-own expand element with no arrows by assigning the noarrow
class to the trigger:
<div class="collapseomatic noarrow" id="my_double_arrow_01">trigger</div>
<div id="target-my_double_arrow_01" class="collapseomatic_content">target</div>
Then we manually upload the arrows we want to use and place them in the title:
<div class="collapseomatic noarrow" id="my_double_arrow_02"><img src="https://spacedonkey.de/wp-content/uploads/2014/10/arrow-down.png" width="12" height="14" /> trigger <img src="https://spacedonkey.de/wp-content/uploads/2014/10/arrow-down.png" width="12" height="14" /></div>
<div id="target-my_double_arrow_02" class="collapseomatic_content">target</div>
Finally we need to add a swap title element for the close arrows:
<div class="collapseomatic noarrow" id="my_double_arrow_03"><img src="https://spacedonkey.de/wp-content/uploads/2014/10/arrow-down.png" width="12" height="14" /> trigger <img src="https://spacedonkey.de/wp-content/uploads/2014/10/arrow-down.png" width="12" height="14" /></div>
<div id="swap-my_double_arrow_03" alt="" class="colomat-swap" style="display:none;"><img src="https://spacedonkey.de/wp-content/uploads/2014/10/arrow-up.png" width="12" height="14" /> target <img src="https://spacedonkey.de/wp-content/uploads/2014/10/arrow-up.png" width="12" height="14" /></div>
<div id="target-my_double_arrow_03" class="collapseomatic_content">target</div>
This is a test of the Collapse Command stystem:
[expand cid="1398"/]