From 0a4c4d0f471b067f7c6ef632d26632dd1bc40ab6 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Mon, 21 Dec 2009 15:33:16 -0800 Subject: [PATCH] Deleting some deprecated files. Signed-off-by: Philip M. Hofer (Frumph) --- widgets/LatestComicLink.inc | 48 -------------------------- widgets/randomcomic.php | 68 ------------------------------------- widgets/randompost.php | 67 ------------------------------------ 3 files changed, 183 deletions(-) delete mode 100644 widgets/LatestComicLink.inc delete mode 100644 widgets/randomcomic.php delete mode 100644 widgets/randompost.php diff --git a/widgets/LatestComicLink.inc b/widgets/LatestComicLink.inc deleted file mode 100644 index 1ef451c..0000000 --- a/widgets/LatestComicLink.inc +++ /dev/null @@ -1,48 +0,0 @@ - __CLASS__, 'description' => __('Displays a link to click to go to the latest comic.','comicpress') ); - $this->WP_Widget(__CLASS__, __('ComicPress Latest Comic Link','comicpress'), $widget_ops); - } - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; ?> -

? Latest Comic

- '' ) ); - $title = strip_tags($instance['title']); - ?> -

- \ No newline at end of file diff --git a/widgets/randomcomic.php b/widgets/randomcomic.php deleted file mode 100644 index 0b2c718..0000000 --- a/widgets/randomcomic.php +++ /dev/null @@ -1,68 +0,0 @@ -query('showposts=1&orderby=rand&cat='.get_all_comic_categories_as_cat_string()); - while ($randomComicQuery->have_posts()) : $randomComicQuery->the_post(); - $random_comic_id = get_the_ID(); - endwhile; - wp_redirect( get_permalink( $random_comic_id ) ); - exit; -} - -if ( isset( $_GET['randomcomic'] ) ) - add_action( 'template_redirect', 'random_comic' ); - -class widget_comicpress_random_comic extends WP_Widget { - - function widget_comicpress_random_comic() { - $widget_ops = array('classname' => 'widget_comicpress_random_comic', 'description' => __('Displays a link to click to trigger a random comic.','comicpress') ); - $this->WP_Widget('comicpress_random_comic', __('ComicPress Random Comic','comicpress'), $widget_ops); - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; ?> -

?

- '' ) ); - $title = strip_tags($instance['title']); - ?> -

- \ No newline at end of file diff --git a/widgets/randompost.php b/widgets/randompost.php deleted file mode 100644 index a637503..0000000 --- a/widgets/randompost.php +++ /dev/null @@ -1,67 +0,0 @@ -query('showposts=1&orderby=rand&cat=-'.exclude_comic_categories()); - while ($randomComicQuery->have_posts()) : $randomComicQuery->the_post(); - $random_comic_id = get_the_ID(); - endwhile; - wp_redirect( get_permalink( $random_comic_id ) ); - exit; -} - -if ( isset( $_GET['randompost'] ) ) - add_action( 'template_redirect', 'random_post' ); - -class widget_comicpress_random_post extends WP_Widget { - - function widget_comicpress_random_post() { - $widget_ops = array('classname' => 'widget_comicpress_random_post', 'description' => __('Displays a link to click to trigger a random blog post.','comicpress') ); - $this->WP_Widget('comicpress_random_post', __('ComicPress Random Post','comicpress'), $widget_ops); - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; ?> -

?

- '' ) ); - $title = strip_tags($instance['title']); - ?> -

- \ No newline at end of file