mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-24 06:37:10 +00:00
add plugin based on google reader css at http://tt-rss.org/forum/viewtopic.php?f=22&t=1287&start=15#p5956
This commit is contained in:
25
plugins/googlereadertheme/init.php
Normal file
25
plugins/googlereadertheme/init.php
Normal file
@@ -0,0 +1,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");
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user