init.php 420 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. class Shorten_Expanded extends Plugin {
  3. private $host;
  4. function about() {
  5. return array(1.0,
  6. "Shorten overly long articles in CDM/expanded",
  7. "fox");
  8. }
  9. function init($host) {
  10. $this->host = $host;
  11. }
  12. function get_css() {
  13. return file_get_contents(__DIR__ . "/init.css");
  14. }
  15. function get_js() {
  16. return file_get_contents(__DIR__ . "/init.js");
  17. }
  18. function api_version() {
  19. return 2;
  20. }
  21. }
  22. ?>