function bpln_add_js() { if (!is_user_logged_in() || is_admin() && bpln_disable_in_dashboard()) { return; } $plugin_url = plugin_dir_url(__FILE__); // wp_enqueue_script("achtung",$plugin_url."notice/ui.achtung.js",array("jquery")); wp_enqueue_script("bpln_js", $plugin_url . "bpln.js", array("jquery", "json2")); }
/** * Load CSS file * * @return type */ public function load_css() { if (!$this->is_active()) { return; } if (!is_user_logged_in() || is_admin() && bpln_disable_in_dashboard()) { return; } wp_register_style('achtung_css', $this->url . 'assets/vendors/achtung/ui.achtung.css'); wp_enqueue_style('achtung_css'); }