summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-09 16:39:49 +0300
committerAndrew Dolgov <[email protected]>2021-03-09 16:39:49 +0300
commit7a57bb1610c935ad7edb243a959b8558a0bfcdfd (patch)
treee413ebc604149d8338e037ef856a5bd8d003cfba /init.php
initial
Diffstat (limited to 'init.php')
-rw-r--r--init.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/init.php b/init.php
new file mode 100644
index 0000000..11b84d6
--- /dev/null
+++ b/init.php
@@ -0,0 +1,22 @@
+<?php
+class Favicon_Unread extends Plugin {
+ private $host;
+
+ function about() {
+ return array(1.0,
+ "Shows unread/fresh articles count in a favicon",
+ "fox");
+ }
+
+ function init($host) {
+ $this->host = $host;
+ }
+
+ function get_js() {
+ return file_get_contents(__DIR__ . "/init.js");
+ }
+
+ function api_version() {
+ return 2;
+ }
+}