Adding Display::url function

skala
Julio Montoya 14 years ago
parent 6320ea763b
commit 72a83f6e00
  1. 7
      main/inc/lib/display.lib.php

@ -703,6 +703,13 @@ class Display {
return $return_value;
}
public static function url($name, $url, $extra_attributes = array()) {
if (!empty($url)) {
$extra_attributes['href']= $url;
}
return self::tag('a', $name, $extra_attributes);
}
public function select($name, $values, $default = -1, $parameter_list = array(), $show_blank_item = true) {
$extra = '';
foreach($parameter_list as $key=>$parameter) {

Loading…
Cancel
Save