Skip to:
Content

bbPress.org

Changeset 2323


Ignore:
Timestamp:
07/28/2009 02:33:31 PM (17 years ago)
Author:
sambauers
Message:

Add site name to RSS link title, fixes #1144

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/functions.bb-template.php

    r2321 r2323  
    541541                       
    542542                        $feeds[] = array(
    543                                 'title' => sprintf(__('User Favorites: %s'), get_user_name()),
     543                                'title' => sprintf(__('%1$s » User Favorites: %2$s'), bb_get_option( 'name' ), get_user_name()),
    544544                                'href'  => get_favorites_rss_link(0, BB_URI_CONTEXT_LINK_ALTERNATE_HREF + BB_URI_CONTEXT_BB_FEED)
    545545                        );
     
    548548                case 'topic-page':
    549549                        $feeds[] = array(
    550                                 'title' => sprintf(__('Topic: %s'), get_topic_title()),
     550                                'title' => sprintf(__('%1$s » Topic: %2$s'), bb_get_option( 'name' ), get_topic_title()),
    551551                                'href'  => get_topic_rss_link(0, BB_URI_CONTEXT_LINK_ALTERNATE_HREF + BB_URI_CONTEXT_BB_FEED)
    552552                        );
     
    556556                        if (bb_is_tag()) {
    557557                                $feeds[] = array(
    558                                         'title' => sprintf(__('Tag: %s - Recent Posts'), bb_get_tag_name()),
     558                                        'title' => sprintf(__('%1$s » Tag: %2$s - Recent Posts'), bb_get_option( 'name' ), bb_get_tag_name()),
    559559                                        'href'  => bb_get_tag_posts_rss_link(0, BB_URI_CONTEXT_LINK_ALTERNATE_HREF + BB_URI_CONTEXT_BB_FEED)
    560560                                );
    561561                                $feeds[] = array(
    562                                         'title' => sprintf(__('Tag: %s - Recent Topics'), bb_get_tag_name()),
     562                                        'title' => sprintf(__('%1$s » Tag: %2$s - Recent Topics'), bb_get_option( 'name' ), bb_get_tag_name()),
    563563                                        'href'  => bb_get_tag_topics_rss_link(0, BB_URI_CONTEXT_LINK_ALTERNATE_HREF + BB_URI_CONTEXT_BB_FEED)
    564564                                );
     
    568568                case 'forum-page':
    569569                        $feeds[] = array(
    570                                 'title' => sprintf(__('Forum: %s - Recent Posts'), get_forum_name()),
     570                                'title' => sprintf(__('%1$s » Forum: %2$s - Recent Posts'), bb_get_option( 'name' ), get_forum_name()),
    571571                                'href'  => bb_get_forum_posts_rss_link(0, BB_URI_CONTEXT_LINK_ALTERNATE_HREF + BB_URI_CONTEXT_BB_FEED)
    572572                        );
    573573                        $feeds[] = array(
    574                                 'title' => sprintf(__('Forum: %s - Recent Topics'), get_forum_name()),
     574                                'title' => sprintf(__('%1$s » Forum: %2$s - Recent Topics'), bb_get_option( 'name' ), get_forum_name()),
    575575                                'href'  => bb_get_forum_topics_rss_link(0, BB_URI_CONTEXT_LINK_ALTERNATE_HREF + BB_URI_CONTEXT_BB_FEED)
    576576                        );
     
    579579                case 'front-page':
    580580                        $feeds[] = array(
    581                                 'title' => __('Recent Posts'),
     581                                'title' => sprintf(__('%1$s » Recent Posts'), bb_get_option( 'name' )),
    582582                                'href'  => bb_get_posts_rss_link(BB_URI_CONTEXT_LINK_ALTERNATE_HREF + BB_URI_CONTEXT_BB_FEED)
    583583                        );
    584584                        $feeds[] = array(
    585                                 'title' => __('Recent Topics'),
     585                                'title' => sprintf(__('%1$s » Recent Topics'), bb_get_option( 'name' )),
    586586                                'href'  => bb_get_topics_rss_link(BB_URI_CONTEXT_LINK_ALTERNATE_HREF + BB_URI_CONTEXT_BB_FEED)
    587587                        );
     
    592592                        if ($bb_views[$view]['feed']) {
    593593                                $feeds[] = array(
    594                                         'title' => get_view_name(),
     594                                        'title' => sprintf(__('%1$s » View: %2$s'), bb_get_option( 'name' ), get_view_name()),
    595595                                        'href'  => bb_get_view_rss_link(null, BB_URI_CONTEXT_LINK_ALTERNATE_HREF + BB_URI_CONTEXT_BB_FEED)
    596596                                );
  • trunk/rss.php

    r2147 r2323  
    8282                        }
    8383                       
    84                         $title = esc_html( sprintf( __( '%1$s View: %2$s' ), bb_get_option( 'name' ), $bb_views[$feed_id]['title'] ) );
     84                        $title = esc_html( sprintf( __( '%1$s » View: %2$s' ), bb_get_option( 'name' ), $bb_views[$feed_id]['title'] ) );
    8585                        $link = get_view_link($feed_id);
    8686                        $link_self = bb_get_view_rss_link($feed_id);
     
    9292                        if ( !$posts = get_thread( $feed_id, 0, 1 ) )
    9393                                die();
    94                         $title = esc_html( sprintf( __( '%1$s Topic: %2$s' ), bb_get_option( 'name' ), get_topic_title() ) );
     94                        $title = esc_html( sprintf( __( '%1$s » Topic: %2$s' ), bb_get_option( 'name' ), get_topic_title() ) );
    9595                        $link = get_topic_link($feed_id);
    9696                        $link_self = get_topic_rss_link($feed_id);
     
    109109                                die();
    110110                        }
    111                         $title = esc_html( sprintf( __( '%1$s User Favorites: %2$s' ), bb_get_option( 'name' ), $user->user_login ) );
     111                        $title = esc_html( sprintf( __( '%1$s » User Favorites: %2$s' ), bb_get_option( 'name' ), $user->user_login ) );
    112112                        $link = bb_get_profile_link($feed_id);
    113113                        $link_self = get_favorites_rss_link($feed_id);
     
    125125                        }
    126126                       
    127                         $title = esc_html( sprintf( __( '%1$s Tag: %2$s - Recent Topics' ), bb_get_option( 'name' ), bb_get_tag_name() ) );
     127                        $title = esc_html( sprintf( __( '%1$s » Tag: %2$s - Recent Topics' ), bb_get_option( 'name' ), bb_get_tag_name() ) );
    128128                        $link = bb_get_tag_link($feed_id);
    129129                        $link_self = bb_get_tag_topics_rss_link($feed_id);
     
    135135                        if ( !$posts = get_tagged_topic_posts( array( 'tag_id' => $tag->tag_id, 'page' => 0 ) ) )
    136136                                die();
    137                         $title = esc_html( sprintf( __( '%1$s Tag: %2$s - Recent Posts' ), bb_get_option( 'name' ), bb_get_tag_name() ) );
     137                        $title = esc_html( sprintf( __( '%1$s » Tag: %2$s - Recent Posts' ), bb_get_option( 'name' ), bb_get_tag_name() ) );
    138138                        $link = bb_get_tag_link($feed_id);
    139139                        $link_self = bb_get_tag_posts_rss_link($feed_id);
     
    149149                        }
    150150                       
    151                         $title = esc_html( sprintf( __( '%1$s Forum: %2$s - Recent Topics' ), bb_get_option( 'name' ), get_forum_name( $feed_id ) ) );
     151                        $title = esc_html( sprintf( __( '%1$s » Forum: %2$s - Recent Topics' ), bb_get_option( 'name' ), get_forum_name( $feed_id ) ) );
    152152                        $link = get_forum_link($feed_id);
    153153                        $link_self = bb_get_forum_topics_rss_link($feed_id);
     
    157157                        if ( !$posts = bb_get_latest_forum_posts( $feed_id ) )
    158158                                die();
    159                         $title = esc_html( sprintf( __( '%1$s Forum: %2$s - Recent Posts' ), bb_get_option( 'name' ), get_forum_name( $feed_id ) ) );
     159                        $title = esc_html( sprintf( __( '%1$s » Forum: %2$s - Recent Posts' ), bb_get_option( 'name' ), get_forum_name( $feed_id ) ) );
    160160                        $link = get_forum_link($feed_id);
    161161                        $link_self = bb_get_forum_posts_rss_link($feed_id);
     
    172172                        }
    173173                       
    174                         $title = esc_html( sprintf( __( '%1$s: Recent Topics' ), bb_get_option( 'name' ) ) );
     174                        $title = esc_html( sprintf( __( '%1$s » Recent Topics' ), bb_get_option( 'name' ) ) );
    175175                        $link = bb_get_uri();
    176176                        $link_self = bb_get_topics_rss_link();
     
    182182                        if ( !$posts = bb_get_latest_posts( 35 ) )
    183183                                die();
    184                         $title = esc_html( sprintf( __( '%1$s: Recent Posts' ), bb_get_option( 'name' ) ) );
     184                        $title = esc_html( sprintf( __( '%1$s » Recent Posts' ), bb_get_option( 'name' ) ) );
    185185                        $link = bb_get_uri();
    186186                        $link_self = bb_get_posts_rss_link();
Note: See TracChangeset for help on using the changeset viewer.