From b7f65ac7ac3f39728ea5c4e5ba4ebbe285989723 Mon Sep 17 00:00:00 2001 From: pete Date: Wed, 2 Jun 2010 15:14:59 +0000 Subject: Updated private network (previously walled garden) login/register/lost password to be independent of any theme running, and improved interface. git-svn-id: http://code.elgg.org/elgg/trunk@6323 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../default/account/forms/login_walled_garden.php | 64 +++--- views/default/account/forms/register.php | 2 +- views/default/css.php | 82 ------- views/default/page_shells/walled_garden.php | 236 ++++++++++++++++++++- 4 files changed, 273 insertions(+), 111 deletions(-) (limited to 'views') diff --git a/views/default/account/forms/login_walled_garden.php b/views/default/account/forms/login_walled_garden.php index c889beff7..c7531efbd 100644 --- a/views/default/account/forms/login_walled_garden.php +++ b/views/default/account/forms/login_walled_garden.php @@ -24,9 +24,6 @@ if ((isset($CONFIG->https_login)) && ($CONFIG->https_login)) { $login_url = str_replace("http", "https", $vars['url']); } ?> -

$form_body, 'action' => "{$login_url}action/login")); @@ -42,54 +39,67 @@ if ($CONFIG->allow_registration) { )); echo <<<__HTML - __HTML; } ?> - - + diff --git a/views/default/account/forms/register.php b/views/default/account/forms/register.php index 819646bd5..fb9136ad8 100644 --- a/views/default/account/forms/register.php +++ b/views/default/account/forms/register.php @@ -19,7 +19,7 @@ if ($loggedin_user && $loggedin_user->isAdmin() && isset($vars['show_admin'])) { $admin_option = true; } -$form_body = "

"; +$form_body = "

"; $form_body .= "

"; $form_body .= "

"; $form_body .= "

"; diff --git a/views/default/css.php b/views/default/css.php index 43afbb1ea..ef0f84d0f 100644 --- a/views/default/css.php +++ b/views/default/css.php @@ -1537,85 +1537,3 @@ p.elgg_likes_owner { } -/* *************************************** - WalledGarden -*************************************** */ -#walledgarden_container { - margin:100px auto 0 auto; - position:relative; - padding:0; - width:563px; - background: url(_graphics/walled_garden_background_extend.gif) repeat-y left top; - text-align: left; -} -#walledgarden { - position: relative; - padding:0; - width:563px; - min-height:230px; - background: url(_graphics/walled_garden_background_top.gif) no-repeat left top; -} -#walledgarden_bottom { - margin:0 auto; - background: url(_graphics/walled_garden_background_bottom.gif) no-repeat left bottom; - width:563px; - height:54px; - position: relative; -} -.walledgardenintro { - float:left; - min-height:200px; - width:223px; - padding:15px; - margin:19px 0 0 23px; -} -.walledgardenlogin { - float:left; - min-height:200px; - width:223px; - padding:15px 15px 0 15px; - margin:19px 0 0 11px; -} -.walledgardenintro h1 { - color:#666666; - margin-top:80px; - line-height: 1.1em; -} -.walledgardenlogin h2 { - color:#666666; - border-bottom:1px solid #CCCCCC; - margin-bottom:5px; - padding-bottom:5px; -} -.walledgardenlogin form input.login_textarea { - margin:0 0 10px 0; - width:210px; -} -.walledgardenlogin form label { - color:#666666; -} -.walledgardenlogin .remember_me label { - font-size:1em; - font-weight:normal; -} -.walledgardenlogin .remember_me { - display:block; - float:right; - margin-left:0; - margin-top:-34px; - text-align:right; - width:100%; -} -.walledgardenlogin .lost_password { - margin-bottom: 10px; -} -.walledgardenlogin a.forgotten_password_link, -.walledgardenlogin a.registration_link { - color:#999999; -} -#walledgarden_sysmessages #elgg_system_message { - width: 523px; - right:0; - margin:10px auto 0 auto; - position: relative; -} \ No newline at end of file diff --git a/views/default/page_shells/walled_garden.php b/views/default/page_shells/walled_garden.php index fc44472e9..c14001755 100644 --- a/views/default/page_shells/walled_garden.php +++ b/views/default/page_shells/walled_garden.php @@ -16,10 +16,244 @@ if (empty($vars['title'])) { } echo elgg_view('page_elements/html_begin', $vars); +// @todo - move the css below into it's own style-sheet +// that is called when running as a private network +?> + + + $vars['sysmessages'])); -echo "
$view
"; +echo "
$view
"; echo '
'; echo "

Welcome to:
$title

"; echo "
{$vars['body']}
"; -- cgit v1.2.3