Skip to content

Commit

Permalink
enable strong testimonials by default & show help text. #442
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Jun 13, 2017
1 parent 1abf42c commit 925238a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion integrations/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function mc4wp_admin_after_integration_settings( MC4WP_Integration $integration,
mc4wp_register_integration( 'contact-form-7', 'MC4WP_Contact_Form_7_Integration', true );
mc4wp_register_integration( 'events-manager', 'MC4WP_Events_Manager_Integration' );
mc4wp_register_integration( 'memberpress', 'MC4WP_MemberPress_Integration' );
mc4wp_register_integration( 'strong-testimonials', 'MC4WP_Strong_Testimonials_Integration' );
mc4wp_register_integration( 'strong-testimonials', 'MC4WP_Strong_Testimonials_Integration', true );
mc4wp_register_integration( 'custom', 'MC4WP_Custom_Integration', true );
require dirname(__FILE__) . '/ninja-forms/bootstrap.php';

Expand Down
4 changes: 4 additions & 0 deletions integrations/strong-testimonials/admin-before.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<p>
<?php printf( __( 'To integrate with Strong Testimonials, configure the settings below and add the "MailChimp for WordPress" field to your testimonial forms.', 'mailchimp-for-wp' ) ); ?>
</p>

Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,12 @@ public function is_installed() {
return class_exists( 'Strong_Testimonials', false );
}

/**
* @since 3.0
* @return array
*/
public function get_ui_elements() {
return array_diff( parent::get_ui_elements(), array( 'enabled', 'implicit' ) );
}

}

0 comments on commit 925238a

Please sign in to comment.