Quick test to demonstrate how to use the tag and css to control the look of a trigger.
The Shortcode
[expand title="trigger" tag="h4"]hidden target content[/expand]
The CSS
h4.collapseomatic {
color: blue;
}
The Results
trigger
hidden target content
The trick to keeping the excerpt in line with the trigger text, is simply to use the excerpttag attribute to have the excerpt use a span tag like so:
[expand title="trigger text" tag="span" excerpt="excerpt" excerpttag="span"]target text[/expand]
trigger textexcerpttarget text
This is a test of using print-pro-matic with the LaTeX2HTML plugin.
Hello
[expand title="Fiction" rel="fiction" swaptitle="Is like non-non-fiction"]
[expandsub1 title="Star Wars" rel="submenu-highlander" swaptitle="Hyperspeed" expanded="true"]Target Content[/expandsub1]
[expandsub1 title="Star Trek" rel="submenu-highlander" swaptitle="Warpspeed"]Target Content[/expandsub1]
[/expand]
Fiction
Is like non-non-fiction
Star Wars
Hyperspeed
Target Content
Star Trek
Warpspeed
Target Content
string(10) "target is:"
int(1514764800)
string(14) "target is now:"
string(16) "id-647c484335cf2"
Test of a new system of recalculating the remaining time to make sure timers stay in sync.
string(10) "target is:"
int(1685873880)
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