__CLASS__, 'description' => __('Displays a menubar.','comicpress') ); $this->WP_Widget(__CLASS__, __('Comicpress Menubar','comicpress'), $widget_ops); } } function comicpress_menubar() { global $comicpress_options; if (comicpress_check_child_file('menubar') == false) { if (file_exists(get_stylesheet_directory() . '/custom-menubar.php')) { include(get_stylesheet_directory() . '/custom-menubar.php'); } else { ?>
comicpress_menubar(); echo $after_widget; } function update($new_instance, $old_instance) { $instance = $old_instance; $instance['title'] = strip_tags($new_instance['title']); return $instance; } function form($instance) { $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); $title = strip_tags($instance['title']); ?>