aboutsummaryrefslogtreecommitdiff
path: root/pages/account/login.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2013-06-12 21:09:03 -0400
committerCash Costello <cash.costello@gmail.com>2013-06-12 21:09:03 -0400
commit731b7bdde4790d2bfd565eb2d9c847f4adedf4b4 (patch)
tree0b25ebaafbc0a7c333058d18073ee90ef4e3749b /pages/account/login.php
parentc3f02ab07e20b870cb36e05de2795ef9fea09182 (diff)
downloadelgg-731b7bdde4790d2bfd565eb2d9c847f4adedf4b4.tar.gz
elgg-731b7bdde4790d2bfd565eb2d9c847f4adedf4b4.tar.bz2
Refs #5487 account related pages use walled garden now
Diffstat (limited to 'pages/account/login.php')
-rw-r--r--pages/account/login.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/pages/account/login.php b/pages/account/login.php
index 14f65cc3f..6aa3752d0 100644
--- a/pages/account/login.php
+++ b/pages/account/login.php
@@ -15,6 +15,14 @@ if (elgg_is_logged_in()) {
forward('');
}
-$login_box = elgg_view('core/account/login_box');
-$content = elgg_view_layout('one_column', array('content' => $login_box));
-echo elgg_view_page(elgg_echo('login'), $content);
+$title = elgg_echo('login');
+$content = elgg_view('core/account/login_box');
+
+if (elgg_get_config('walled_garden')) {
+ elgg_load_css('elgg.walled_garden');
+ $body = elgg_view_layout('walled_garden', array('content' => $content));
+ echo elgg_view_page($title, $body, 'walled_garden');
+} else {
+ $body = elgg_view_layout('one_column', array('content' => $content));
+ echo elgg_view_page($title, $body);
+}