Collapse-O-Matic Inline Trigger with Block Target

Shortcode

This is an example of some text that has a trigger placed inline, meaning that the trigger does not break the flow of the text. However, when this triggerhidden content is clicked and the target is expanded, the target would break the paragraph as a display: block element. Naturally, when the element is collapsed, the inline flow returns.

...However, when [expand tag="span" title="this trigger" targtag="span"]hidden content[/expand] is clicked...

The Roll-Your-Own Method

This is an example of some text that has a trigger placed inline, using the roll-your-own method. However, when this trigger hidden content is clicked and the target is expanded, the target would break the paragraph as a display: block element. Naturally, when the element is collapsed, the inline flow returns.

...However, when <span title="this trigger" class="collapseomatic" id="testme2">this trigger</span><span class="collapseomatic_content" id="target-testme2">hidden content</span>
is clicked...

Limited Time Offer Demo

string(10) "target is:" int(1679703846) string(14) "target is now:" int(2819)

This is an example of how a limited time offer would work in conjunction with content in a collapse-o-matic expand element.

This demo uses T(-) Countdown Control with a cookie that tracks when the offer expires for each unique visitor. Once the countdown reaches zero, T(-) Countdown Events will remove any special offer items.

For this demo, we’ll set the special timer for just two minutes. The offer will then be removed for 24 hours, and then after the 24 hours are past, the offer will reset.

Wk.
0
0
Tage
0
0
Hours
0
0
Minutes
0
2
Seconds
0
0
Details
this is where the details of the special are presented

Yearly Countdown Omit Weeks

string(10) "target is:" int(1700069700) string(14) "target is now:" int(1031) string(10) "target is:" int(4102444800) string(14) "target is now:" string(16) "id-641e309e5fcf8"

I am a normal recurring countdown

Wk.
3
3
Tage
0
4
Hours
1
7
Minutes
1
2
Seconds
5
4

Just look at me go

Now with smart AjaxTime

Wk.
4
0
0
5
Tage
0
5
Hours
2
3
Minutes
3
7
Seconds
5
4

It’s Business Time!

string(10) "target is:" int(1679703726) string(14) "target is now:" int(2753)

This is a test of the new T(-) Opening Hours add-on plugin for T(-) Countdown Control.
It will allow a countdown schedule to be defined by referencing a weekly opening schedule.

Wk.
0
0
Tage
0
0
Hours
0
0
Minutes
0
0
Seconds
0
0

T(-) Countdown Control – Separating the Time Units

string(10) "target is:" int(1679703900) string(14) "target is now:" string(7) "explode"
Fatal error: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /var/www/vhosts/spacedonkey.de/httpdocs/wp-content/plugins/t-countdown-control/t-countdown-control.php:445 Stack trace: #0 /var/www/vhosts/spacedonkey.de/httpdocs/wp-content/plugins/t-countdown-control/t-countdown-control.php(445): date() #1 /var/www/vhosts/spacedonkey.de/httpdocs/wp-includes/shortcodes.php(355): WP_TMinusCountdown->shortcode_digit() #2 [internal function]: do_shortcode_tag() #3 /var/www/vhosts/spacedonkey.de/httpdocs/wp-includes/shortcodes.php(227): preg_replace_callback() #4 /var/www/vhosts/spacedonkey.de/httpdocs/wp-includes/class-wp-hook.php(308): do_shortcode() #5 /var/www/vhosts/spacedonkey.de/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters() #6 /var/www/vhosts/spacedonkey.de/httpdocs/wp-includes/post-template.php(255): apply_filters() #7 /var/www/vhosts/spacedonkey.de/httpdocs/wp-content/themes/twentyseventeen/template-parts/post/content.php(58): the_content() #8 /var/www/vhosts/spacedonkey.de/httpdocs/wp-includes/template.php(785): require('...') #9 /var/www/vhosts/spacedonkey.de/httpdocs/wp-includes/template.php(718): load_template() #10 /var/www/vhosts/spacedonkey.de/httpdocs/wp-includes/general-template.php(204): locate_template() #11 /var/www/vhosts/spacedonkey.de/httpdocs/wp-content/themes/twentyseventeen/archive.php(43): get_template_part() #12 /var/www/vhosts/spacedonkey.de/httpdocs/wp-includes/template-loader.php(106): include('...') #13 /var/www/vhosts/spacedonkey.de/httpdocs/wp-blog-header.php(19): require_once('...') #14 /var/www/vhosts/spacedonkey.de/httpdocs/index.php(17): require('...') #15 {main} thrown in /var/www/vhosts/spacedonkey.de/httpdocs/wp-content/plugins/t-countdown-control/t-countdown-control.php on line 445