diff --git a/bl-plugins/html-code/languages/en.json b/bl-plugins/html-code/languages/en.json new file mode 100644 index 00000000..e3fa43d6 --- /dev/null +++ b/bl-plugins/html-code/languages/en.json @@ -0,0 +1,7 @@ +{ + "plugin-data": + { + "name": "HTML Code", + "description": "Add HTML, CSS or Javascript code in the header or footer of your site." + } +} \ No newline at end of file diff --git a/bl-plugins/html-code/metadata.json b/bl-plugins/html-code/metadata.json new file mode 100644 index 00000000..b6906f6a --- /dev/null +++ b/bl-plugins/html-code/metadata.json @@ -0,0 +1,10 @@ +{ + "author": "Bludit", + "email": "", + "website": "https://plugins.bludit.com", + "version": "2.1", + "releaseDate": "2017-06-15", + "license": "MIT", + "compatible": "2.1", + "notes": "" +} diff --git a/bl-plugins/html-code/plugin.php b/bl-plugins/html-code/plugin.php new file mode 100644 index 00000000..6f68ffa3 --- /dev/null +++ b/bl-plugins/html-code/plugin.php @@ -0,0 +1,37 @@ +dbFields = array( + 'header'=>'', + 'footer'=>'' + ); + } + + public function form() + { + $html = '
'; + $html .= ''; + $html .= ''; + $html .= '
'; + + $html .= '
'; + $html .= ''; + $html .= ''; + $html .= '
'; + + return $html; + } + + public function siteHead() + { + return html_entity_decode($this->getValue('header')); + } + + public function siteBodyEnd() + { + return html_entity_decode($this->getValue('footer')); + } +} \ No newline at end of file