| @@ 960-966 (lines=7) @@ | ||
| 957 | $selectWrap->appendChild($select); |
|
| 958 | $wrap->appendChild($selectWrap); |
|
| 959 | } |
|
| 960 | if ($this->is('allow_new')) { |
|
| 961 | $wrap->appendChild(new XMLElement('button', __('Create new'), array( |
|
| 962 | 'type' => 'button', |
|
| 963 | 'class' => 'create', |
|
| 964 | 'data-create' => '', |
|
| 965 | ))); |
|
| 966 | } |
|
| 967 | if ($this->is('allow_link')) { |
|
| 968 | $wrap->appendChild(new XMLElement('button', __('Link to entry'), array( |
|
| 969 | 'type' => 'button', |
|
| @@ 967-973 (lines=7) @@ | ||
| 964 | 'data-create' => '', |
|
| 965 | ))); |
|
| 966 | } |
|
| 967 | if ($this->is('allow_link')) { |
|
| 968 | $wrap->appendChild(new XMLElement('button', __('Link to entry'), array( |
|
| 969 | 'type' => 'button', |
|
| 970 | 'class' => 'link', |
|
| 971 | 'data-link' => '', |
|
| 972 | ))); |
|
| 973 | } |
|
| 974 | ||
| 975 | return $wrap; |
|
| 976 | } |
|