50, "showlabels" => true, "showcredits" => true, "animate" => true, "mode" => "horizontal", "leftsrc" => "", "leftlabel" => "", "leftcredit" => "", "rightsrc" => "", "rightlabel" => "", "rightcredit" => "", ], $atts ); return << EOT; } static function init() { wp_register_script( "juxtapose", "https://cdn.jsdelivr.net/npm/juxtaposejs/build/js/juxtapose.min.js", null, null, true ); } static function wp_footer() { // Should be using wp_enqueue_style, but it can't be used to add styles to the footer. // Yeah i know, inside is not valid HTML. // But i don't want to load this css when there's not need to. // SUE ME. if (self::$shortcode_rendered) { echo ''; } } } Juxtapose::initialize();