diff --git a/contrib/news/main.php b/contrib/news/main.php deleted file mode 100644 index e0b5911d..00000000 --- a/contrib/news/main.php +++ /dev/null @@ -1,26 +0,0 @@ - - * Link: http://code.shishnet.org/shimmie2/ - * License: GPLv2 - * Description: Show a short amount of text in a block on the post list - * Documentation: - * Any HTML is allowed - */ - -class News extends Extension { - public function onPostListBuilding(PostListBuildingEvent $event) { - global $config, $page; - if(strlen($config->get_string("news_text")) > 0) { - $this->theme->display_news($page, $config->get_string("news_text")); - } - } - - public function onSetupBuilding(SetupBuildingEvent $event) { - $sb = new SetupBlock("News"); - $sb->add_longtext_option("news_text"); - $event->panel->add_block($sb); - } -} -?> diff --git a/contrib/news/test.php b/contrib/news/test.php deleted file mode 100644 index cb156ebe..00000000 --- a/contrib/news/test.php +++ /dev/null @@ -1,25 +0,0 @@ -log_in_as_admin(); - - $this->get_page("setup"); - $this->set_field("_config_news_text", "kittens"); - $this->click("Save Settings"); - - $this->get_page("post/list"); - $this->assert_text("Note"); - $this->assert_text("kittens"); - - $this->get_page("setup"); - $this->set_field("_config_news_text", ""); - $this->click("Save Settings"); - - $this->get_page("post/list"); - $this->assert_no_text("Note"); - $this->assert_no_text("kittens"); - - $this->log_out(); - } -} -?> diff --git a/contrib/news/theme.php b/contrib/news/theme.php deleted file mode 100644 index c0b351fa..00000000 --- a/contrib/news/theme.php +++ /dev/null @@ -1,11 +0,0 @@ -add_block(new Block("Note", $text, "left", 5)); - } -} -?>