Dynamic raised value
-
Thanks for this plugin, I realy like it!
I have one feature request, can you add dynamic “raised” value?I want the raised value to be a shortcode.
The “therm_shortcode.php” file needs to have this code added on line 92:
if (!is_numeric(str_replace(",", ".", $atts['raised']))) { $shortcode = "[".strval($atts['raised'])."]"; $atts['raised'] = do_shortcode( $shortcode); }so that it looks like this:
//raised value if ($atts['raised'] == '' && !empty($options['raised_string'])){ $thermProperties['raised'] = $options['raised_string']; } else{ if (!is_numeric(str_replace(",", ".", $atts['raised']))) { $shortcode = "[".strval($atts['raised'])."]"; $atts['raised'] = do_shortcode( $shortcode); } $thermProperties['raised'] = strval($atts['raised']); }I use this to be able to use a shortcode like this:
[thermometer raised="amount_raised" target=3750 height=20%]Where amount_raised is a shortcode.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
The topic ‘Dynamic raised value’ is closed to new replies.