From 925238ac718a8870dc96c0d9a2ba04843e017c41 Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Tue, 13 Jun 2017 11:45:13 +0200 Subject: [PATCH] enable strong testimonials by default & show help text. #442 --- integrations/bootstrap.php | 2 +- integrations/strong-testimonials/admin-before.php | 4 ++++ .../strong-testimonials/class-strong-testimonials.php | 8 ++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 integrations/strong-testimonials/admin-before.php diff --git a/integrations/bootstrap.php b/integrations/bootstrap.php index 09518c26..e87e65e8 100755 --- a/integrations/bootstrap.php +++ b/integrations/bootstrap.php @@ -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'; diff --git a/integrations/strong-testimonials/admin-before.php b/integrations/strong-testimonials/admin-before.php new file mode 100644 index 00000000..ae0c78bd --- /dev/null +++ b/integrations/strong-testimonials/admin-before.php @@ -0,0 +1,4 @@ +

+ +

+ diff --git a/integrations/strong-testimonials/class-strong-testimonials.php b/integrations/strong-testimonials/class-strong-testimonials.php index 3ff54974..5b3b793f 100755 --- a/integrations/strong-testimonials/class-strong-testimonials.php +++ b/integrations/strong-testimonials/class-strong-testimonials.php @@ -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' ) ); + } + } \ No newline at end of file