Archive Pro Matic Highlight Class

Introducing a new attribute for Archive-Pro-Matic: highlight
Highlight accepts the following values:

  • current-year
  • active-year

Assigning ‘current-year’ as the value of the highlight attribute will add a current-year class to the current year in the archive list. Assigning ‘active-year’ would only be assigned to the archive list when placed on an archive page.

Demos

We have added a bit of css to highlight each of the classes:

 .current-year {
    border-left: 2px solid red;
 }

.active-year {
     border-left: 2px solid blue;
 }

current-year

Assigning ‘current-year’ as the value of the highlight attribute will add a current-year class to the current year in the list:

[archives type="yearly" cat_id="4" limit="5" highlight="current-year"/]

active-year

Assigning ‘active-year’ would only be used on the archive page itself. To see this in action, first visit the an archive page, say 2014 and on that page place an archive list using the sidebar widget or following shortcode.

[archives type="yearly" cat_id="4" limit="5" highlight="active-year"/]

Format: Option

Of course this also needs to work with drop downs.

[archives type="yearly" format="option" highlight="active-year"/]

Collapse Commander Templates

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]

Trigger Text
This is a test using template number 1885

Example using cid:

[expand cid="2039"/]

Alt Test

This is a test of the alt tag in a expand element

Expand Trig:

I’m a little donkey

Expand Targ:

short and stout
short and stout
Stuck in a manhole cover until someone pulled me out.