Merge pull request #10822 from nextcloud/feature/noid/show-link-to-simple-sign-up
Show link to simple sign up page
This commit is contained in:
commit
162b16b505
|
@ -1632,4 +1632,11 @@ $CONFIG = array(
|
||||||
'/^Microsoft-WebDAV-MiniRedir/', // Windows webdav drive
|
'/^Microsoft-WebDAV-MiniRedir/', // Windows webdav drive
|
||||||
),
|
),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* By default there is on public pages a link shown that allows users to
|
||||||
|
* learn about the "simple sign up" - see https://nextcloud.com/signup/
|
||||||
|
*
|
||||||
|
* If this is set to "false" it will not show the link.
|
||||||
|
*/
|
||||||
|
'simpleSignUpLink.shown' => true,
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
$footer-height: 60px;
|
$footer-height: 65px;
|
||||||
|
|
||||||
#body-public {
|
#body-public {
|
||||||
.header-right {
|
.header-right {
|
||||||
|
@ -75,7 +75,9 @@ $footer-height: 60px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: $footer-height;
|
height: $footer-height;
|
||||||
|
flex-direction: column;
|
||||||
p {
|
p {
|
||||||
|
text-align: center;
|
||||||
color: var(--color-text-lighter);
|
color: var(--color-text-lighter);
|
||||||
a {
|
a {
|
||||||
color: var(--color-text-lighter);
|
color: var(--color-text-lighter);
|
||||||
|
|
|
@ -79,6 +79,15 @@
|
||||||
<?php if(isset($template) && $template->getFooterVisible()) { ?>
|
<?php if(isset($template) && $template->getFooterVisible()) { ?>
|
||||||
<footer>
|
<footer>
|
||||||
<p><?php print_unescaped($theme->getLongFooter()); ?></p>
|
<p><?php print_unescaped($theme->getLongFooter()); ?></p>
|
||||||
|
<?php
|
||||||
|
if ($_['showSimpleSignUpLink']) {
|
||||||
|
?>
|
||||||
|
<p>
|
||||||
|
<a href="https://nextcloud.com/signup/" target="_blank" rel="noreferrer noopener">Get your own free account</a>
|
||||||
|
</p>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
</footer>
|
</footer>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
|
@ -132,6 +132,7 @@ class TemplateLayout extends \OC_Template {
|
||||||
parent::__construct('core', 'layout.public');
|
parent::__construct('core', 'layout.public');
|
||||||
$this->assign( 'appid', $appId );
|
$this->assign( 'appid', $appId );
|
||||||
$this->assign('bodyid', 'body-public');
|
$this->assign('bodyid', 'body-public');
|
||||||
|
$this->assign('showSimpleSignUpLink', $this->config->getSystemValue('simpleSignUpLink.shown', true) !== false);
|
||||||
} else {
|
} else {
|
||||||
parent::__construct('core', 'layout.base');
|
parent::__construct('core', 'layout.base');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue