__( 'Add-ons', 'mailchimp-for-wp' ), 'text' => '' . __( 'Add-ons', 'mailchimp-for-wp' ) . '', 'slug' => 'extensions', 'callback' => array( $this, 'show_extensions_page' ), 'position' => 100 ); return $items; } /** * Add text row to "Form > Appearance" tab. */ public function after_form_appearance_settings_rows() { echo ''; echo ''; echo '

'; echo sprintf( __( 'Want to customize the style of your form? Try our Styles Builder & edit the look of your forms with just a few clicks.', 'mailchimp-for-wp' ), 'https://mc4wp.com/premium-features/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=form-settings-link' ); echo '

'; echo ''; echo ''; } /** * Add text row to "Form > Settings" tab. */ public function after_form_settings_rows() { echo ''; echo ''; echo '

'; if( rand( 1, 2 ) === 1 ) { echo sprintf( __( 'Be notified whenever someone subscribes? MailChimp for WordPress Premium allows you to set up email notifications for your forms.', 'mailchimp-for-wp' ), 'https://mc4wp.com/premium-features/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=footer-link' ); } else { echo sprintf( __( 'Increased conversions? MailChimp for WordPress Premium submits forms without reloading the entire page, resulting in a much better experience for your visitors.', 'mailchimp-for-wp' ), 'https://mc4wp.com/premium-features/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=form-settings-link' ); } echo '

'; echo ''; echo ''; } /** * @param array $links * * @return array */ public function plugin_meta_links( $links ) { $links[] = '' . __( 'Upgrade to Premium', 'mailchimp-for-wp' ) . ''; return $links; } /** * Add several texts to admin footer. */ public function admin_footer() { if( isset( $_GET['view'] ) && $_GET['view'] === 'edit-form' ) { // WPML & Polylang specific message if( defined( 'ICL_LANGUAGE_CODE' ) ) { echo '

' . sprintf( __( 'Do you want translated forms for all of your languages? Try MailChimp for WordPress Premium, which does just that plus more.', 'mailchimp-for-wp' ), 'https://mc4wp.com/premium-features/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=footer-link' ) . '

'; return; } // General "edit form" message echo '

' . sprintf( __( 'Do you want to create more than one form? Our Premium add-on does just that! Have a look at all Premium benefits.', 'mailchimp-for-wp' ), 'https://mc4wp.com/premium-features/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=footer-link' ) . '

'; return; } // General message echo '

' . sprintf( __( 'Are you enjoying this plugin? The Premium add-on unlocks several powerful features. Find out about all benefits now.', 'mailchimp-for-wp' ), 'https://mc4wp.com/premium-features/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=footer-link' ) . '

'; } /** * Add email opt-in form to sidebar */ public function admin_sidebar() { echo '
'; echo '
'; echo '

MailChimp for WordPress Premium

'; echo '

This plugin has a Premium add-on, unlocking several powerful features. Have a look at its benefits!

'; echo '
'; echo '
'; ?>

'; echo '

Advanced WooCommerce integration for MailChimp

'; echo '

'; echo __( 'Do you want to track all WooCommerce orders in MailChimp so you can send emails based on the purchase activity of your subscribers?', 'mailchimp-for-wp' ); echo '

'; echo '

'; echo sprintf( __( 'Upgrade to MailChimp for WordPress Premium or read more about MailChimp\'s E-Commerce features.', 'mailchimp-for-wp' ) . '

', 'https://mc4wp.com/premium-features/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=other-settings-link', 'https://kb.mc4wp.com/what-is-ecommerce360/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=other-settings-link' ); echo '

'; echo ''; } public function show_extensions_page() { require MC4WP_PLUGIN_DIR . 'includes/views/extensions.php'; } }