@@ -3,7 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use Ajax\bootstrap\html\base\CssSize; |
| 5 | 5 | use Ajax\JsUtils; |
| 6 | - |
|
| 7 | 6 | use Ajax\bootstrap\html\base\HtmlBsDoubleElement; |
| 8 | 7 | |
| 9 | 8 | /** |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Ajax\bootstrap\html\base\CssRef; |
| 8 | 8 | use Ajax\bootstrap\html\base\HtmlBsDoubleElement; |
| 9 | 9 | use Ajax\bootstrap\html\content\HtmlCarouselItem; |
| 10 | - |
|
| 11 | 10 | use Ajax\common\html\BaseHtml; |
| 12 | 11 | /** |
| 13 | 12 | * Composant Twitter Bootstrap Carousel |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Ajax\bootstrap\html\base\HtmlBsDoubleElement; |
| 6 | 6 | use Ajax\JsUtils; |
| 7 | - |
|
| 8 | 7 | use Ajax\common\html\html5\HtmlSelect; |
| 9 | 8 | |
| 10 | 9 | class HtmlForm extends HtmlBsDoubleElement { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Ajax\bootstrap\html\base\HtmlBsDoubleElement; |
| 6 | 6 | use Ajax\JsUtils; |
| 7 | - |
|
| 8 | 7 | use Ajax\bootstrap\html\base\CssRef; |
| 9 | 8 | use Ajax\service\JArray; |
| 10 | 9 | |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Ajax\semantic\html\base\HtmlSemCollection; |
| 6 | 6 | use Ajax\semantic\html\base\constants\Wide; |
| 7 | 7 | use Ajax\JsUtils; |
| 8 | - |
|
| 9 | 8 | use Ajax\semantic\html\base\HtmlSemDoubleElement; |
| 10 | 9 | use Ajax\semantic\html\collections\form\traits\FieldsTrait; |
| 11 | 10 | |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Ajax\semantic\html\base\HtmlSemNavElement; |
| 6 | 6 | use Ajax\semantic\html\base\HtmlSemDoubleElement; |
| 7 | - |
|
| 8 | 7 | use Ajax\semantic\html\elements\HtmlIcon; |
| 9 | 8 | use Ajax\JsUtils; |
| 10 | 9 | |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Ajax\semantic\html\content\table\HtmlTableContent; |
| 7 | 7 | use Ajax\semantic\html\base\constants\Variation; |
| 8 | 8 | use Ajax\JsUtils; |
| 9 | - |
|
| 10 | 9 | use Ajax\service\JArray; |
| 11 | 10 | |
| 12 | 11 | /** |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Ajax\semantic\html\base\HtmlSemDoubleElement; |
| 6 | 6 | use Ajax\semantic\html\elements\HtmlIcon; |
| 7 | 7 | use Ajax\JsUtils; |
| 8 | - |
|
| 9 | 8 | use Ajax\service\JArray; |
| 10 | 9 | use Ajax\semantic\html\elements\html5\HtmlImg; |
| 11 | 10 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | abstract class HtmlAbsractItem extends HtmlSemDoubleElement { |
| 13 | 13 | |
| 14 | - public function __construct($identifier, $baseClass,$content=NULL) { |
|
| 14 | + public function __construct($identifier, $baseClass, $content=NULL) { |
|
| 15 | 15 | parent::__construct($identifier, "div", $baseClass); |
| 16 | 16 | $this->content=array(); |
| 17 | 17 | $this->initContent($content); |
@@ -19,48 +19,48 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | protected abstract function initContent($content); |
| 21 | 21 | |
| 22 | - public function setIcon($icon){ |
|
| 22 | + public function setIcon($icon) { |
|
| 23 | 23 | $this->content["icon"]=new HtmlIcon("icon-".$this->identifier, $icon); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - public function setImage($image){ |
|
| 26 | + public function setImage($image) { |
|
| 27 | 27 | $image=new HtmlImg("icon-".$this->identifier, $image); |
| 28 | 28 | $image->asAvatar(); |
| 29 | 29 | $this->content["image"]=$image; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - private function createContent(){ |
|
| 33 | - $this->content["content"]=new HtmlSemDoubleElement("content-".$this->identifier,"div","content"); |
|
| 32 | + private function createContent() { |
|
| 33 | + $this->content["content"]=new HtmlSemDoubleElement("content-".$this->identifier, "div", "content"); |
|
| 34 | 34 | return $this->content["content"]; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - public function setTitle($title,$description=NULL,$baseClass="title"){ |
|
| 38 | - $title=new HtmlSemDoubleElement("","div",$baseClass,$title); |
|
| 39 | - if(\array_key_exists("content", $this->content)===false){ |
|
| 37 | + public function setTitle($title, $description=NULL, $baseClass="title") { |
|
| 38 | + $title=new HtmlSemDoubleElement("", "div", $baseClass, $title); |
|
| 39 | + if (\array_key_exists("content", $this->content)===false) { |
|
| 40 | 40 | $this->createContent(); |
| 41 | 41 | } |
| 42 | 42 | $this->content["content"]->addContent($title); |
| 43 | - if(isset($description)){ |
|
| 44 | - $description=new HtmlSemDoubleElement("","div","description",$description); |
|
| 43 | + if (isset($description)) { |
|
| 44 | + $description=new HtmlSemDoubleElement("", "div", "description", $description); |
|
| 45 | 45 | $this->content["content"]->addContent($description); |
| 46 | 46 | } |
| 47 | 47 | return $this; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - public function getPart($partName="header"){ |
|
| 51 | - $content=\array_merge($this->content["content"]->getContent(),array(@$this->content["icon"],@$this->content["image"])); |
|
| 50 | + public function getPart($partName="header") { |
|
| 51 | + $content=\array_merge($this->content["content"]->getContent(), array(@$this->content["icon"], @$this->content["image"])); |
|
| 52 | 52 | return $this->getElementByPropertyValue("class", $partName, $content); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - public function setActive(){ |
|
| 55 | + public function setActive() { |
|
| 56 | 56 | $this->setTagName("div"); |
| 57 | 57 | $this->removeProperty("href"); |
| 58 | 58 | return $this->addToPropertyCtrl("class", "active", array("active")); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - public function asLink($href=NULL,$part=NULL){ |
|
| 61 | + public function asLink($href=NULL, $part=NULL) { |
|
| 62 | 62 | $this->setTagName("a"); |
| 63 | - if(isset($href)) |
|
| 63 | + if (isset($href)) |
|
| 64 | 64 | $this->setProperty("href", $href); |
| 65 | 65 | return $this; |
| 66 | 66 | } |
@@ -72,8 +72,8 @@ discard block |
||
| 72 | 72 | * @see \Ajax\semantic\html\base\HtmlSemDoubleElement::compile() |
| 73 | 73 | */ |
| 74 | 74 | public function compile(JsUtils $js=NULL, $view=NULL) { |
| 75 | - if(\is_array($this->content)) |
|
| 76 | - $this->content=JArray::sortAssociative($this->content, [ "icon","image","content" ]); |
|
| 75 | + if (\is_array($this->content)) |
|
| 76 | + $this->content=JArray::sortAssociative($this->content, ["icon", "image", "content"]); |
|
| 77 | 77 | return parent::compile($js, $view); |
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | 80 | \ No newline at end of file |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Ajax\semantic\html\base\constants\Wide; |
| 6 | 6 | use Ajax\semantic\html\base\constants\Color; |
| 7 | 7 | use Ajax\JsUtils; |
| 8 | - |
|
| 9 | 8 | use Ajax\semantic\html\base\HtmlSemCollection; |
| 10 | 9 | use Ajax\semantic\html\base\traits\TextAlignmentTrait; |
| 11 | 10 | |