| @@ 16-27 (lines=12) @@ | ||
| 13 | } |
|
| 14 | protected function initContent($content){ |
|
| 15 | if(\is_array($content)){ |
|
| 16 | if(JArray::isAssociative($content)===false){ |
|
| 17 | $icon=@$content[0]; |
|
| 18 | $title=@$content[1]; |
|
| 19 | $desc=@$content[2]; |
|
| 20 | }else{ |
|
| 21 | $icon=@$content["icon"]; |
|
| 22 | $image=@$content["image"]; |
|
| 23 | $title=@$content["title"]; |
|
| 24 | $header=@$content["header"]; |
|
| 25 | $desc=@$content["description"]; |
|
| 26 | $items=@$content["items"]; |
|
| 27 | } |
|
| 28 | if(isset($icon)===true){ |
|
| 29 | $this->setIcon($icon); |
|
| 30 | } |
|
| @@ 15-25 (lines=11) @@ | ||
| 12 | } |
|
| 13 | protected function initContent($content){ |
|
| 14 | if(\is_array($content)){ |
|
| 15 | if(JArray::isAssociative($content)===false){ |
|
| 16 | $icon=@$content[0]; |
|
| 17 | $title=@$content[1]; |
|
| 18 | $desc=@$content[2]; |
|
| 19 | $status=@$content[3]; |
|
| 20 | }else{ |
|
| 21 | $icon=@$content["icon"]; |
|
| 22 | $title=@$content["title"]; |
|
| 23 | $desc=@$content["description"]; |
|
| 24 | $status=@$content["status"]; |
|
| 25 | } |
|
| 26 | if(isset($icon)===true){ |
|
| 27 | $this->setIcon($icon); |
|
| 28 | } |
|