| @@ 1007-1013 (lines=7) @@ | ||
| 1004 | $selectWrap->appendChild($select); |
|
| 1005 | $fieldset->appendChild($selectWrap); |
|
| 1006 | } |
|
| 1007 | if ($this->is('allow_new')) { |
|
| 1008 | $fieldset->appendChild(new XMLElement('button', __('Create new'), array( |
|
| 1009 | 'type' => 'button', |
|
| 1010 | 'class' => 'create', |
|
| 1011 | 'data-create' => '', |
|
| 1012 | ))); |
|
| 1013 | } |
|
| 1014 | if ($this->is('allow_link')) { |
|
| 1015 | $fieldset->appendChild(new XMLElement('button', __('Link to entry'), array( |
|
| 1016 | 'type' => 'button', |
|
| @@ 1014-1020 (lines=7) @@ | ||
| 1011 | 'data-create' => '', |
|
| 1012 | ))); |
|
| 1013 | } |
|
| 1014 | if ($this->is('allow_link')) { |
|
| 1015 | $fieldset->appendChild(new XMLElement('button', __('Link to entry'), array( |
|
| 1016 | 'type' => 'button', |
|
| 1017 | 'class' => 'link', |
|
| 1018 | 'data-link' => '', |
|
| 1019 | ))); |
|
| 1020 | } |
|
| 1021 | $wrap->appendChild($fieldset); |
|
| 1022 | } |
|
| 1023 | else { |
|