@@ -56,20 +56,23 @@ |
||
| 56 | 56 | public function asLink($href=NULL,$target=NULL) { |
| 57 | 57 | if (isset($href)) { |
| 58 | 58 | $_target=""; |
| 59 | - if(isset($target)) |
|
| 60 | - $_target="target='{$target}'"; |
|
| 59 | + if(isset($target)) { |
|
| 60 | + $_target="target='{$target}'"; |
|
| 61 | + } |
|
| 61 | 62 | $this->wrap("<a href='" . $href . "' {$_target}>", "</a>"); |
| 62 | 63 | } |
| 63 | 64 | return $this->addToProperty("class", "link"); |
| 64 | 65 | } |
| 65 | 66 | |
| 66 | 67 | public function addLabel($label, $before=false, $emoji='slight_smile') { |
| 67 | - if($before) |
|
| 68 | - $this->wrap($label); |
|
| 69 | - else |
|
| 70 | - $this->wrap("", $label); |
|
| 71 | - if(isset($emoji)) |
|
| 72 | - $this->setEmoji($emoji); |
|
| 68 | + if($before) { |
|
| 69 | + $this->wrap($label); |
|
| 70 | + } else { |
|
| 71 | + $this->wrap("", $label); |
|
| 72 | + } |
|
| 73 | + if(isset($emoji)) { |
|
| 74 | + $this->setEmoji($emoji); |
|
| 75 | + } |
|
| 73 | 76 | return $this; |
| 74 | 77 | } |
| 75 | 78 | |