diff --git a/juxtaposejs.php b/juxtaposejs.php new file mode 100644 index 0000000..79709b4 --- /dev/null +++ b/juxtaposejs.php @@ -0,0 +1,68 @@ + 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', "//s3.amazonaws.com/cdn.knightlab.com/libs/juxtapose/latest/js/juxtapose.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. + echo ''; + } + +} + +Juxtapose::initialize(); \ No newline at end of file