summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-01-17 12:30:47 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-01-29 22:21:54 +0100
commitf30877ea7c758346b700e4ac0f9c684a5ae99c7f (patch)
treeffbdd342c3bcc42d08d7315e78dc3075fe93a2b9 /core/templates
parent139055c1ddec25465dd7644de9866cd6a1048da2 (diff)
downloadnextcloud-server-f30877ea7c758346b700e4ac0f9c684a5ae99c7f.tar.gz
nextcloud-server-f30877ea7c758346b700e4ac0f9c684a5ae99c7f.zip
Provide initial state
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/layout.base.php3
-rw-r--r--core/templates/layout.guest.php3
-rw-r--r--core/templates/layout.public.php3
-rw-r--r--core/templates/layout.user.php4
4 files changed, 13 insertions, 0 deletions
diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php
index bad504c97cc..6ece48036e5 100644
--- a/core/templates/layout.base.php
+++ b/core/templates/layout.base.php
@@ -18,6 +18,9 @@
</head>
<body id="body-public" class="layout-base">
<?php include 'layout.noscript.warning.php'; ?>
+ <?php foreach ($_['initialStates'] as $app => $initialState) { ?>
+ <input type="hidden" id="initial-state-<?php p($app); ?>" value="<?php p(base64_encode($initialState)); ?>">
+ <?php }?>
<div id="content" class="app-public" role="main">
<?php print_unescaped($_['content']); ?>
</div>
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index ae685959351..39c7f83a3ca 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -20,6 +20,9 @@
</head>
<body id="<?php p($_['bodyid']);?>">
<?php include 'layout.noscript.warning.php'; ?>
+ <?php foreach ($_['initialStates'] as $app => $initialState) { ?>
+ <input type="hidden" id="initial-state-<?php p($app); ?>" value="<?php p(base64_encode($initialState)); ?>">
+ <?php }?>
<div class="wrapper">
<div class="v-align">
<?php if ($_['bodyid'] === 'body-login' ): ?>
diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php
index ad9a1e370eb..53dde8fa4f4 100644
--- a/core/templates/layout.public.php
+++ b/core/templates/layout.public.php
@@ -27,6 +27,9 @@
</head>
<body id="<?php p($_['bodyid']);?>">
<?php include('layout.noscript.warning.php'); ?>
+<?php foreach ($_['initialStates'] as $app => $initialState) { ?>
+ <input type="hidden" id="initial-state-<?php p($app); ?>" value="<?php p(base64_encode($initialState)); ?>">
+<?php }?>
<div id="notification-container">
<div id="notification"></div>
</div>
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index dfa96c5d1c8..43c89b4d181 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -28,6 +28,10 @@
<body id="<?php p($_['bodyid']);?>">
<?php include 'layout.noscript.warning.php'; ?>
+ <?php foreach ($_['initialStates'] as $app => $initialState) { ?>
+ <input type="hidden" id="initial-state-<?php p($app); ?>" value="<?php p(base64_encode($initialState)); ?>">
+ <?php }?>
+
<a href="#app-content" class="button primary skip-navigation skip-content"><?php p($l->t('Skip to main content')); ?></a>
<a href="#app-navigation" class="button primary skip-navigation"><?php p($l->t('Skip to navigation of app')); ?></a>