phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlBsDoubleElement.php
Go to the documentation of this file.
1<?php
2
4
9
11
12 public function addBadge($caption, $leftSeparator="&nbsp;") {
13 $badge=new HtmlBadge("badge-".$this->identifier, $caption);
14 $badge->wrap($leftSeparator);
15 $this->addContent($badge);
16 return $this;
17 }
18
19 public function addLabel($caption, $style="label-default", $leftSeparator="&nbsp;") {
20 $label=new HtmlLabel("label-".$this->identifier, $caption, $style);
21 $label->wrap($leftSeparator);
22 $this->addContent($label);
23 return $this;
24 }
25
26 public function addGlyph($glyphicon,$before=true){
27 $glyph=new HtmlGlyphicon("");
28 $glyph->setGlyphicon($glyphicon);
29 $this->addContent($glyph,$before);
30 return $this;
31 }
32
33 public function wrapContentWithGlyph($glyphBefore,$glyphAfter=""){
34 $before=HtmlGlyphicon::getGlyphicon($glyphBefore)."&nbsp;";
35 $after="";
36 if($glyphAfter!==""){
37 $after="&nbsp;".HtmlGlyphicon::getGlyphicon($glyphAfter);
38 }
39 return $this->wrapContent($before,$after);
40 }
41}
Composant Twitter Bootstrap Glyphicon.
static getGlyphicon($glyph)
return an instance of GlyphButton with a glyph defined by string or index
addBadge($caption, $leftSeparator="&nbsp;")
addLabel($caption, $style="label-default", $leftSeparator="&nbsp;")
wrapContentWithGlyph($glyphBefore, $glyphAfter="")
addContent($content, $before=false)