protected function _Load() { if (null === $this->wikiparser) { // Plain standard parsing can use the efficient ajax url $parse_uri = '/ajax/wikiparse'; } else { $parse_uri = get_instance()->uri->uri_string() . '?input_wikitext_preview_field=' . urlencode($this->name); } // Toolbar ?> <div id="<?php echo $this->id . '__toolbar'; ?> "></div><?php // Textarea parent::_Load(); // Preview if ($this->preview) { ?> <div id="<?php echo $this->id . '__preview'; ?> " class="input_wikitext_preview"<?php if ($this->value === '') { ?> style="display:none"<?php } ?> ><?php echo $this->ValueXhtml(); ?> </div><?php } // Toolbar initialisation echo js_block('mwSetupToolbar(' . js_literalise($this->id . '__toolbar') . ',' . js_literalise($this->id . '__val') . ',' . 'false' . ($this->preview ? ',[' . js_literalise($this->id . '__preview') . ',' . js_literalise($parse_uri) . ']' : '') . ');'); }
} if ($editable) { ?> <div id="<?php echo xml_escape('tip_' . $tip['id'] . '_edit'); ?> "><?php $tip['edit_form']->Load(); ?> <input class="button" type="submit" value="Save all tips" /><?php ?> <div style="clear:both"></div><?php ?> </div><?php if ($viewable) { echo js_block('document.getElementById(' . js_literalise('tip_' . $tip['id'] . '_view') . ').style.display="";' . 'document.getElementById(' . js_literalise('tip_' . $tip['id'] . '_edit') . ').style.display="none";'); } } ?> </div><?php } ?> </fieldset><?php ?> </form><?php } if (null !== $AddForm) { ?> <h2>add tip</h2><?php ?> <form class="form" method="post" action="<?php