phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
HtmlLabeledIconMenu.php
Go to the documentation of this file.
1 <?php
2 
4 
7 
15 
16 
21  public function __construct( $identifier, $items=array()){
22  parent::__construct( $identifier, $items);
23  $this->addToProperty("class", "labeled icon");
24  }
25 
30  protected function createItem($value) {
31  $text="";
32  $v=$value;
33  if(\is_array($value)){
34  $v=@$value[0];
35  $text=@$value[1];
36  }
37  $count=\sizeof($this->content);
38  $value=new HtmlIcon("icon-".$count, $v);
39  $value->wrap("",$text);
40  $itemO=new HtmlLink("item-".$count,"",$value);
41  return $itemO->setClass("item");
42  }
43 }
addToProperty($name, $value, $separator=" ")
Semantic Icon component.
Definition: HtmlIcon.php:14
Semantic Menu component with only labeled icons.