summaryrefslogtreecommitdiffstats
path: root/core/templates/layout.user.php
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/layout.user.php
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/layout.user.php')
-rw-r--r--core/templates/layout.user.php4
1 files changed, 4 insertions, 0 deletions
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>