Skip to:
Content

BuddyPress.org

Changeset 12258


Ignore:
Timestamp:
10/20/2018 03:05:32 PM (8 years ago)
Author:
boonebgorges
Message:

Add Privacy Policy link to default email footer text.

See #7866.

Location:
trunk/src/bp-core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/js/customizer-receiver-emails.js

    r10475 r12258  
    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        });
  • trunk/src/bp-core/bp-core-functions.php

    r12232 r12258  
    32353235 */
    32363236function bp_email_get_appearance_settings() {
     3237        /* translators: This is the copyright text for email footers. 1. Copyright year, 2. Site name */
     3238        $footer_text = array(
     3239                sprintf(
     3240                        _x( '© %1$s %2$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',
     
    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
Note: See TracChangeset for help on using the changeset viewer.