aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/url.php
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-10 15:13:39 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-10 15:13:39 +0000
commitbbbbad20de5f318a099fb82ae56071073b0596a6 (patch)
tree8e2f564b78d646652ce8874f092e88b403edaa40 /views/default/output/url.php
parent6d69cb048b372e6e79b79ca2fe927b7c3e3efad2 (diff)
downloadelgg-bbbbad20de5f318a099fb82ae56071073b0596a6.tar.gz
elgg-bbbbad20de5f318a099fb82ae56071073b0596a6.tar.bz2
some new views
git-svn-id: https://code.elgg.org/elgg/trunk@137 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/output/url.php')
-rw-r--r--views/default/output/url.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/views/default/output/url.php b/views/default/output/url.php
new file mode 100644
index 000000000..98fb610a1
--- /dev/null
+++ b/views/default/output/url.php
@@ -0,0 +1,11 @@
+<?php
+
+ $val = trim($vars['value']);
+ if (!empty($val)) {
+ if (substr_count($val, "http://") == 0) {
+ $val = "http://" . $val;
+ }
+ echo "<a href=\"{$val}\" target=\"_blank\">{$val}</a>";
+ }
+
+?> \ No newline at end of file