--- nfo/php/libs/org.netfrag.glib/utils/links.php 2003/05/13 16:21:13 1.7 +++ nfo/php/libs/org.netfrag.glib/utils/links.php 2003/06/06 04:24:10 1.8 @@ -1,8 +1,11 @@ $_REQUEST[t], ap => $_REQUEST[ap] ); + $args = php::array_join_merge($here, $args); + $query_string = linkargs::action($action_name, $args); return html_a($query_string, "[$action_name]"); } @@ -129,6 +138,25 @@ return html_a($url, $caption); } + function here($caption, $args = array()) { + + // 2003-06-03: css-style handling + $css_style = $args[_css_style]; + unset($args[_css_style]); + + $here = array( t => $_REQUEST[t], ap => $_REQUEST[ap] ); + $args = php::array_join_merge($here, $args); + $query_string = url::query($args); + $link = html_a($query_string, $caption); + + // 2003-06-03: css-style handling + if ($css_style) { + $link->set_style($css_style); + } + + return $link; + } + }