public static function get_icon($name, $title) { $path = dirname(__FILE__) . "/icons/{$name}.png"; $rel = Dumper::calculate_relative_path($path); $ret = "<img style=\"padding: 0 2px 0 2px\" src=\"{$rel}\" title=\"{$title}\" alt=\"name\" />"; return $ret; }