Author URI: http://www.accusoft.com/ Version: 1.6 License: GPL2 */ include_once('acsviewer-functions.php'); register_activation_hook( __FILE__, 'acsviewer_plugin_activate' ); function acsviewer_plugin_activate() { } add_action('admin_notices', 'acsviewer_admin_notices'); function acsviewer_admin_notices() { } register_deactivation_hook(__FILE__, 'acsviewer_plugin_deactivate'); function acsviewer_plugin_deactivate() { } function acsviewer_getdocument($atts) { $licenseKey = get_option('licenseKey'); extract(shortcode_atts(array( 'key' => '', 'document' => '', 'type' => '', 'width' => '', 'height' => '', 'print' => '', 'color' => '', 'animtype' => '', 'animduration' => '', 'animspeed' => '', 'automatic' => '', 'showcontrols' => '', 'centercontrols' => '', 'keyboardnav' => '', 'hoverpause' => '' ), $atts)); $integration = "wordpress"; if(!empty($licenseKey)) { $key = $licenseKey; } if (strcmp($type,"slideshow") != 0) { $viewerCode = "//connect.ajaxdocumentviewer.com/?key=".$key."&viewertype=".$type."&document=".$document."&viewerheight=".$height."&viewerwidth=".$width."&printButton=".$print."&toolbarColor=".$color."&integration=".$integration; $iframeWidth = $width + 20; $iframeHeight = $height + 40; } else { $viewerCode = "//connect.ajaxdocumentviewer.com/?key=".$key."&viewertype=".$type."&document=".$document."&viewerheight=".$height."&viewerwidth=".$width."&animtype=".$animtype."&animduration=".$animduration."&animspeed=".$animspeed."&automatic=".$automatic."&showcontrols=".$showcontrols."¢ercontrols=".$centercontrols."&keyboardnav=".$keyboardnav."&hoverpause=".$hoverpause."&integration=".$integration; $iframeWidth = $width + 20; $iframeHeight = $height + 20; } if ($type == "flash" && $width < 650) { $code = "