add very cool button_glyph helper

This commit is contained in:
Felix Favre 2014-12-06 17:41:16 +01:00
parent 2654fcf228
commit de65cd64e1
1 changed files with 7 additions and 0 deletions

View File

@ -306,6 +306,13 @@ function button($href, $label, $class = "") {
return '<a href="' . $href . '" class="btn btn-default ' . $class . '">' . $label . '</a>'; return '<a href="' . $href . '" class="btn btn-default ' . $class . '">' . $label . '</a>';
} }
/**
* Rendert einen Knopf mit Glyph
*/
function button_glyph($href, $glyph, $class= "") {
return button($href, glyph($glyph), $class);
}
/** /**
* Rendert eine Toolbar mit Knöpfen * Rendert eine Toolbar mit Knöpfen
*/ */