Beispiel #1
0
function charInsertChar($start, $end = '', $title = null)
{
    $estart = charInsertJsString($start);
    $eend = charInsertJsString($end);
    if ($eend == '') {
        $inline = charInsertDisplay($start);
    } else {
        $inline = charInsertDisplay($start . $end);
    }
    return Xml::element('a', array('onclick' => "insertTags('{$estart}','{$eend}','');return false", 'href' => '#'), $inline);
}
function charInsertChar($start, $end = '', $title = null)
{
    $estart = charInsertJsString($start);
    $eend = charInsertJsString($end);
    if ($eend == '') {
        $inline = charInsertDisplay($start);
    } else {
        $inline = charInsertDisplay($start . $end);
    }
    if ($title) {
        $extra = ' title="' . htmlspecialchars($title) . '"';
    } else {
        $extra = '';
    }
    return wfElement('a', array('onclick' => "insertTags('{$estart}','{$eend}','');return false", 'href' => '#'), $inline);
}