blob: 54af90f6792c47e3c3071d120cbc67e7cc2c5f68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<?php
/**
* Walled garden login
*/
$title = elgg_get_site_entity()->name;
$welcome = elgg_echo('walled_garden:welcome');
$welcome .= ': <br/>' . $title;
$menu = elgg_view_menu('walled_garden', array(
'sort_by' => 'priority',
'class' => 'elgg-menu-general elgg-menu-hz',
));
$login_box = elgg_view('core/account/login_box', array('module' => 'walledgarden-login'));
echo <<<HTML
<div class="elgg-col elgg-col-1of2">
<div class="elgg-inner">
<h1 class="elgg-heading-walledgarden">
$welcome
</h1>
$menu
</div>
</div>
<div class="elgg-col elgg-col-1of2">
<div class="elgg-inner">
$login_box
</div>
</div>
HTML;
if (elgg_is_sticky_form('register')) {
?>
<script type="text/javascript">
elgg.register_hook_handler('init', 'system', function(){
$('.registration_link').trigger('click');
});
</script>
<?php
}
|