| @@ 410-421 (lines=12) @@ | ||
| 407 | /** |
|
| 408 | * @return mixed |
|
| 409 | */ |
|
| 410 | public function render() |
|
| 411 | { |
|
| 412 | $this->addScript(); |
|
| 413 | ||
| 414 | $content = $this->html(); |
|
| 415 | ||
| 416 | if ($content && $this->interactor instanceof Interactor\Form) { |
|
| 417 | return $this->interactor->addElementAttr($content, $this->selector); |
|
| 418 | } |
|
| 419 | ||
| 420 | return $this->html(); |
|
| 421 | } |
|
| 422 | } |
|
| @@ 55-70 (lines=16) @@ | ||
| 52 | /** |
|
| 53 | * @return string |
|
| 54 | */ |
|
| 55 | public function render() |
|
| 56 | { |
|
| 57 | $this->addScript(); |
|
| 58 | ||
| 59 | $content = $this->html(); |
|
| 60 | ||
| 61 | if ($content && $this->interactor instanceof Interactor\Form) { |
|
| 62 | return $this->interactor->addElementAttr($content, $this->selector); |
|
| 63 | } |
|
| 64 | ||
| 65 | return sprintf( |
|
| 66 | "<a href='javascript:void(0);' class='%s'>%s</a>", |
|
| 67 | $this->getElementClass(), |
|
| 68 | $this->name() |
|
| 69 | ); |
|
| 70 | } |
|
| 71 | } |
|