aboutsummaryrefslogtreecommitdiff
path: root/views/default/core/walled_garden/body.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-30 19:09:28 -0400
committercash <cash.costello@gmail.com>2011-10-30 19:09:28 -0400
commitd53556f07f33b843152ff2393aecc6c955f36e97 (patch)
treebf1d82889cf0c4d46faf98d59e53f534da317f7e /views/default/core/walled_garden/body.php
parent29e9a542b6f9c9e7d4bc50c6341f5874126fc7d5 (diff)
downloadelgg-d53556f07f33b843152ff2393aecc6c955f36e97.tar.gz
elgg-d53556f07f33b843152ff2393aecc6c955f36e97.tar.bz2
added back support for registration and forgotten passwords to walled garden index
Diffstat (limited to 'views/default/core/walled_garden/body.php')
-rw-r--r--views/default/core/walled_garden/body.php32
1 files changed, 5 insertions, 27 deletions
diff --git a/views/default/core/walled_garden/body.php b/views/default/core/walled_garden/body.php
index bee1c9805..67d8e0c37 100644
--- a/views/default/core/walled_garden/body.php
+++ b/views/default/core/walled_garden/body.php
@@ -3,31 +3,9 @@
* Walled garden body
*/
-$title = elgg_get_site_entity()->name;
-$welcome = elgg_echo('walled_garden:welcome');
-$welcome .= ': <br/>' . $title;
+echo elgg_view('core/walled_garden/login');
+echo elgg_view('core/walled_garden/lost_password');
-$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);
+if (elgg_get_config('allow_registration')) {
+ echo elgg_view('core/walled_garden/register');
+}