From e6b44e15b2f59cc7cf24ab1c6bfeeefb3651e186 Mon Sep 17 00:00:00 2001 From: dignajar Date: Thu, 13 Aug 2015 22:22:26 -0300 Subject: [PATCH] Disqus plugins --- plugins/disqus/language/en_US.json | 12 ++++++ plugins/disqus/plugin.php | 65 ++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 plugins/disqus/language/en_US.json create mode 100644 plugins/disqus/plugin.php diff --git a/plugins/disqus/language/en_US.json b/plugins/disqus/language/en_US.json new file mode 100644 index 00000000..fd997417 --- /dev/null +++ b/plugins/disqus/language/en_US.json @@ -0,0 +1,12 @@ +{ + "plugin-data": + { + "name": "Disqus comment system", + "description": "Disqus is a blog comment hosting service for web sites. It's necesary to register on Disqus.com before using this plugin.", + "author": "Bludit", + "email": "", + "website": "http://www.bludit.com", + "version": "0.1", + "releaseDate": "2015-08-02" + } +} \ No newline at end of file diff --git a/plugins/disqus/plugin.php b/plugins/disqus/plugin.php new file mode 100644 index 00000000..42f13aae --- /dev/null +++ b/plugins/disqus/plugin.php @@ -0,0 +1,65 @@ +dbFields = array( + 'shortname'=>'' + ); + } + + public function form() + { + global $Language; + + $html = '
'; + $html .= ''; + $html .= ''; + $html .= '
'; + + return $html; + } + + public function postEnd() + { + $html = '
'; + return $html; + } + + public function pageEnd() + { + return $this->postEnd(); + } + + public function siteHead() + { + $html = ''; + return $html; + } + + public function siteBodyEnd() + { + global $Url; + + if( ($Url->whereAmI()!='post') && ($Url->whereAmI()!='page') ) { + return ''; + } + + $html = ' + +'; + + return $html; + } +} \ No newline at end of file