| @@ 1186-1192 (lines=7) @@ | ||
| 1183 | $selectWrap->appendChild($select); |
|
| 1184 | $div->appendChild($selectWrap); |
|
| 1185 | } |
|
| 1186 | if ($this->is('allow_new')) { |
|
| 1187 | $div->appendChild(new XMLElement('button', __('Create new'), array( |
|
| 1188 | 'type' => 'button', |
|
| 1189 | 'class' => 'create', |
|
| 1190 | 'data-create' => '', |
|
| 1191 | ))); |
|
| 1192 | } |
|
| 1193 | if ($this->is('allow_link')) { |
|
| 1194 | $div->appendChild(new XMLElement('button', __('Link to entry'), array( |
|
| 1195 | 'type' => 'button', |
|
| @@ 1193-1199 (lines=7) @@ | ||
| 1190 | 'data-create' => '', |
|
| 1191 | ))); |
|
| 1192 | } |
|
| 1193 | if ($this->is('allow_link')) { |
|
| 1194 | $div->appendChild(new XMLElement('button', __('Link to entry'), array( |
|
| 1195 | 'type' => 'button', |
|
| 1196 | 'class' => 'link', |
|
| 1197 | 'data-link' => '', |
|
| 1198 | ))); |
|
| 1199 | } |
|
| 1200 | $fieldset->appendChild($div); |
|
| 1201 | $wrap->appendChild($fieldset); |
|
| 1202 | } |
|