From 67eb7144c8de6b1290827e7e6cad2e06df24b7b7 Mon Sep 17 00:00:00 2001 From: Michel Date: Sun, 24 Jun 2018 16:53:19 +0200 Subject: [PATCH] Fixes --- README.md | 2 +- src/Controllers/ProgressiveWebAppController.php | 10 ++++++++++ .../ProgressiveWebAppSiteConfigExtension.php | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9174b56..3ff92c6 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,4 @@ composer require pixelspin/silverstripe-progressivewebapp ## Usage Install the module, run dev/build and fill in the settings in the siteconfig -Place the link to the manifest file () in the head of your pages \ No newline at end of file +Place the link to the manifest file () in the head of your pages and add the color meta data as well () \ No newline at end of file diff --git a/src/Controllers/ProgressiveWebAppController.php b/src/Controllers/ProgressiveWebAppController.php index 81e7ff1..aeb0698 100644 --- a/src/Controllers/ProgressiveWebAppController.php +++ b/src/Controllers/ProgressiveWebAppController.php @@ -78,6 +78,16 @@ class ProgressiveWebAppController extends Controller { 'src' => $logo->Fill(192,192)->Link(), 'sizes' => '192x192', 'type' => $mime + ], + [ + 'src' => $logo->Fill(256,256)->Link(), + 'sizes' => '256x256', + 'type' => $mime + ], + [ + 'src' => $logo->Fill(512,512)->Link(), + 'sizes' => '512x512', + 'type' => $mime ] ]; } diff --git a/src/Extensions/ProgressiveWebAppSiteConfigExtension.php b/src/Extensions/ProgressiveWebAppSiteConfigExtension.php index 3025d68..f1a79b0 100644 --- a/src/Extensions/ProgressiveWebAppSiteConfigExtension.php +++ b/src/Extensions/ProgressiveWebAppSiteConfigExtension.php @@ -55,7 +55,7 @@ class ProgressiveWebAppSiteConfigExtension extends DataExtension { public function updateCMSFields(FieldList $fields) { $fields->addFieldToTab('Root.ProgressiveWebApp', TextField::create('ManifestName', 'Name')->setDescription('Application name')); - $fields->addFieldToTab('Root.ProgressiveWebApp', TextField::create('ManifestShortName', 'Short name')->setDescription('Short human-readable name for the application')); + $fields->addFieldToTab('Root.ProgressiveWebApp', TextField::create('ManifestShortName', 'Short name')->setDescription('Short human-readable name for the application try to keep it at a maximum of 12 characters')); $fields->addFieldToTab('Root.ProgressiveWebApp', TextField::create('ManifestDescription', 'Description')->setDescription('Short description about the app')); $fields->addFieldToTab('Root.ProgressiveWebApp', ColorField::create('ManifestColor', 'Color')->setDescription('Color used for the splash screen and/or icon')); $fields->addFieldToTab('Root.ProgressiveWebApp', DropdownField::create('ManifestOrientation', 'Orientation', array_combine(self::$orientations, self::$orientations))->setDescription('App orientation'));