This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/twitter_soc/main.php

25 lines
683 B
PHP
Raw Normal View History

2012-01-16 01:35:36 +00:00
<?php
/*
* Name: Tweet!
* Author: Shish <webmaster@shishnet.org>
2012-02-10 04:04:37 +00:00
* Link: http://code.shishnet.org/shimmie2/
2012-01-16 01:35:36 +00:00
* License: GPLv2
* Description: Show a twitter feed with the Sea of Clouds script
*/
class TwitterSoc extends Extension {
public function onPostListBuilding(PostListBuildingEvent $event) {
2012-01-16 01:35:36 +00:00
global $config, $page;
if(strlen($config->get_string("twitter_soc_username")) > 0) {
$this->theme->display_feed($page, $config->get_string("twitter_soc_username"));
}
}
public function onSetupBuilding(SetupBuildingEvent $event) {
2012-01-16 01:35:36 +00:00
$sb = new SetupBlock("Tweet!");
$sb->add_text_option("twitter_soc_username", "Username ");
$event->panel->add_block($sb);
}
}
?>