From 5ae038f75b7400cf8f4dfd817127b92f6fdf35ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Bakkeli?= Date: Mon, 27 Jun 2011 14:09:09 +0200 Subject: [PATCH] kommenterte ut noen script som kanskje andre bruker, la de inn igjen --- neuf-events.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/neuf-events.php b/neuf-events.php index f822c32..b6c01f0 100644 --- a/neuf-events.php +++ b/neuf-events.php @@ -74,8 +74,8 @@ if (!class_exists("NeufEvents")) { wp_register_script('custom-jqui', plugins_url("/neuf-events/script/jquery-ui-1.8.11.custom.min.js", dirname(__FILE__))); // form validation: http://docs.jquery.com/Plugins/Validation#API_Documentation - /* wp_register_script('formvalidation', plugins_url("/neuf-events/script/jquery.validate.min.js", dirname(__FILE__))); - wp_register_script('validation_rules', plugins_url("/neuf-events/script/validation_rules.js", dirname(__FILE__)));*/ + wp_register_script('formvalidation', plugins_url("/neuf-events/script/jquery.validate.min.js", dirname(__FILE__))); + wp_register_script('validation_rules', plugins_url("/neuf-events/script/validation_rules.js", dirname(__FILE__))); wp_enqueue_style('timecss'); wp_enqueue_script('jquery'); @@ -352,8 +352,10 @@ if ( isset($neuf_event_object)){ */ add_action( 'init', 'neuf_events_post_type'); add_action( 'save_post', 'neuf_events_save_info'); + + add_action( 'publish_neuf_events', 'neuf_events_publish'); + add_shortcode( 'neuf-events-program', 'neuf_events_program'); - } ?>