diff options
author | Sem <sembrestels@riseup.net> | 2013-08-22 23:38:47 -0400 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2013-08-22 23:38:47 -0400 |
commit | f24e08416c793428ba863840e7d5e502e6d68cfc (patch) | |
tree | d7797c71630ec90fbea310f588a432ac0d39b597 /views/default/page/walled_garden.php | |
parent | 88733a24caee170acda071281eb4630bf5ef5794 (diff) | |
parent | 46c365abd6e190a5c389b0dd49b02cd6e878ccd9 (diff) | |
download | elgg-f24e08416c793428ba863840e7d5e502e6d68cfc.tar.gz elgg-f24e08416c793428ba863840e7d5e502e6d68cfc.tar.bz2 |
Merge branch '1.8' of gitorious.org:lorea/html5 into 1.8
Conflicts:
views/default/page/elements/foot.php
views/default/page/elements/owner_block.php
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 1075ea811..c12a7203d 100644 --- a/views/default/page/walled_garden.php +++ b/views/default/page/walled_garden.php @@ -7,6 +7,12 @@ * @override views/default/page/walled_garden.php */ +$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"); ?> @@ -20,10 +26,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> |