diff options
author | cash <cash.costello@gmail.com> | 2011-10-30 18:15:23 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-10-30 18:15:23 -0400 |
commit | 29e9a542b6f9c9e7d4bc50c6341f5874126fc7d5 (patch) | |
tree | 1a7d399ed57f3432a0538b3a016e4b4ce8ea41a0 /views/default/core | |
parent | f334f8ce79bae2f996920891948168e10503bf6c (diff) | |
download | elgg-29e9a542b6f9c9e7d4bc50c6341f5874126fc7d5.tar.gz elgg-29e9a542b6f9c9e7d4bc50c6341f5874126fc7d5.tar.bz2 |
basic walled garden implementation for logging in
Diffstat (limited to 'views/default/core')
-rw-r--r-- | views/default/core/walled_garden/body.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/views/default/core/walled_garden/body.php b/views/default/core/walled_garden/body.php new file mode 100644 index 000000000..bee1c9805 --- /dev/null +++ b/views/default/core/walled_garden/body.php @@ -0,0 +1,33 @@ +<?php +/** + * Walled garden body + */ + +$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')); + +$content = <<<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; + +echo elgg_view_module('walledgarden', '', $content, $vars); |