Add ui_hr so horizontal rows can be overriden rather than merely styled
authorJoe Cooper <joe@virtualmin.com>
Fri, 9 May 2008 09:37:08 +0000 (09:37 +0000)
committerJoe Cooper <joe@virtualmin.com>
Fri, 9 May 2008 09:37:08 +0000 (09:37 +0000)
ui-lib.pl

index 05a0035..8be77bb 100644 (file)
--- a/ui-lib.pl
+++ b/ui-lib.pl
@@ -1183,6 +1183,14 @@ else {
 return $mover;
 }
 
+# ui_hr()
+# Returns a horizontal row tag
+sub ui_hr
+{
+return &theme_ui_hr() if (defined(&theme_ui_hr));
+return "<hr>\n";
+}
+
 ####################### javascript functions
 
 # js_disable_input(&disable-inputs, &enable-inputs, [tag])