aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements/elgg_topbar_logout.php
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-10 18:26:01 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-10 18:26:01 +0000
commit45d1a0ec7c96297f204744a5ca8e340c08ba8ea9 (patch)
tree06bf83c8b5ab11f652981b8fd0112604eb671d61 /views/default/page_elements/elgg_topbar_logout.php
parent37446557462b35b5c6690f7f8f739c4dd861b85b (diff)
downloadelgg-45d1a0ec7c96297f204744a5ca8e340c08ba8ea9.tar.gz
elgg-45d1a0ec7c96297f204744a5ca8e340c08ba8ea9.tar.bz2
Breaking logout link into a separate view.
git-svn-id: http://code.elgg.org/elgg/trunk@5993 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_elements/elgg_topbar_logout.php')
-rw-r--r--views/default/page_elements/elgg_topbar_logout.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/views/default/page_elements/elgg_topbar_logout.php b/views/default/page_elements/elgg_topbar_logout.php
new file mode 100644
index 000000000..d37c5f126
--- /dev/null
+++ b/views/default/page_elements/elgg_topbar_logout.php
@@ -0,0 +1,14 @@
+<?php
+/**
+ * A standard logout link
+ *
+ * Called within the Elgg topbar view.
+ */
+
+echo '<div class="log_out">';
+echo elgg_view('output/url', array(
+ 'href' => "{$vars['url']}action/logout",
+ 'text' => elgg_echo('logout'),
+ 'is_action' => TRUE
+));
+echo '</div>';