function topic_icons_support_forum_connector_init()
{
    add_action('bb_head', 'topic_icons_support_forum_connector_turn_off_labels');
    add_action('bb_admin-header.php', 'topic_icons_support_forum_connector_turn_off_labels');
    topic_icons_register_status_interpreter('support-forum', new SupportForumStatusInterpreter());
    topic_icons_register_status_renderer('support-forum', new SupportForumStatusRenderer());
}
示例#2
0
function topic_icons_init()
{
    remove_filter('bb_topic_labels', 'bb_closed_label', 10);
    remove_filter('bb_topic_labels', 'bb_sticky_label', 20);
    add_filter('bb_topic_labels', 'topic_icons_label', 11);
    add_action('bb_head', 'topic_icons_css');
    add_action('bb_admin_menu_generator', 'topic_icons_admin_page_add');
    add_action('bb_admin-header.php', 'topic_icons_admin_page_process');
    topic_icons_register_status_interpreter('default', new DefaultStatusInterpreter(BUSY_THRESHOLD));
    topic_icons_register_status_renderer('default', new DefaultStatusRenderer());
}