diff --git a/config/config.sample.php b/config/config.sample.php index 09b5c18504119487e3d792d79490736bd213387c..16824e67ed14ece1671e2345b7904149ea703bda 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -1632,4 +1632,11 @@ $CONFIG = array( '/^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, ); diff --git a/core/css/public.scss b/core/css/public.scss index a4e7ed579b9f7c687746c8d2bd9b7bdf107b71e9..cac98f23f928b14a6e09d558f94eb27fde8952b2 100644 --- a/core/css/public.scss +++ b/core/css/public.scss @@ -1,4 +1,4 @@ -$footer-height: 60px; +$footer-height: 65px; #body-public { .header-right { @@ -75,7 +75,9 @@ $footer-height: 60px; align-items: center; justify-content: center; height: $footer-height; + flex-direction: column; p { + text-align: center; color: var(--color-text-lighter); a { color: var(--color-text-lighter); diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php index 13baf194010830cf4088f60918c45a5a877da2d8..0558da52d0b28c4e5bc04f2c801742527be978d9 100644 --- a/core/templates/layout.public.php +++ b/core/templates/layout.public.php @@ -79,6 +79,15 @@ <?php if(isset($template) && $template->getFooterVisible()) { ?> <footer> <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> <?php } ?> diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index fc2e5798e1c58583dba9d79c8270e9a2e6d7c8bd..0bd57c4139b42d4ef4a95330c4eb5a44970be5bc 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -132,6 +132,7 @@ class TemplateLayout extends \OC_Template { parent::__construct('core', 'layout.public'); $this->assign( 'appid', $appId ); $this->assign('bodyid', 'body-public'); + $this->assign('showSimpleSignUpLink', $this->config->getSystemValue('simpleSignUpLink.shown', true) !== false); } else { parent::__construct('core', 'layout.base');