aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/email.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/output/email.php')
-rw-r--r--views/default/output/email.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/views/default/output/email.php b/views/default/output/email.php
new file mode 100644
index 000000000..0a4abe658
--- /dev/null
+++ b/views/default/output/email.php
@@ -0,0 +1,21 @@
+<?php
+
+ /**
+ * Elgg email output
+ * Displays an email address that was entered using an email input field
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ * @uses $vars['value'] The email address to display
+ *
+ */
+
+ if (!empty($vars['value'])) {
+ echo "<a href=\"mailto:" . $vars['value'] . "\">". $vars['value'] ."</a>";
+ }
+?> \ No newline at end of file