diff --git a/lang/en/lang.php b/lang/en/lang.php index 20da35f..3ae289b 100755 --- a/lang/en/lang.php +++ b/lang/en/lang.php @@ -27,6 +27,8 @@ $lang['meta_box_jira_tickets_none'] = 'jira associated tickets found: none'; $lang['meta_box_tags_none'] = 'tags found: none'; $lang['js']['meta_box_toc_none'] = 'no Table of Contents available'; +$lang['tab_tags'] = 'Tags'; + $lang['quality_trigger'] = 'toggle page analysis'; $lang['prefix_tasks'] = 'open tasks: '; diff --git a/tpl/nav-meta-box.php b/tpl/nav-meta-box.php index 4b9390f..05077fb 100755 --- a/tpl/nav-meta-box.php +++ b/tpl/nav-meta-box.php @@ -1,39 +1,59 @@ 'spr__tab-toc', + 'label' => $lang['toc'], + 'tab' => $toc, + 'count' => null, + ); +} + +/** @var helper_plugin_tagging $tags */ +$tags = plugin_load('helper', 'tagging'); +if($tags) { + $tabs[] = array( + 'id' => 'spr__tab-tags', + 'label' => tpl_getLang('tab_tags'), + 'tab' => $tags->tpl_tags(false), + 'count' => null, // FIXME + ); +} + +// fixme add magicmatcher info ?>