Topic Icons'; $icon_set_name = topic_icons_get_active_icon_set(); $statuses = get_active_status_interpreter()->getAllStatuses(); $renderer = get_active_status_renderer(); echo '
'; echo '
'; echo '

Select a status interpreter to activate:

'; reset($status_interpreters); while (list($key, $val) = each($status_interpreters)) { echo '    '.$key.'
'; } echo '
'; echo 'Note: Status interpreters examine a given topic and return a status value (say, "closed") based on the data they are given. New status interpreters can extend the range of status values that icons can be associated with.'; echo '
'; echo '
'; echo '

Select a status renderer to activate:

'; reset($status_renderers); while (list($key, $val) = each($status_renderers)) { echo '    '.$key.'
'; } echo '
'; echo 'Note: Status renderers take a status value (say, "closed") and map it to a corresponding image filename (say, "closed-topic.png"). This filename will then be loaded from the active icon set'; echo '
'; echo '

Select an icon set to activate:

'; echo ''; echo ''; for ($i=0; $i < count($statuses); $i++) { echo ''; } echo ''; $raw = scandir(dirname(__FILE__).'/icon-sets'); $iconsets = array(); for ($i=0; $i < count($raw); $i++) { if (strlen($raw[$i]) > 2 && is_dir(dirname(__FILE__).'/icon-sets/'.$raw[$i])) { $iconsets[] = $raw[$i]; } } echo ''; for ($j=0; $j < count($iconsets); $j++) { echo ''; $icon_set_url = ICON_SET_URL_BASE . $iconsets[$j]; for ($i=0; $i < count($statuses); $i++) { $image = $renderer->renderStatus($statuses[$i]); $tooltip = $renderer->renderStatusTooltip($statuses[$i]); $exists = file_exists(dirname(__FILE__).'/icon-sets/'.$iconsets[$j].'/'.$image); if (isset($image) && strlen($image) > 0 && $exists) { echo ''; } else { echo ''; } } echo ''; } echo '
 '.$statuses[$i].'
 '.$iconsets[$j].' '.$tooltip.' 
'; echo ''; echo '
'; } function topic_icons_admin_page_add() { if (function_exists('bb_admin_add_submenu')) { bb_admin_add_submenu('Topic Icons', 'moderate', 'topic_icons_admin_page' ); } } ?>