1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

Added platforms env var

This commit is contained in:
Eldad Fux 2020-01-26 07:13:01 +02:00
parent 93d4bc9e29
commit 879827d000
2 changed files with 4 additions and 1 deletions

View file

@ -2,7 +2,7 @@
include_once __DIR__ . '/../shared/web.php';
global $utopia, $response, $request, $layout, $version, $providers, $sdks;
global $utopia, $response, $request, $layout, $version, $providers, $sdks, $platforms;
use Utopia\View;
@ -17,6 +17,7 @@ $layout
->setParam('title', APP_NAME)
->setParam('description', '')
->setParam('class', 'home')
->setParam('platforms', $platforms)
->setParam('header', [$header])
->setParam('footer', [$footer])
;

View file

@ -6,6 +6,7 @@ $protocol = $this->getParam('protocol', '');
$domain = $this->getParam('domain', '');
$api = $this->getParam('api', '');
$project = $this->getParam('project', 'console');
$platforms = $this->getParam('platforms', []);
$version = $this->getParam('version', '0.0.0');
$isDev = $this->getParam('isDev', false);
$litespeed = $this->getParam('litespeed', true);
@ -60,6 +61,7 @@ $canonical = $this->getParam('canonical', '');
HOME: '<?php echo $this->escape($this->getParam('home')); ?>',
API: '<?php echo $api; ?>/v1',
PROJECT: '<?php echo $project; ?>',
PLATFORMS: '<?php echo $platforms; ?>',
LOCALE: '<?php echo $this->escape(Locale::getText('settings.locale')); ?>',
PREFIX: '<?php echo $this->escape($this->getParam('prefix')); ?>',
ROLES: <?PHP echo json_encode($this->getParam('roles', [])); ?>,