API_KEY, 'API_BASE' => API_BASE, 'USER_API_KEY' => get_option('MySnazzyAPIKey', null))); //Include the node modules $node_modules = array( 'query-string' . _DS . 'query-string.js', 'mustache' . _DS . 'mustache.min.js' ); foreach((array)$node_modules as $index => $node_module){ wp_enqueue_script("admin-node-module-$index", resourceURL('node_modules' . _DS . $node_module), $deps = array(), $ver = SNAZZY_VERSION_NUMBER); } //Include the bower components $bower_components = array( 'history.js' . _DS . 'scripts' . _DS . 'bundled' . _DS . 'html5' . _DS . 'native.history.js' ); foreach((array)$bower_components as $index => $bower_component){ wp_enqueue_script("admin-bower-component-$index", resourceURL('bower_components' . _DS . $bower_component), $deps = array(), $ver = SNAZZY_VERSION_NUMBER); } //Include additional javascript $additional_js = array('jquery.base64.min.js'); foreach((array)$additional_js as $index => $js){ wp_enqueue_script("additional-js-$index", resourceURL('additional_js' . _DS . $js), $deps = array(), $ver = SNAZZY_VERSION_NUMBER); } //Include the css wp_enqueue_style('admin-snazzymaps-css', plugins_url('index.css', __FILE__), $deps = array(), $ver = SNAZZY_VERSION_NUMBER); } function admin_add_custom_content(){ $active_tab = isset($_GET['tab']) ? $_GET['tab'] : '0'; if(isset($_GET['welcome'])) { update_option('HideWelcomeMessage', $_GET['welcome'] == 'hide'); } ?>