| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function show($text = '', $summary = '') |
||
| 26 | { |
||
| 27 | global $ID; |
||
| 28 | global $lang; |
||
| 29 | |||
| 30 | // print intro |
||
| 31 | print p_locale_xhtml('conflict'); |
||
| 32 | |||
| 33 | // create the draft form |
||
| 34 | $form = new Form(['id' => 'dw__editform']); |
||
| 35 | $form->addTagOpen('div')->addClass('no'); |
||
| 36 | $form->setHiddenField('id', $ID); |
||
| 37 | $form->setHiddenField('wikitext', $text); |
||
| 38 | $form->setHiddenField('summary', $summary); |
||
| 39 | |||
| 40 | $form->addButton('do[save]', $lang['btn_save'] )->attrs(['type' => 'submit', 'accesskey' => 's']); |
||
| 41 | $form->addButton('do[cancel]', $lang['btn_cancel'] )->attrs(['type' => 'submit']); |
||
| 42 | $form->addTagClose('div'); |
||
| 43 | |||
| 44 | // emit HTML_CONFLICTFORM_OUTPUT event, print the form |
||
| 45 | Event::createAndTrigger('HTML_CONFLICTFORM_OUTPUT', $form, 'html_form_output', false); |
||
| 46 | |||
| 47 | print '<br /><br /><br /><br />'.DOKU_LF; |
||
| 48 | } |
||
| 49 | |||
| 51 |