diff options
author | Sem <sembrestels@riseup.net> | 2013-08-23 04:57:44 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2013-08-23 04:57:44 +0200 |
commit | 46c365abd6e190a5c389b0dd49b02cd6e878ccd9 (patch) | |
tree | 118821edccd6210a7691c50bf98e1fc0692dc748 /views/default/page/walled_garden.php | |
parent | 8819bab8c0735c0ec428672fd36381c25823440b (diff) | |
download | elgg-46c365abd6e190a5c389b0dd49b02cd6e878ccd9.tar.gz elgg-46c365abd6e190a5c389b0dd49b02cd6e878ccd9.tar.bz2 |
Updated to Elgg 1.8.16.
Diffstat (limited to 'views/default/page/walled_garden.php')
-rw-r--r-- | views/default/page/walled_garden.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/views/default/page/walled_garden.php b/views/default/page/walled_garden.php index 77c901d8c..26d1235c2 100644 --- a/views/default/page/walled_garden.php +++ b/views/default/page/walled_garden.php @@ -5,6 +5,12 @@ * Used for the walled garden index page */ +$is_sticky_register = elgg_is_sticky_form('register'); +$wg_body_class = 'elgg-body-walledgarden'; +if ($is_sticky_register) { + $wg_body_class .= ' hidden'; +} + // Set the content type header("Content-type: text/html; charset=UTF-8"); ?> @@ -18,10 +24,17 @@ header("Content-type: text/html; charset=UTF-8"); <div class="elgg-page-messages"> <?php echo elgg_view('page/elements/messages', array('object' => $vars['sysmessages'])); ?> </div> - <div class="elgg-body-walledgarden"> + <div class="<?php echo $wg_body_class; ?>"> <?php echo $vars['body']; ?> </div> </div> +<?php if ($is_sticky_register): ?> +<script type="text/javascript"> +elgg.register_hook_handler('init', 'system', function() { + $('.registration_link').trigger('click'); +}); +</script> +<?php endif; ?> <?php echo elgg_view('page/elements/foot'); ?> </body> </html> |