1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-07-04 13:10:49 +02:00
ttrss/plugins/googlereadertheme/init.php
2013-03-18 16:15:32 +04:00

28 lines
503 B
PHP

<?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");
}
}
?>