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); } } } } function comicpress_init() { global $post, $comicpress; if (!empty($post)) { if (in_comic_category() && $comicpress->is_multicomic() && !is_index()) { $comicpress->setup_multicomic_partial_paths($post->ID); } } $comicpress->partial_paths[] = get_template_directory() . '/partials'; } function comicpress_get_header() { get_header(); } function include_partial($partials = '') { global $comicpress, $post, $nav_comics; if (!is_array($partials)) { $partials = func_get_args(); } $content = $target = null; $target = $comicpress->get_partial_path($partials); if ($target !== false) { ob_start(); include($target); $content = ob_get_clean(); } $target = str_replace(".inc", "", $target); if (!empty($target) && !empty($content)) { echo apply_filters("comicpress_partial", $content, $target); } } function in_comic_category() { global $post, $comicpress; } /** * 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 .= '