function plugin_navibar2_convert()
{
    global $vars, $hr;
    $page = strip_bracket($vars['page']);
    $navi_page = plugin_navibar2_search_navipage($page);
    if (!empty($navi_page)) {
        return plugin_navibar2_makehtml($navi_page);
    }
    exist_plugin('navibar');
    return do_plugin_convert('navibar', NAVIBAR2_DEFAULT_PARM) . $hr;
}
if (!isset($_LANG)) {
    die('$_LANG is not set');
}
if (!defined('PKWK_READONLY')) {
    die('PKWK_READONLY is not set');
}
// MenuBar & SideBar
$menu = exist_plugin_convert('menu') ? do_plugin_convert('menu') : '';
$side = exist_plugin_convert('side') ? do_plugin_convert('side') : '';
$headarea = exist_plugin_convert('headarea') ? do_plugin_convert('headarea') : '';
$footarea = exist_plugin_convert('footarea') ? do_plugin_convert('footarea') : '';
// NaviBar
if (defined('EDIT_OK') && EDIT_OK) {
    switch ($navi_plugin) {
        case 'navibar2':
            if (exist_plugin_convert('navibar2') && plugin_navibar2_search_navipage($vars['page']) != '') {
                $navi = do_plugin_convert('navibar2');
                if (exist_plugin('statichtml') && $is_read) {
                    // PukiWiki Static!
                    $statichtml = new PluginStatichtml();
                    $htmllink = '<a rel="nofollow" href="' . $statichtml->get_dump_url($vars['page']) . '">HTML</a>';
                    $publishlink = '<a rel="nofollow" href="' . get_script_uri() . '?cmd=statichtml&amp;page=' . $vars['page'] . '">Publish</a>';
                    $navi = str_replace('</tr>', '<td class="navimenu">' . $htmllink . '</td><td class="navimenu">' . $publishlink . '</td></tr>', $navi);
                }
            }
            break;
        case 'navibar':
            if (exist_plugin_convert('navibar')) {
                $navi = do_plugin_convert('navibar', $navibar_arg);
                if (exist_plugin('statichtml') && $is_read) {
                    // PukiWiki Static!