Merge pull request #10109 from owncloud/issue_#9793_guestlayout
Step one, open guest layout for different styles.
This commit is contained in:
commit
06eb3b62c6
2 changed files with 11 additions and 7 deletions
|
@ -33,17 +33,20 @@
|
|||
?>
|
||||
<?php endforeach; ?>
|
||||
</head>
|
||||
<body id="body-login">
|
||||
<body id="<?php p($_['bodyid']);?>">
|
||||
<noscript><div id="nojavascript"><div><?php print_unescaped($l->t('This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank">enable JavaScript</a> and reload the page.')); ?></div></div></noscript>
|
||||
<div class="wrapper"><!-- for sticky footer -->
|
||||
<div class="v-align"><!-- vertically centred box -->
|
||||
<header><div id="header">
|
||||
<div class="logo svg"></div>
|
||||
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
|
||||
</div></header>
|
||||
|
||||
<?php if ($_['bodyid'] === 'body-login' ): ?>
|
||||
<header>
|
||||
<div id="header">
|
||||
<div class="logo svg"></div>
|
||||
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
|
||||
</div>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
<?php print_unescaped($_['content']); ?>
|
||||
<div class="push"></div><!-- for sticky footer -->
|
||||
<div class="push"></div><!-- for sticky footer -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -63,6 +63,7 @@ class OC_TemplateLayout extends OC_Template {
|
|||
parent::__construct('core', 'layout.guest', '', false);
|
||||
} else if ($renderas == 'guest') {
|
||||
parent::__construct('core', 'layout.guest');
|
||||
$this->assign('bodyid', 'body-login');
|
||||
} else {
|
||||
parent::__construct('core', 'layout.base');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue