diff --git a/inc/dependencies/dependency-yoast-seo.php b/inc/dependencies/dependency-yoast-seo.php index cd759c7..f76c8a9 100644 --- a/inc/dependencies/dependency-yoast-seo.php +++ b/inc/dependencies/dependency-yoast-seo.php @@ -51,14 +51,30 @@ public function register_notifications() { * @return void */ public function message_plugin_not_activated() { - $message = sprintf( - /* translators: %1$s resolves to ACF Content Analysis for Yoast SEO, %2$s resolves to Yoast SEO. */ - __( '%1$s requires %2$s to be installed and activated.', 'acf-content-analysis-for-yoast-seo' ), - 'ACF Content Analysis for Yoast SEO', - 'Yoast SEO' + echo ( + '
' + . '

' + . sprintf( + /* translators: %1$s: Yoast SEO */ + esc_html__( 'Install %1$s', 'acf-content-analysis-for-yoast-seo' ), + 'Yoast SEO' + ) + . '

' + . '
' + . '

' + . sprintf( + /* translators: %1$s resolves to ACF Content Analysis for Yoast SEO, %2$s resolves to Yoast SEO. */ + esc_html__( + '%1$s requires %2$s to be installed and activated.', + 'acf-content-analysis-for-yoast-seo' + ), + 'ACF Content Analysis for Yoast SEO', + 'Yoast SEO' + ) + . '

' + . '
' + . '
' ); - - printf( '

%s

', esc_html( $message ) ); } /** @@ -67,14 +83,30 @@ public function message_plugin_not_activated() { * @return void */ public function message_minimum_version() { - $message = sprintf( - /* translators: %1$s resolves to Yoast SEO, %2$s resolves to ACF Content Analysis for Yoast SEO. */ - __( 'Please upgrade the %1$s plugin to the latest version to allow the %2$s module to work.', 'acf-content-analysis-for-yoast-seo' ), - 'Yoast SEO', - 'ACF Content Analysis for Yoast SEO' + echo ( + '
' + . '

' + . sprintf( + /* translators: %1$s: Yoast SEO */ + esc_html__( 'Install latest %1$s', 'acf-content-analysis-for-yoast-seo' ), + 'Yoast SEO' + ) + . '

' + . '
' + . '

' + . sprintf( + /* translators: %1$s resolves to Yoast SEO, %2$s resolves to ACF Content Analysis for Yoast SEO */ + esc_html__( + 'Please upgrade the %1$s plugin to the latest version to allow the %2$s module to work.', + 'acf-content-analysis-for-yoast-seo' + ), + 'Yoast SEO', + 'ACF Content Analysis for Yoast SEO' + ) + . '

' + . '
' + . '
' ); - - printf( '

%s

', esc_html( $message ) ); } /**