Ticket #3354: 3354.02.patch
File 3354.02.patch, 3.5 KB (added by , 14 years ago) |
---|
-
bp-core/bp-core-functions.php
function bp_core_time_since( $older_date, $newer_date = false ) { 601 601 $unknown_text = apply_filters( 'bp_core_time_since_unknown_text', __( 'sometime', 'buddypress' ) ); 602 602 $right_now_text = apply_filters( 'bp_core_time_since_right_now_text', __( 'right now', 'buddypress' ) ); 603 603 $ago_text = apply_filters( 'bp_core_time_since_ago_text', __( '%s ago', 'buddypress' ) ); 604 604 605 605 // array of time period chunks 606 606 $chunks = array( 607 607 array( 60 * 60 * 24 * 365 , __( 'year', 'buddypress' ), __( 'years', 'buddypress' ) ), … … function bp_core_time_since( $older_date, $newer_date = false ) { 632 632 // Something went wrong with date calculation and we ended up with a negative date. 633 633 if ( 0 > $since ) { 634 634 $output = $unknown_text; 635 635 636 636 /** 637 637 * We only want to output two chunks of time here, eg: 638 638 * x years, xx months … … function bp_embed_init() { 925 925 if ( empty( $bp->embed ) ) 926 926 $bp->embed = new BP_Embed(); 927 927 } 928 add_action( 'bp_init', 'bp_embed_init' );928 add_action( 'bp_init', 'bp_embed_init', 9 ); 929 929 930 930 /** 931 931 * When switching from single to multisite we need to copy blog options to -
bp-themes/bp-default/_inc/global.js
jq(document).ready( function() { 91 91 var l = jq("ul#activity-stream li.new-update .activity-content .activity-inner p").html(); 92 92 var v = jq("ul#activity-stream li.new-update .activity-content .activity-header p a.view").attr('href'); 93 93 94 var ltext = jq("ul#activity-stream li.new-update .activity-content .activity-inner p").text(); 95 96 var u = ''; 97 if ( ltext != '' ) 98 u = l + '· '; 99 100 u += '<a href="' + v + '" rel="nofollow">' + BP_DTheme.view + '</a>'; 101 94 102 jq("div#latest-update").slideUp(300,function(){ 95 jq("div#latest-update").html( '"' + l + '" · <a href="' + v + '" rel="nofollow">View</a>');103 jq("div#latest-update").html( u ); 96 104 jq("div#latest-update").slideDown(300); 97 105 }); 98 106 } -
bp-themes/bp-default/functions.php
function bp_dtheme_enqueue_scripts() { 144 144 'show_all_comments' => __( 'Show all comments for this thread', 'buddypress' ), 145 145 'show_all' => __( 'Show all', 'buddypress' ), 146 146 'comments' => __( 'comments', 'buddypress' ), 147 'close' => __( 'Close', 'buddypress' ) 147 'close' => __( 'Close', 'buddypress' ), 148 'view' => __( 'View', 'buddypress' ) 148 149 ); 149 150 150 151 wp_localize_script( 'dtheme-ajax-js', 'BP_DTheme', $params ); … … if ( !function_exists( 'bp_dtheme_enqueue_styles' ) ) : 160 161 * @since 1.3 161 162 */ 162 163 function bp_dtheme_enqueue_styles() { 163 164 164 165 // Default CSS 165 166 wp_enqueue_style( 'bp-default-main', get_template_directory_uri() . '/_inc/css/default.css', array(), BP_VERSION ); 166 167 … … if ( !function_exists( 'bp_dtheme_show_notice' ) ) : 515 516 */ 516 517 function bp_dtheme_show_notice() { 517 518 global $pagenow; 518 519 519 520 // Bail if bp-default theme was not just activated 520 521 if ( empty( $_GET['activated'] ) || ( 'themes.php' != $pagenow ) || !is_admin() ) 521 522 return; 522 523 523 524 ?> 524 525 525 526 <div id="message" class="updated fade">