init(); $comicpress_admin = new ComicPressAdmin(); $comicpress_admin->init(); $comicpress_admin->handle_update(); $comicpress_filters = new ComicPressFilters(); $comicpress_filters->init(); $layouts = $comicpress->get_layout_choices(); if (isset($layouts[$comicpress->comicpress_options['layout']])) { if (isset($layouts[$comicpress->comicpress_options['layout']]['Sidebars'])) { foreach (explode(",", $layouts[$comicpress->comicpress_options['layout']]['Sidebars']) as $sidebar) { $sidebar = trim($sidebar); register_sidebar($sidebar); } } } } /** * Display the list of Storyline categories. */ function comicpress_list_storyline_categories($args = "") { global $category_tree; $defaults = array( 'style' => 'list', 'title_li' => __('Storyline') ); $r = wp_parse_args($args, $defaults); extract($r); $categories_by_id = get_all_category_objects_by_id(); $output = ''; if ($style == "list") { $output .= '
  • '; } if ($title_li && ($style == "list")) { $output .= $title_li; } if ($style == "list") { $output .= "
  • ", $current_depth); } if ($style == "list") { $output .= ""; } echo $output; } ?>