function snp_run_camp($POST_META) { global $snp_ignore_cookies, $wp_scripts; $snp_ignore_cookies = true; snp_run_popup($POST_META['snp_camp_popup'], $POST_META['snp_camp_use']); echo '<!DOCTYPE html>'; echo '<html><head>'; echo '<style> body, html { height: 100%; width: 100%;} '; echo 'body { display: block;margin: 0;padding: 0;} </style>'; snp_init(); //wp_head(); wp_enqueue_scripts(); foreach ($wp_scripts->registered as $k => $v) { //print_r($v); if (!in_array($v->handle, array('jquery', 'jquery-core', 'fancybox2', 'jquery-ui-core', 'jquery-migrate', 'js-ninjapopups', 'jquery-np-cookie', 'jquery-np-placeholder'))) { wp_deregister_script($v->handle); } } wp_print_styles(); print_admin_styles(); wp_print_head_scripts(); echo '</head><body>'; echo '<iframe src="' . $POST_META['snp_camp_dest_url'] . '" style="width: 100%; height: 100%; border: 0; padding: 0; margin: 0; line-height: 0; display: block;"></iframe>'; snp_footer(); wp_print_footer_scripts(); echo '</body></html>'; die(''); }
wp_enqueue_script('jquery-ui-dialog'); wp_enqueue_script('jquery-ui-draggable'); wp_enqueue_script('jquery-ui-resizable'); wp_enqueue_script('jquery-ui-droppable'); wp_enqueue_script('jquery-ui-menu'); wp_enqueue_script('jquery-ui-slider'); wp_enqueue_script('jquery-ui-tooltip'); wp_enqueue_script('jquery-ui-accordion'); wp_enqueue_script('jquery-ui-selectmenu'); wp_enqueue_script('jquery-effects-core'); } else { //old versions of WordPress have an obsolete jqueryui, add our own wp_enqueue_script('jquery-ui-custom', plugins_url("jquery/jquery-ui.min.js?{$this->plugindata['Version']}", dirname(__FILE__)), 'jquery'); } //print scripts wp_print_head_scripts(); wp_print_footer_scripts(); //get version data $version = $this->version_check(); $promo = $this->promo_check(); ?> <script type="text/javascript"> $ = jQuery; ZedityLang = '<?php echo substr(get_bloginfo('language'), 0, 2); ?> '; </script> <link rel="stylesheet" href="<?php echo plugins_url("zedity/zedity.min.css?{$this->plugindata['Version']}", dirname(__FILE__));