From 18d4892a0cb1b24402829584cfd212a0e9898f2e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 27 Oct 2016 19:17:12 +0200 Subject: [locationinfo] Skeleton for new module --- modules-available/locationinfo/api.inc.php | 7 +++++ modules-available/locationinfo/config.json | 3 +++ modules-available/locationinfo/lang/de/module.json | 4 +++ .../locationinfo/lang/de/template-tags.json | 3 +++ modules-available/locationinfo/lang/en/module.json | 4 +++ .../locationinfo/lang/en/template-tags.json | 3 +++ .../locationinfo/lang/pt/template-tags.json | 3 +++ modules-available/locationinfo/page.inc.php | 30 ++++++++++++++++++++++ .../locationinfo/templates/_page.html | 4 +++ 9 files changed, 61 insertions(+) create mode 100644 modules-available/locationinfo/api.inc.php create mode 100644 modules-available/locationinfo/config.json create mode 100644 modules-available/locationinfo/lang/de/module.json create mode 100644 modules-available/locationinfo/lang/de/template-tags.json create mode 100644 modules-available/locationinfo/lang/en/module.json create mode 100644 modules-available/locationinfo/lang/en/template-tags.json create mode 100644 modules-available/locationinfo/lang/pt/template-tags.json create mode 100644 modules-available/locationinfo/page.inc.php create mode 100644 modules-available/locationinfo/templates/_page.html diff --git a/modules-available/locationinfo/api.inc.php b/modules-available/locationinfo/api.inc.php new file mode 100644 index 00000000..0d84ebce --- /dev/null +++ b/modules-available/locationinfo/api.inc.php @@ -0,0 +1,7 @@ + 'value', + 'number' => 123, + 'list' => array(1,2,3,4,5,6,'foo') +)); diff --git a/modules-available/locationinfo/config.json b/modules-available/locationinfo/config.json new file mode 100644 index 00000000..706412d0 --- /dev/null +++ b/modules-available/locationinfo/config.json @@ -0,0 +1,3 @@ +{ + "category":"main.content" +} diff --git a/modules-available/locationinfo/lang/de/module.json b/modules-available/locationinfo/lang/de/module.json new file mode 100644 index 00000000..166909c3 --- /dev/null +++ b/modules-available/locationinfo/lang/de/module.json @@ -0,0 +1,4 @@ +{ + "module_name": "Mein erstes Modul", + "page_title": "Mein erster Seitentitel" +} \ No newline at end of file diff --git a/modules-available/locationinfo/lang/de/template-tags.json b/modules-available/locationinfo/lang/de/template-tags.json new file mode 100644 index 00000000..ce98ce38 --- /dev/null +++ b/modules-available/locationinfo/lang/de/template-tags.json @@ -0,0 +1,3 @@ +{ + "lang_hello": "Hallo" +} \ No newline at end of file diff --git a/modules-available/locationinfo/lang/en/module.json b/modules-available/locationinfo/lang/en/module.json new file mode 100644 index 00000000..b2bcbb0c --- /dev/null +++ b/modules-available/locationinfo/lang/en/module.json @@ -0,0 +1,4 @@ +{ + "module_name": "My first module", + "page_title": "My first page title" +} \ No newline at end of file diff --git a/modules-available/locationinfo/lang/en/template-tags.json b/modules-available/locationinfo/lang/en/template-tags.json new file mode 100644 index 00000000..c30739e5 --- /dev/null +++ b/modules-available/locationinfo/lang/en/template-tags.json @@ -0,0 +1,3 @@ +{ + "lang_hello": "Hello" +} \ No newline at end of file diff --git a/modules-available/locationinfo/lang/pt/template-tags.json b/modules-available/locationinfo/lang/pt/template-tags.json new file mode 100644 index 00000000..e7981844 --- /dev/null +++ b/modules-available/locationinfo/lang/pt/template-tags.json @@ -0,0 +1,3 @@ +{ + "lang_hello": "Olá" +} \ No newline at end of file diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php new file mode 100644 index 00000000..ff73107a --- /dev/null +++ b/modules-available/locationinfo/page.inc.php @@ -0,0 +1,30 @@ + 'bar', + 'now' => date('d.m.Y H:i:s') + )); + } + +} diff --git a/modules-available/locationinfo/templates/_page.html b/modules-available/locationinfo/templates/_page.html new file mode 100644 index 00000000..dfc941ae --- /dev/null +++ b/modules-available/locationinfo/templates/_page.html @@ -0,0 +1,4 @@ +
+

{{lang_hello}}, {{foo}}

+ ** {{now}} ** +
\ No newline at end of file -- cgit v1.2.3-55-g7522