__CLASS__, 'description' => __('Allow the user to bookmark a page and then jump to it upon return.','comicpress') ); $this->WP_Widget(__CLASS__, __('ComicPress Bookmark','comicpress'), $widget_ops); } } function init() { add_action('wp_head', array(&$this, 'wp_head')); } function is_active() { add_action('template_redirect', array(&$this, 'template_redirect')); } function template_redirect() { wp_enqueue_script('prototype'); wp_enqueue_script('cookiejar', get_template_directory_uri() . '/js/cookiejar.js', array('prototype')); wp_enqueue_script('bookmark', get_template_directory_uri() . '/js/bookmark.js', array('prototype', 'cookiejar')); } function wp_head() { ?>