blob: 4ee4a4ba3271cc613a595e52acfbc0e7d8fc7aad (
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
26
27
|
<?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;
if ($_SESSION["uid"]) {
// force-enable combined mode
set_pref($this->link, "COMBINED_DISPLAY_MODE", true, $_SESSION["uid"]);
}
}
function get_css() {
return file_get_contents(dirname(__FILE__) . "/init.css");
}
}
?>
|