aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Manifest.php
diff options
context:
space:
mode:
authornobody <nobody@zotlabs.com>2021-08-28 01:09:11 -0700
committernobody <nobody@zotlabs.com>2021-08-28 01:09:11 -0700
commit2866c0b1737f571c77731eabb0d60d6660caee3b (patch)
treeef72556613187c611f6b131210621cc4a11a108a /Zotlabs/Module/Manifest.php
parent05152ac8c88711a74e61f75feae2c0a43dd40cc4 (diff)
parent5eaabbdb18b392478b6782fb580f22b3a1e666f2 (diff)
downloadvolse-hubzilla-2866c0b1737f571c77731eabb0d60d6660caee3b.tar.gz
volse-hubzilla-2866c0b1737f571c77731eabb0d60d6660caee3b.tar.bz2
volse-hubzilla-2866c0b1737f571c77731eabb0d60d6660caee3b.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs/Module/Manifest.php')
-rw-r--r--Zotlabs/Module/Manifest.php52
1 files changed, 52 insertions, 0 deletions
diff --git a/Zotlabs/Module/Manifest.php b/Zotlabs/Module/Manifest.php
new file mode 100644
index 000000000..30a091172
--- /dev/null
+++ b/Zotlabs/Module/Manifest.php
@@ -0,0 +1,52 @@
+<?php
+namespace Zotlabs\Module;
+
+use App;
+use Zotlabs\Web\Controller;
+use Zotlabs\Lib\System;
+
+class Manifest extends Controller {
+
+ function init() {
+
+ $ret = [
+ 'name' => ucfirst(System::get_platform_name()),
+ 'short_name' => ucfirst(System::get_platform_name()),
+ 'icons' => [
+ [ 'src' => '/images/app/hz-72.png', 'sizes' => '72x72', 'type' => 'image/png' ],
+ [ 'src' => '/images/app/hz-96.png', 'sizes' => '96x96', 'type' => 'image/png' ],
+ [ 'src' => '/images/app/hz-128.png', 'sizes' => '128x128', 'type' => 'image/png' ],
+ [ 'src' => '/images/app/hz-144.png', 'sizes' => '144x144', 'type' => 'image/png' ],
+ [ 'src' => '/images/app/hz-152.png', 'sizes' => '152x152', 'type' => 'image/png' ],
+ [ 'src' => '/images/app/hz-192.png', 'sizes' => '192x192', 'type' => 'image/png' ],
+ [ 'src' => '/images/app/hz-348.png', 'sizes' => '384x384', 'type' => 'image/png' ],
+ [ 'src' => '/images/app/hz-512.png', 'sizes' => '512x512', 'type' => 'image/png' ],
+ [ 'src' => '/images/app/hz.svg', 'sizes' => '64x64', 'type' => 'image/xml+svg' ]
+ ],
+ 'scope' => '/',
+ 'start_url' => z_root(),
+ 'display' => 'standalone',
+ 'orientation' => 'any',
+ 'theme_color' => '#343a40',
+ 'background_color' => '#ccccc',
+ 'share_target' => [
+ 'action' => '/rpost',
+ 'method' => 'POST',
+ 'enctype' => 'multipart/form-data',
+ 'params' => [
+ 'title' => 'title',
+ 'text' => 'body',
+ 'url' => 'url',
+ 'files' => [
+ [ 'name' => 'userfile',
+ 'accept' => [ 'image/*', 'audio/*', 'video/*', 'text/*', 'application/*' ]
+ ]
+ ]
+ ]
+ ]
+ ];
+
+ json_return_and_die($ret,'application/manifest+json');
+ }
+
+}