0) { $topic_depth = 'articles'; // display articles } else { $topic_parent_query = tep_db_query("select count(*) as total from " . TABLE_TOPICS . " where parent_id = '" . (int)$current_topic_id . "'"); $topic_parent = tep_db_fetch_array($topic_parent_query); if ($topic_parent['total'] > 0) { $topic_depth = 'nested'; // navigate through the topics } else { $topic_depth = 'articles'; // topic has no articles, but display the 'no articles' message } } } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ARTICLES); if ($topic_depth == 'top' && !(isset($HTTP_GET_VARS['authors_id'])) ) { $breadcrumb->add(NAVBAR_TITLE_DEFAULT, tep_href_link(FILENAME_ARTICLES)); } $content = CONTENT_ARTICLES; require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>