diff options
author | Andrew Dolgov <[email protected]> | 2020-05-17 18:47:21 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-05-17 18:47:21 +0300 |
commit | 1077abdddae0e9068820c5630525b94c0e173831 (patch) | |
tree | b70d9bb9670daff6a03500c8d3dd8fb1c67b5701 /init.php |
initial
Diffstat (limited to 'init.php')
-rw-r--r-- | init.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/init.php b/init.php new file mode 100644 index 0000000..d69fde0 --- /dev/null +++ b/init.php @@ -0,0 +1,26 @@ +<?php +class HighlightJS extends Plugin { + private $host; + + function about() { + return array(1.0, + "Hightlights code blocks in articles using HighlightJS", + "fox"); + } + + function init($host) { + $this->host = $host; + } + + function get_css() { + return file_get_contents(__DIR__ . "/hljs-theme.css"); + } + + function get_js() { + return file_get_contents(__DIR__ . "/init.js"); + } + + function api_version() { + return 2; + } +} |