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