From cbc74d984665a8bc0de18e0fa7c2fe270e9b7476 Mon Sep 17 00:00:00 2001
From: cash
Date: Tue, 14 Dec 2010 23:09:41 +0000
Subject: moved account views into core views - account forms are next
git-svn-id: http://code.elgg.org/elgg/trunk@7622 36083f99-b078-4883-b0ff-0f9b5a30f544
---
views/default/core/account/login_box.php | 25 +++++
views/default/core/account/login_dropdown.php | 52 ++++++++++
views/default/core/account/login_walled_garden.php | 114 +++++++++++++++++++++
3 files changed, 191 insertions(+)
create mode 100644 views/default/core/account/login_box.php
create mode 100644 views/default/core/account/login_dropdown.php
create mode 100644 views/default/core/account/login_walled_garden.php
(limited to 'views/default/core')
diff --git a/views/default/core/account/login_box.php b/views/default/core/account/login_box.php
new file mode 100644
index 000000000..eb37d7554
--- /dev/null
+++ b/views/default/core/account/login_box.php
@@ -0,0 +1,25 @@
+https_login)) && ($CONFIG->https_login)) {
+ $login_url = str_replace("http:", "https:", $login_url);
+}
+?>
+
+
+
+ $form_body, 'action' => "{$login_url}action/login"));
+ ?>
+
+
diff --git a/views/default/core/account/login_dropdown.php b/views/default/core/account/login_dropdown.php
new file mode 100644
index 000000000..dc124f4e8
--- /dev/null
+++ b/views/default/core/account/login_dropdown.php
@@ -0,0 +1,52 @@
+";
+
+$login_url = elgg_get_site_url();
+if ((isset($CONFIG->https_login)) && ($CONFIG->https_login)) {
+ $login_url = str_replace("http", "https", elgg_get_site_url());
+}
+
+?>
+
+
+
+
\ No newline at end of file
diff --git a/views/default/core/account/login_walled_garden.php b/views/default/core/account/login_walled_garden.php
new file mode 100644
index 000000000..9f407bdff
--- /dev/null
+++ b/views/default/core/account/login_walled_garden.php
@@ -0,0 +1,114 @@
+" . elgg_echo('username') . "
" . elgg_view('input/text', array('internalname' => 'username', 'class' => 'login-textarea username')) . "";
+$form_body .= "
";
+$form_body .= "
";
+
+$form_body .= elgg_view('input/submit', array('value' => elgg_echo('login')));
+$form_body .= "";
+
+$register = elgg_echo('register');
+$lost_password = elgg_echo('user:password:lost');
+$form_body .= '';
+$form_body .= $CONFIG->allow_registration ? "$register | " : '';
+$form_body .= "$lost_password";
+$form_body .= '
';
+*/
+
+$form_body = elgg_view('account/forms/login');
+$form_body .= elgg_view('input/hidden', array('internalname' => 'returntoreferer', 'value' => 'true'));
+
+$login_url = elgg_get_site_url();
+if ((isset($CONFIG->https_login)) && ($CONFIG->https_login)) {
+ $login_url = str_replace("http", "https", elgg_get_site_url());
+}
+?>
+
+ $form_body, 'action' => "{$login_url}action/login"));
+ echo elgg_view('login/extend'); // view for plugins to extend
+?>
+
+allow_registration) {
+ $title = elgg_echo('register');
+ $body = elgg_view("account/forms/register", array(
+ 'friend_guid' => (int) get_input('friend_guid', 0),
+ 'invitecode' => get_input('invitecode'),
+ ));
+
+ echo <<<__HTML
+
+__HTML;
+}
+?>
+ " . elgg_echo('user:password:text') . "";
+ $lostpassword_form_body .= "";
+ $lostpassword_form_body .= elgg_view('input/captcha');
+ $lostpassword_form_body .= "" . elgg_view('input/submit', array('value' => elgg_echo('request'))) . "
";
+
+ ?>
+
+
+
--
cgit v1.2.3