Ajax/semantic/html/elements/HtmlIconGroups.php 1 location
|
@@ 20-27 (lines=8) @@
|
17 |
|
$this->setSize($size); |
18 |
|
} |
19 |
|
|
20 |
|
public function addIcon($icon,$size=""){ |
21 |
|
$iconO=$icon; |
22 |
|
if(\is_string($icon)){ |
23 |
|
$iconO=new HtmlIcon("icon-".$this->identifier, $icon); |
24 |
|
$iconO->setSize($size); |
25 |
|
} |
26 |
|
$this->addContent($iconO); |
27 |
|
} |
28 |
|
|
29 |
|
public function getIcon($index){ |
30 |
|
return $this->content[$index]; |
Ajax/semantic/html/elements/HtmlLabel.php 1 location
|
@@ 50-57 (lines=8) @@
|
47 |
|
* @param boolean $before |
48 |
|
* @return \Ajax\semantic\html\elements\HtmlIcon |
49 |
|
*/ |
50 |
|
public function addIcon($icon,$before=true){ |
51 |
|
$iconO=$icon; |
52 |
|
if(\is_string($icon)){ |
53 |
|
$iconO=new HtmlIcon("icon-".$this->identifier, $icon); |
54 |
|
} |
55 |
|
$this->addContent($iconO,$before); |
56 |
|
return $iconO; |
57 |
|
} |
58 |
|
|
59 |
|
/** |
60 |
|
* Adds an image to emphasize |