function bb_forum_topics_rss_link($forum_id = 0, $context = 0)
{
    if (!$context || !is_integer($context)) {
        $context = BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_FEED;
    }
    echo apply_filters('bb_forum_topics_rss_link', bb_get_forum_topics_rss_link($forum_id, $context), $context);
}
Ejemplo n.º 2
0
     }
     $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;
     }
     $posts = array();
     foreach ($topics as $topic) {
         $posts[] = bb_get_first_post($topic->topic_id);
     }
     $title = esc_html(sprintf(__('%1$s » Forum: %2$s - Recent Topics'), bb_get_option('name'), get_forum_name($feed_id)));
     $link = get_forum_link($feed_id);
     $link_self = bb_get_forum_topics_rss_link($feed_id);
     break;
 case 'forum-posts':
     if (!($posts = bb_get_latest_forum_posts($feed_id))) {
         die;
     }
     $title = esc_html(sprintf(__('%1$s » Forum: %2$s - Recent Posts'), bb_get_option('name'), get_forum_name($feed_id)));
     $link = get_forum_link($feed_id);
     $link_self = bb_get_forum_posts_rss_link($feed_id);
     break;
     // Get just the first post from the latest topics
 // Get just the first post from the latest topics
 case 'all-topics':
     if (!($topics = get_latest_topics())) {
         die;
     }