diff options
author | Andrew Dolgov <[email protected]> | 2013-07-31 18:58:56 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-07-31 18:58:56 +0400 |
commit | 2fdbff069f93a60db19f70d95a8f7c69d826bf53 (patch) | |
tree | 705b435528a186bd44ac491e55530b79939e1c83 /plugins/shorten_expanded/init.php | |
parent | a447f4e40aac4210c9b7d3c7a9942a7c798a1695 (diff) |
add experimental plugin to shorten articles which are too damn long in expanded cdm
Diffstat (limited to 'plugins/shorten_expanded/init.php')
-rw-r--r-- | plugins/shorten_expanded/init.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/plugins/shorten_expanded/init.php b/plugins/shorten_expanded/init.php new file mode 100644 index 000000000..1d0c99eca --- /dev/null +++ b/plugins/shorten_expanded/init.php @@ -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; + } + +} +?> |