| @@ 988-994 (lines=7) @@ | ||
| 985 | $selectWrap->appendChild($select); |
|
| 986 | $fieldset->appendChild($selectWrap); |
|
| 987 | } |
|
| 988 | if ($this->is('allow_new')) { |
|
| 989 | $fieldset->appendChild(new XMLElement('button', __('Create new'), array( |
|
| 990 | 'type' => 'button', |
|
| 991 | 'class' => 'create', |
|
| 992 | 'data-create' => '', |
|
| 993 | ))); |
|
| 994 | } |
|
| 995 | if ($this->is('allow_link')) { |
|
| 996 | $fieldset->appendChild(new XMLElement('button', __('Link to entry'), array( |
|
| 997 | 'type' => 'button', |
|
| @@ 995-1001 (lines=7) @@ | ||
| 992 | 'data-create' => '', |
|
| 993 | ))); |
|
| 994 | } |
|
| 995 | if ($this->is('allow_link')) { |
|
| 996 | $fieldset->appendChild(new XMLElement('button', __('Link to entry'), array( |
|
| 997 | 'type' => 'button', |
|
| 998 | 'class' => 'link', |
|
| 999 | 'data-link' => '', |
|
| 1000 | ))); |
|
| 1001 | } |
|
| 1002 | $wrap->appendChild($fieldset); |
|
| 1003 | } |
|
| 1004 | else { |
|