| @@ 978-984 (lines=7) @@ | ||
| 975 | $selectWrap->appendChild($select); |
|
| 976 | $wrap->appendChild($selectWrap); |
|
| 977 | } |
|
| 978 | if ($this->is('allow_new')) { |
|
| 979 | $wrap->appendChild(new XMLElement('button', __('Create new'), array( |
|
| 980 | 'type' => 'button', |
|
| 981 | 'class' => 'create', |
|
| 982 | 'data-create' => '', |
|
| 983 | ))); |
|
| 984 | } |
|
| 985 | if ($this->is('allow_link')) { |
|
| 986 | $wrap->appendChild(new XMLElement('button', __('Link to entry'), array( |
|
| 987 | 'type' => 'button', |
|
| @@ 985-991 (lines=7) @@ | ||
| 982 | 'data-create' => '', |
|
| 983 | ))); |
|
| 984 | } |
|
| 985 | if ($this->is('allow_link')) { |
|
| 986 | $wrap->appendChild(new XMLElement('button', __('Link to entry'), array( |
|
| 987 | 'type' => 'button', |
|
| 988 | 'class' => 'link', |
|
| 989 | 'data-link' => '', |
|
| 990 | ))); |
|
| 991 | } |
|
| 992 | ||
| 993 | return $wrap; |
|
| 994 | } |
|