aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/url.php
blob: 98fb610a1b4a777fab4d79e5153424731909291c (plain)
1
2
3
4
5
6
7
8
9
10
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>";
    }

?>