?>

  <?php 
if ($rows or $empty) {
    ?>
    <div class="view-content">
      <?php 
    $team_forum_id = arg(4);
    $team_forum = boincteam_forum_load($team_forum_id);
    // Grab a sample forum topic node to get the forum vocabulary name
    $sample = db_result(db_query("\n          SELECT nid FROM {node} WHERE type = 'forum' LIMIT 1"));
    $forum_node = node_load($sample);
    // Get vocabulary name and use that as the page title
    $taxonomy = taxonomy_get_term($forum_node->tid);
    if (module_exists('internationalization')) {
        $taxonomy = reset(i18ntaxonomy_localize_terms(array($taxonomy)));
    }
    if ($forum_vocab = taxonomy_vocabulary_load($taxonomy->vid)) {
        if (module_exists('internationalization')) {
            $forum_vocab->name = i18ntaxonomy_translate_vocabulary_name($forum_vocab);
        }
        drupal_set_title($forum_vocab->name);
    }
    ?>

      <h1 class="title"><?php 
    print $forum_vocab->name;
    ?>
</h1>
      
      <div id="forum">
Example #2
0
 *
 * @see template_preprocess_forum_topic_list()
 * @see theme_forum_topic_list()
 */
?>
<table id="forum-topic-<?php 
print $topic_id;
?>
">
  
  <?php 
// Get vocabulary name and use that as the title
$topic = current($topics);
$taxonomy = taxonomy_get_term($topic->tid);
if (module_exists('internationalization')) {
    $imv = i18ntaxonomy_localize_terms(array($taxonomy));
    $taxonomy = reset($imv);
}
if ($forum_vocab = taxonomy_vocabulary_load($taxonomy->vid)) {
    if (module_exists('internationalization')) {
        $forum_vocab->name = i18ntaxonomy_translate_vocabulary_name($forum_vocab);
    }
    drupal_set_title($forum_vocab->name);
}
// Get the count of topics on this page
$topic_count = count($topics);
$topic_index = 0;
$first_non_sticky = FALSE;
?>
  
  <h2 class="title">