Added trunk/branches/tags structure and added a boilerplate functionality.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 25 Nov 2016 15:07:02 +0000 (15:07 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 25 Nov 2016 15:07:02 +0000 (15:07 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrsemantic/trunk@2520 7aebc617-e5e2-0310-91dc-80fb5f6d2477

extension.json [new file with mode: 0644]
wrsemantic_body.php [new file with mode: 0644]

diff --git a/extension.json b/extension.json
new file mode 100644 (file)
index 0000000..ab51a0b
--- /dev/null
@@ -0,0 +1,11 @@
+{
+       "name": "Winterrodeln Semantic",
+       "author": "Philipp Spitzer",
+       "url": "http://www.winterrodeln.org/trac/wiki/WrSemantic",
+       "description": "Adds structured (semantic) data to the header of sledruns: JSON-LD, Facebook Open Graph META Tags, Twitter Summary Cards.",
+       "version": "0.1",
+       "license-name": "GPL-2.0+",
+       "manifest_version": 1,
+       "AutoloadClasses": {"WrSemantic": "wrsemantic_body.php"},
+       "Hooks": {"OutputPageParserOutput": "WrSemantic::onOutputPageParserOutput"}
+}
diff --git a/wrsemantic_body.php b/wrsemantic_body.php
new file mode 100644 (file)
index 0000000..af2b42e
--- /dev/null
@@ -0,0 +1,10 @@
+<?php
+
+class WrSemantic {
+       public static function onOutputPageParserOutput(OutputPage &$out, ParserOutput $parseroutput) {
+               $out->addMeta('test_key', 'test_value');
+               return true;
+       }
+}
+
+?>