Skip to content

Commit

Permalink
Merge a1ff00a into 5b36b6d
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Herman committed Dec 8, 2016
2 parents 5b36b6d + a1ff00a commit 950cf1a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions godaddy-email-marketing.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,28 @@ public function deactivate() {
* Displays the admin notice.
*/
public function action_admin_notices() {

if ( get_option( 'wpem_gem_notice' ) ) {

?>

<div class="gem-notice notice notice-success is-dismissible">
<p>
<?php
printf(
__( 'Your website has a superpower: Email marketing. %1$s.', 'godaddy-email-marketing' ),
'<a href="' . admin_url( 'options-general.php?page=gem-settings' ) . '">' . __( 'Learn More', 'godaddy-email-marketing' ) . '</a>'
);
?>
</p>
</div>

<?php

delete_option( 'wpem_gem_notice' );

}

$screen = get_current_screen();

if ( 'plugins' !== $screen->id ) {
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: godaddy, humanmade, xwp, fjarrett, jonathanbardo
Tags: email, forms, godaddy, mailing list, marketing, newsletter, opt-in, signup, subscribe, widget, contacts
Requires at least: 3.8
Tested up to: 4.5
Tested up to: 4.7
Stable tag: 1.1.3
License: GPL-2.0
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down

0 comments on commit 950cf1a

Please sign in to comment.