aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/url.php
diff options
context:
space:
mode:
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