0 ) return $array[$loc]; return $num; } function front_page_topics_admin_menu() { global $bb_submenu; $bb_submenu['site.php'][] = array(__('Front Page Topics'), 'use_keys', 'front_page_topics_admin_page'); } function front_page_topics_admin_page() { $allowed = front_page_topics_allowed(); if ( !$array = bb_get_option( 'front_page_topics' ) ) $array = array(); ?>

0, bbPress will use the default number (as set in your config.php file).', 'front-page-topics'); ?>

$mess ) : ?>

__('Front Page', 'front-page-topics'), 'forum-page' => __('Forum Pages', 'front-page-topics'), 'tag-page' => __('Tag Pages', 'front-page-topics'), 'topic-page' => __('Topic Pages', 'front-page-topics'), 'feed-page' => __('Feeds', 'front-page-topics'), 'profile-page' => __('Profile Pages', 'front-page-topics'), ); } add_action( 'bb_get_option_page_topics', 'front_page_topics' ); add_action( 'bb_admin_menu_generator', 'front_page_topics_admin_menu' ); add_action( 'front_page_topics_admin_page_pre_head', 'front_page_topics_admin_page_pre_head' ); ?>