aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/elements/topbar_logout.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/page/elements/topbar_logout.php')
-rw-r--r--views/default/page/elements/topbar_logout.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/views/default/page/elements/topbar_logout.php b/views/default/page/elements/topbar_logout.php
new file mode 100644
index 000000000..2d2ecf67c
--- /dev/null
+++ b/views/default/page/elements/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' => "action/logout",
+ 'text' => elgg_echo('logout'),
+ 'is_action' => TRUE
+));
+echo '</div>';