' . plugin_topicpath_inline() . ''; } function plugin_topicpath_inline() { global $script, $vars, $defaultpage; // $args = func_get_args(); $page = isset($vars['page']) ? $vars['page'] : ''; if ($page == '' || $page == $defaultpage) return ''; $parts = explode('/', $page); if (PLUGIN_TOPICPATH_THIS_PAGE_DISPLAY) { $b_link = PLUGIN_TOPICPATH_THIS_PAGE_LINK; } else { array_pop($parts); // Remove itself $b_link = TRUE; // Link to the parent } $topic_path = array(); while (! empty($parts)) { $landing = rawurlencode(join('/', $parts)); $element = htmlspecialchars(array_pop($parts)); if ($b_link) { $topic_path[] = "$element"; } else { $topic_path[] = $element; $b_link = TRUE; // Maybe reacheable once at a time } } if (PLUGIN_TOPICPATH_TOP_DISPLAY) { $topic_path[] = make_pagelink($defaultpage, PLUGIN_TOPICPATH_TOP_LABEL); } return join(PLUGIN_TOPICPATH_TOP_SEPARATOR, array_reverse($topic_path)); } ?>