Skip to:
Content

BuddyPress.org

Changeset 4809


Ignore:
Timestamp:
07/22/2011 08:30:54 PM (13 years ago)
Author:
djpaul
Message:

Remove remaining · from templates.
Normalise output of bp_get_member_latest_update() and bp_get_activity_latest_update().
Swapped remaing $bp->activity->root_slug for bp_get_activity_root_slug(). See #3325

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-template.php

    r4804 r4809  
    11511151        global $bp;
    11521152
    1153         return apply_filters( 'bp_get_activity_comment_form_action', home_url( $bp->activity->root_slug . '/reply/' ) );
     1153        return apply_filters( 'bp_get_activity_comment_form_action', home_url( bp_get_activity_root_slug() . '/reply/' ) );
    11541154    }
    11551155
     
    11791179    function bp_get_activity_favorite_link() {
    11801180        global $bp, $activities_template;
    1181         return apply_filters( 'bp_get_activity_favorite_link', wp_nonce_url( home_url( $bp->activity->root_slug . '/favorite/' . $activities_template->activity->id . '/' ), 'mark_favorite' ) );
     1181        return apply_filters( 'bp_get_activity_favorite_link', wp_nonce_url( home_url( bp_get_activity_root_slug() . '/favorite/' . $activities_template->activity->id . '/' ), 'mark_favorite' ) );
    11821182    }
    11831183
     
    11871187    function bp_get_activity_unfavorite_link() {
    11881188        global $bp, $activities_template;
    1189         return apply_filters( 'bp_get_activity_unfavorite_link', wp_nonce_url( home_url( $bp->activity->root_slug . '/unfavorite/' . $activities_template->activity->id . '/' ), 'unmark_favorite' ) );
     1189        return apply_filters( 'bp_get_activity_unfavorite_link', wp_nonce_url( home_url( bp_get_activity_root_slug() . '/unfavorite/' . $activities_template->activity->id . '/' ), 'unmark_favorite' ) );
    11901190    }
    11911191
     
    12681268            return false;
    12691269
    1270         $latest_update = '"' . apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], 358 ) ) ) ) . '"';
    1271         $latest_update .= ' &middot; <a href="' . bp_get_root_domain() . '/' . $bp->activity->root_slug . '/p/' . $update['id'] . '/"> ' . __( 'View', 'buddypress' ) . '</a>';
     1270        $latest_update = apply_filters( 'bp_get_activity_latest_update_excerpt', '&quot;' . trim( strip_tags( bp_create_excerpt( $update['content'], 358 ) ) ) . '&quot;' );
     1271        $latest_update .= ' <a href="' . bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $update['id'] . '/"> ' . __( 'View', 'buddypress' ) . '</a>';
    12721272
    12731273        return apply_filters( 'bp_get_activity_latest_update', $latest_update  );
  • trunk/bp-members/bp-members-template.php

    r4804 r4809  
    545545            return false;
    546546
    547         $update_content = apply_filters( 'bp_get_activity_latest_update', strip_tags( bp_create_excerpt( $update['content'], $length ) ) );
     547        $update_content = apply_filters( 'bp_get_activity_latest_update', '&quot;' . trim( strip_tags( bp_create_excerpt( $update['content'], $length ) ) ) . '&quot;' );
    548548
    549549        if ( !empty( $update['id'] ) && bp_is_active( 'activity' ) )
    550             $update_content .= ' &middot; <a href="' . bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $update['id'] . '">' . __( 'View', 'buddypress' ) . '</a>';
     550            $update_content .= ' <a href="' . bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $update['id'] . '">' . __( 'View', 'buddypress' ) . '</a>';
    551551
    552552        return apply_filters( 'bp_get_member_latest_update', $update_content );
  • trunk/bp-themes/bp-default/_inc/global.js

    r4804 r4809  
    9696                    var u = '';
    9797                    if ( ltext != '' )
    98                         u = l + '&middot; ';
     98                        u = '&quot;' + l + '&quot; ';
    9999
    100100                    u += '<a href="' + v + '" rel="nofollow">' + BP_DTheme.view + '</a>';
Note: See TracChangeset for help on using the changeset viewer.