From b8fef1fa9eaf252e147d4d1a751ad6e39581d802 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Mon, 21 Dec 2009 15:18:40 -0800 Subject: [PATCH] deleting of more deprecated files, commenting out the sidebar-left and sidebar-right widgets that are not currently working. fixes to some of the include widgets Signed-off-by: Philip M. Hofer (Frumph) --- comicpress-options-config.php | 3 - functions.php | 9 +++ sidebar-left.php | 6 +- sidebar-menubar.php | 2 +- sidebar-right.php | 6 +- widgets/ArchiveDropdownWidget.inc | 6 +- widgets/BookmarkWidget.inc | 4 +- widgets/BuyThisPrintWidget.inc | 62 ----------------- widgets/CalendarWidget.inc | 7 +- widgets/CommentsWidget.inc | 8 --- widgets/GraphicalNavigationWidget.inc | 5 +- widgets/LatestComicsWidget.inc | 4 +- widgets/MenubarWidget.inc | 4 +- widgets/archive-dropdown.php | 3 - widgets/bookmark.php | 3 - widgets/buythisprint.php | 3 - widgets/calendar.php | 3 - widgets/comicblogpost.php | 58 ---------------- widgets/comiccomments.php | 53 --------------- widgets/comicdate.php | 59 ----------------- widgets/comictitle.php | 45 ------------- widgets/control-panel.php | 87 ------------------------ widgets/graphical-navigation-orig.php | 3 - widgets/latestcomicjump.php | 63 ------------------ widgets/latestcomics.php | 0 widgets/latestthumb.php | 68 ------------------- widgets/menubar.php | 3 - widgets/non-member.php | 57 ---------------- widgets/permalink.php | 57 ---------------- widgets/scheduledposts.php | 63 ------------------ widgets/searchtranscript.php | 53 --------------- widgets/social.php | 95 --------------------------- widgets/transcription.php | 62 ----------------- wpmu-functions.php | 3 - 34 files changed, 32 insertions(+), 935 deletions(-) delete mode 100644 comicpress-options-config.php delete mode 100644 widgets/BuyThisPrintWidget.inc delete mode 100644 widgets/archive-dropdown.php delete mode 100644 widgets/bookmark.php delete mode 100644 widgets/buythisprint.php delete mode 100644 widgets/calendar.php delete mode 100644 widgets/comicblogpost.php delete mode 100644 widgets/comiccomments.php delete mode 100644 widgets/comicdate.php delete mode 100644 widgets/comictitle.php delete mode 100644 widgets/control-panel.php delete mode 100644 widgets/graphical-navigation-orig.php delete mode 100644 widgets/latestcomicjump.php delete mode 100644 widgets/latestcomics.php delete mode 100644 widgets/latestthumb.php delete mode 100644 widgets/menubar.php delete mode 100644 widgets/non-member.php delete mode 100644 widgets/permalink.php delete mode 100644 widgets/scheduledposts.php delete mode 100644 widgets/searchtranscript.php delete mode 100644 widgets/social.php delete mode 100644 widgets/transcription.php delete mode 100644 wpmu-functions.php diff --git a/comicpress-options-config.php b/comicpress-options-config.php deleted file mode 100644 index 7ac7fd1..0000000 --- a/comicpress-options-config.php +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/functions.php b/functions.php index 18fdb43..bd1ab47 100644 --- a/functions.php +++ b/functions.php @@ -852,3 +852,12 @@ function comicpress_gnav_display_css() { } if (comicpress_check_child_file('childfunctions') == false) {} + +if ( isset( $_GET['latestcomic'] ) ) + add_action( 'template_redirect', 'latest_comic_jump' ); + +//to use simply create a URL link to "/?latestcomic" +function latest_comic_jump() { + wp_redirect( get_permalink( get_terminal_post_in_category(get_all_comic_categories_as_cat_string(), false) ) ); + exit; +} diff --git a/sidebar-left.php b/sidebar-left.php index fddaef6..aca06c4 100644 --- a/sidebar-left.php +++ b/sidebar-left.php @@ -6,10 +6,10 @@ if (!$comicpress_options['disable_lrsidebars_frontpage']) { ?> diff --git a/sidebar-menubar.php b/sidebar-menubar.php index 70b4d47..51d3bf5 100644 --- a/sidebar-menubar.php +++ b/sidebar-menubar.php @@ -1,6 +1,6 @@ diff --git a/sidebar-right.php b/sidebar-right.php index e25199f..6767e33 100644 --- a/sidebar-right.php +++ b/sidebar-right.php @@ -5,10 +5,10 @@ if (!$comicpress_options['disable_lrsidebars_frontpage']) { ?>