more bootstrap markup

This commit is contained in:
Uwe Steinmann 2016-01-26 10:28:43 +01:00
parent 8f7b604c9d
commit e3fe3e469f

View File

@ -381,30 +381,28 @@ class UI_Default {
function contentContainerStart() { /* {{{ */
echo "<div class=\"contentContainer\">\n";
echo "<div class=\"content\">\n";
echo "<div class=\"content-l\"><div class=\"content-r\"><div class=\"content-br\"><div class=\"content-bl\">\n";
echo "<div class=\"well".($class ? " ".$class : "")."\">\n";
return;
} /* }}} */
function contentContainerEnd() { /* {{{ */
echo "</div></div></div></div>\n</div>\n</div>\n";
echo "</div>\n";
return;
} /* }}} */
function contentHeading($heading, $noescape=false) { /* {{{ */
if($noescape)
echo "<div class=\"contentHeading\">".$heading."</div>\n";
echo "<legend>".$heading."</legend>\n";
else
echo "<div class=\"contentHeading\">".htmlspecialchars($heading)."</div>\n";
echo "<legend>".htmlspecialchars($heading)."</legend>\n";
return;
} /* }}} */
function contentSubHeading($heading, $first=false) { /* {{{ */
echo "<div class=\"contentSubHeading\"".($first ? " id=\"first\"" : "").">".htmlspecialchars($heading)."</div>\n";
echo "<h5>".$heading."</h5>";
return;
} /* }}} */
@ -644,6 +642,12 @@ class UI_Default {
print UI::getImgPath($img);
} /* }}} */
function errorMsg($msg) { /* {{{ */
echo "<div class=\"alert alert-error\">\n";
echo $msg;
echo "</div>\n";
} /* }}} */
static function exitError($pagetitle,$error) { /* {{{ */
UI::htmlStartPage($pagetitle);