Skip to content

Commit 960e44a

Browse files
committed
"Log in" button wording updates and footer text updates.
1 parent eea7826 commit 960e44a

File tree

5 files changed

+51
-5
lines changed

5 files changed

+51
-5
lines changed

assets/css/admin.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,17 @@ th.mailchimp-connect {
382382
body.admin_page_mailchimp_sf_create_account,
383383
body.toplevel_page_mailchimp_sf_options {
384384
background-color: #F6F6F4;
385+
font-family: 'Graphik Mailchimp Web', ui-sans-serif, system-ui, sans-serif;
386+
}
387+
388+
body.admin_page_mailchimp_sf_create_account a,
389+
body.toplevel_page_mailchimp_sf_options a {
390+
color: var(--mailchimp-color-link);
391+
}
392+
393+
body.admin_page_mailchimp_sf_create_account #footer-upgrade,
394+
body.toplevel_page_mailchimp_sf_options #footer-upgrade {
395+
display: none;
385396
}
386397

387398
.mailchimp-sf-create-account__body-inner {

includes/admin/templates/create-account-page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
270270
</svg>
271271
</span>
272-
<?php esc_html_e( 'Activate Account', 'mailchimp' ); ?>
272+
<?php esc_html_e( 'Activate account', 'mailchimp' ); ?>
273273
</button>
274274
</div>
275275
</form>

includes/admin/templates/login.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div class="title"><?php esc_html_e( 'Let\'s connect your Mailchimp account', 'mailchimp' ); ?></div>
1414
<p class="h4">
1515
<?php
16-
esc_html_e( 'Log in to your existing Mailchimp account or create a new account to authorize and connect to WordPress. Setup should take just a few minutes.', 'mailchimp' );
16+
esc_html_e( 'Log in to your Mailchimp account or create a new account to authorize and connect to WordPress. Setup should take just a few minutes.', 'mailchimp' );
1717
?>
1818
</p>
1919

@@ -25,7 +25,7 @@
2525
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
2626
</svg>
2727
</span>
28-
<?php esc_html_e( 'Connect account', 'mailchimp' ); ?>
28+
<?php esc_html_e( 'Log in', 'mailchimp' ); ?>
2929
</button>
3030
<a href="<?php echo esc_url( admin_url( 'admin.php?page=mailchimp_sf_create_account' ) ); ?>" class="button mailchimp-sf-button button-secondary"><?php esc_html_e( 'Create an account', 'mailchimp' ); ?></a>
3131
</div>

includes/admin/templates/suggest-to-login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
3434
</svg>
3535
</span>
36-
<?php esc_html_e( 'Connect account', 'mailchimp' ); ?>
36+
<?php esc_html_e( 'Log in', 'mailchimp' ); ?>
3737
</button>
3838
<p class="mailchimp-sf-oauth-error error-field" style="display:none;"></p>
3939
<div id="mailchimp-sf-popup-blocked-modal" style="display:none;">

includes/class-mailchimp-admin.php

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public function init() {
3737

3838
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_page_scripts' ) );
3939
add_action( 'admin_menu', array( $this, 'add_create_account_page' ) );
40+
add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ) );
4041
}
4142

4243
/**
@@ -331,7 +332,7 @@ public function admin_notices() {
331332
<?php
332333
$message = sprintf(
333334
/* translators: Placeholders: %1$s - <a> tag, %2$s - </a> tag */
334-
__( 'Heads up! It looks like you\'re using an API key to connect with Mailchimp, which is now deprecated. Please log out and reconnect your Mailchimp account using the new OAuth authentication by clicking the "Connect Account" button on the %1$splugin settings%2$s page.', 'mailchimp' ),
335+
__( 'Heads up! It looks like you\'re using an API key to connect with Mailchimp, which is now deprecated. Please log out and reconnect your Mailchimp account using the new OAuth authentication by clicking the "Log in" button on the %1$splugin settings%2$s page.', 'mailchimp' ),
335336
'<a href="' . esc_url( admin_url( 'admin.php?page=mailchimp_sf_options' ) ) . '">',
336337
'</a>'
337338
);
@@ -737,4 +738,38 @@ public function get_countries() {
737738
'ZW' => __( 'Zimbabwe', 'mailchimp' ),
738739
);
739740
}
741+
742+
/**
743+
* Display the Mailchimp footer text on the Mailchimp admin pages.
744+
*
745+
* @since x.x.x
746+
*
747+
* @param string $text The current footer text.
748+
* @return string The modified footer text.
749+
*/
750+
public function admin_footer_text( $text ) {
751+
$current_screen = get_current_screen();
752+
$current_screen_id = $current_screen ? $current_screen->id : '';
753+
if ( ! in_array( $current_screen_id, array( 'toplevel_page_mailchimp_sf_options', 'admin_page_mailchimp_sf_create_account' ), true ) ) {
754+
return $text;
755+
}
756+
757+
return wp_kses(
758+
sprintf(
759+
/* translators: %d - Current year, %s - Mailchimp legal links */
760+
__( '©%1$d Intuit Inc. All rights reserved. Mailchimp® is a registered trademark of The Rocket Science Group, <a href="%2$s" target="_blank" rel="noopener noreferrer">Cookie Preferences</a>, <a href="%3$s" target="_blank" rel="noopener noreferrer">Privacy</a>, and <a href="%4$s" target="_blank" rel="noopener noreferrer">Terms</a>.', 'mailchimp' ),
761+
gmdate( 'Y' ),
762+
esc_url( 'https://mailchimp.com/legal/cookies/#optanon-toggle-display/' ),
763+
esc_url( 'https://www.intuit.com/privacy/statement/' ),
764+
esc_url( 'https://mailchimp.com/legal/terms' ),
765+
),
766+
array(
767+
'a' => array(
768+
'href' => array(),
769+
'target' => array(),
770+
'rel' => array(),
771+
),
772+
)
773+
);
774+
}
740775
}

0 commit comments

Comments
 (0)