]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/shorten_expanded/init.php
add experimental plugin to shorten articles which are too damn long in expanded cdm
[tt-rss.git] / plugins / shorten_expanded / init.php
diff --git a/plugins/shorten_expanded/init.php b/plugins/shorten_expanded/init.php
new file mode 100644 (file)
index 0000000..1d0c99e
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+class Shorten_Expanded extends Plugin {
+       private $host;
+
+       function about() {
+               return array(1.0,
+                       "Shorten overly long articles in CDM/expanded",
+                       "fox");
+       }
+
+       function init($host) {
+               $this->host = $host;
+
+       }
+
+       function get_css() {
+               return file_get_contents(__DIR__ . "/init.css");
+       }
+
+       function get_js() {
+               return file_get_contents(__DIR__ . "/init.js");
+       }
+
+       function api_version() {
+               return 2;
+       }
+
+}
+?>