diff --git a/comicpress-config.php b/comicpress-config.php index 5dc1e18..a51a7c8 100644 --- a/comicpress-config.php +++ b/comicpress-config.php @@ -10,10 +10,10 @@ $blogcat = "1"; $comic_folder = "comics"; //RSS COMIC FOLDER - the folder your comic files are in for the RSS feed (default "comics"). -$rss_comic_folder = "comics-rss"; +$rss_comic_folder = "comics"; //ARCHIVE COMIC FOLDER - the folder your comic files are in for your archive pages (default "comics"). -$archive_comic_folder = "comics-archive"; +$archive_comic_folder = "comics"; //ARCHIVE COMIC WIDTH - the width your comics will appear on archive or search results (default "380"). $archive_comic_width = "380"; diff --git a/functions.php b/functions.php index b34c033..3cea527 100644 --- a/functions.php +++ b/functions.php @@ -32,6 +32,15 @@ $comic_filename_filters['default'] = "{date}*.*"; // load all of the comic & non-comic category information add_action('init', 'get_all_comic_categories'); +add_action('init', 'comicpress_handle_options_changes'); +add_action('admin_menu', 'comicpress_add_options_menu'); +add_action('admin_notices', 'comicpress_admin_notices'); + +$__comicpress_notices = array(); + +function comicpress_add_options_menu() { + add_theme_page(__("ComicPress Config", 'comicpress'), __('ComicPress Config', 'comicpress'), 'edit_themes', basename(__FILE__), 'comicpress_options_menu'); +} function get_first_comic() { return get_terminal_post_in_category(get_all_comic_categories_as_cat_string()); @@ -41,6 +50,117 @@ function get_last_comic() { return get_terminal_post_in_category(get_all_comic_categories_as_cat_string(), false); } +function comicpress_admin_notices() { + global $__comicpress_notices; + + if (!empty($__comicpress_notices) && is_array($__comicpress_notices)) { + echo '
' . $notice . '
'; } + echo '