summaryrefslogtreecommitdiff
path: root/plugins/googlereadertheme/init.php
blob: 76e6fa421c78875e5ec12787a6891ebb79513ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
class GoogleReaderTheme extends Plugin {

	private $link;
	private $host;

	function about() {
		return array(1.0,
			"Make tt-rss look similar to Google Reader",
			"levito");
	}

	function init($host) {
		$this->link = $host->get_link();
		$this->host = $host;

		// force-enable combined mode
		set_pref($this->link, "COMBINED_DISPLAY_MODE", true);
	}

	function get_css() {
		return file_get_contents(dirname(__FILE__) . "/init.css");
	}
}
?>