@@ -22,8 +22,9 @@ discard block |
||
22 | 22 | public function __construct($identifier, $caption="", $icon=NULL, $tagName="div") { |
23 | 23 | parent::__construct($identifier, $tagName, "ui label"); |
24 | 24 | $this->content=$caption; |
25 | - if (isset($icon)) |
|
26 | - $this->addIcon($icon); |
|
25 | + if (isset($icon)) { |
|
26 | + $this->addIcon($icon); |
|
27 | + } |
|
27 | 28 | } |
28 | 29 | |
29 | 30 | /** |
@@ -32,10 +33,11 @@ discard block |
||
32 | 33 | * @return HtmlLabel |
33 | 34 | */ |
34 | 35 | public function setPointing($value=Direction::NONE) { |
35 | - if($value==="left" || $value==="right") |
|
36 | - return $this->addToPropertyCtrl("class", $value." pointing", Direction::getConstantValues("pointing")); |
|
37 | - else |
|
38 | - return $this->addToPropertyCtrl("class", "pointing ".$value, Direction::getConstantValues("pointing",true)); |
|
36 | + if($value==="left" || $value==="right") { |
|
37 | + return $this->addToPropertyCtrl("class", $value." pointing", Direction::getConstantValues("pointing")); |
|
38 | + } else { |
|
39 | + return $this->addToPropertyCtrl("class", "pointing ".$value, Direction::getConstantValues("pointing",true)); |
|
40 | + } |
|
39 | 41 | } |
40 | 42 | |
41 | 43 | /** |
@@ -129,10 +131,11 @@ discard block |
||
129 | 131 | } |
130 | 132 | |
131 | 133 | public function setAttached($side=Side::TOP,$direction=Direction::NONE){ |
132 | - if($direction!==Direction::NONE) |
|
133 | - return $this->addToPropertyCtrl("class", $side." ".$direction." attached",Side::getConstantValues($direction." attached")); |
|
134 | - else |
|
135 | - return $this->addToPropertyCtrl("class", $side." attached",Side::getConstantValues("attached")); |
|
134 | + if($direction!==Direction::NONE) { |
|
135 | + return $this->addToPropertyCtrl("class", $side." ".$direction." attached",Side::getConstantValues($direction." attached")); |
|
136 | + } else { |
|
137 | + return $this->addToPropertyCtrl("class", $side." attached",Side::getConstantValues("attached")); |
|
138 | + } |
|
136 | 139 | } |
137 | 140 | |
138 | 141 | public static function ribbon($identifier, $caption) { |