function bb_tag_topics_rss_link($tag_id = 0, $context = 0) { if (!$context || !is_integer($context)) { $context = BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_FEED; } echo apply_filters('tag_topics_rss_link', bb_get_tag_topics_rss_link($tag_id, $context), $tag_id, $context); }
$link_self = get_favorites_rss_link($feed_id); break; case 'tag-topics': if (!($tag = bb_get_tag($feed_id))) { die; } if (!($topics = get_tagged_topics(array('tag_id' => $tag->tag_id, 'page' => 0)))) { die; } $posts = array(); foreach ($topics as $topic) { $posts[] = bb_get_first_post($topic->topic_id); } $title = esc_html(sprintf(__('%1$s » Tag: %2$s - Recent Topics'), bb_get_option('name'), bb_get_tag_name())); $link = bb_get_tag_link($feed_id); $link_self = bb_get_tag_topics_rss_link($feed_id); break; case 'tag-posts': if (!($tag = bb_get_tag($feed_id))) { die; } if (!($posts = get_tagged_topic_posts(array('tag_id' => $tag->tag_id, 'page' => 0)))) { die; } $title = esc_html(sprintf(__('%1$s » Tag: %2$s - Recent Posts'), bb_get_option('name'), bb_get_tag_name())); $link = bb_get_tag_link($feed_id); $link_self = bb_get_tag_posts_rss_link($feed_id); break; case 'forum-topics': if (!($topics = get_latest_topics($feed_id))) { die;