Skip to:
Content

BuddyPress.org

Ticket #7866: 7866.2.diff

File 7866.2.diff, 1.8 KB (added by boonebgorges, 7 years ago)
  • src/bp-core/admin/js/customizer-receiver-emails.js

    diff --git src/bp-core/admin/js/customizer-receiver-emails.js src/bp-core/admin/js/customizer-receiver-emails.js
    index 61d13e858..06b4d816d 100644
     
    109109
    110110        wp.customize( 'bp_email_options[footer_text]', function( value ) {
    111111                value.bind(function( newval ) {
    112                         $( '.footer_text' ).text( newval );
     112                        $( '.footer_text' ).html( newval );
    113113                });
    114114        });
    115115})( jQuery );
  • src/bp-core/bp-core-functions.php

    diff --git src/bp-core/bp-core-functions.php src/bp-core/bp-core-functions.php
    index 57c1de3ae..24d4ccfcd 100644
    function bp_send_email( $email_type, $to, $args = array() ) { 
    32343234 * @return array
    32353235 */
    32363236function bp_email_get_appearance_settings() {
     3237        /* translators: email disclaimer, e.g. "© 2016 Site Name". */
     3238        $footer_text = array(
     3239                sprintf(
     3240                        _x( '© %s %s', 'email', 'buddypress' ),
     3241                        date_i18n( 'Y' ),
     3242                        bp_get_option( 'blogname' )
     3243                )
     3244        );
     3245
     3246        $privacy_policy_url = get_privacy_policy_url();
     3247        if ( $privacy_policy_url ) {
     3248                $footer_text[] = sprintf(
     3249                        '<a href="%s">%s</a>',
     3250                        esc_url( $privacy_policy_url ),
     3251                        esc_html__( 'Privacy Policy', 'buddypress' )
     3252                );
     3253        }
     3254
    32373255        $default_args = array(
    32383256                'body_bg'           => '#FFFFFF',
    32393257                'body_text_color'   => '#555555',
    function bp_email_get_appearance_settings() { 
    32483266                'header_text_size'  => 30,
    32493267                'direction'         => is_rtl() ? 'right' : 'left',
    32503268
    3251                 'footer_text' => sprintf(
    3252                         /* translators: email disclaimer, e.g. "© 2016 Site Name". */
    3253                         _x( '&copy; %s %s', 'email', 'buddypress' ),
    3254                         date_i18n( 'Y' ),
    3255                         bp_get_option( 'blogname' )
    3256                 ),
     3269                'footer_text' => implode( ' &middot; ', $footer_text ),
    32573270        );
    32583271
    32593272        $options = bp_parse_args(