Merged in feature/314-dev-dev01 (pull request #24)
auto-patch 314-dev-dev01-2024-01-25T04_09_02 * auto-patch 314-dev-dev01-2024-01-25T04_09_02
This commit is contained in:
@@ -97,10 +97,10 @@ class WPSEO_Premium_Upsell_Admin_Block {
|
||||
$class = $this->get_html_class();
|
||||
|
||||
/* translators: %s expands to Yoast SEO Premium */
|
||||
$button_text = YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) ? \esc_html__( 'Claim your 30% off now!', 'wordpress-seo' ) : sprintf( esc_html__( 'Explore %s now!', 'wordpress-seo' ), 'Yoast SEO Premium' );
|
||||
$button_text = YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) ? esc_html__( 'Claim your 30% off now!', 'wordpress-seo' ) : sprintf( esc_html__( 'Explore %s now!', 'wordpress-seo' ), 'Yoast SEO Premium' );
|
||||
/* translators: Hidden accessibility text. */
|
||||
$button_text .= '<span class="screen-reader-text">' . esc_html__( '(Opens in a new browser tab)', 'wordpress-seo' ) . '</span>' .
|
||||
'<span aria-hidden="true" class="yoast-button-upsell__caret"></span>';
|
||||
$button_text .= '<span class="screen-reader-text">' . esc_html__( '(Opens in a new browser tab)', 'wordpress-seo' ) . '</span>'
|
||||
. '<span aria-hidden="true" class="yoast-button-upsell__caret"></span>';
|
||||
|
||||
$upgrade_button = sprintf(
|
||||
'<a id="%1$s" class="yoast-button-upsell" data-action="load-nfd-ctb" data-ctb-id="f6a84663-465f-4cb5-8ba5-f7a6d72224b2" href="%2$s" target="_blank">%3$s</a>',
|
||||
@@ -112,20 +112,20 @@ class WPSEO_Premium_Upsell_Admin_Block {
|
||||
echo '<div class="' . esc_attr( $class ) . '">';
|
||||
|
||||
if ( YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) ) {
|
||||
$bf_label = \esc_html__( 'BLACK FRIDAY', 'wordpress-seo' );
|
||||
$sale_label = \esc_html__( '30% OFF', 'wordpress-seo' );
|
||||
$bf_label = esc_html__( 'BLACK FRIDAY', 'wordpress-seo' );
|
||||
$sale_label = esc_html__( '30% OFF', 'wordpress-seo' );
|
||||
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Already escaped above.
|
||||
echo "<div class='black-friday-container'><span>$bf_label</span> <span style='margin-left: auto;'>$sale_label</span> </div>";
|
||||
}
|
||||
|
||||
echo '<div class="' . esc_attr( $class . '--container' ) . '">';
|
||||
echo '<h2 class="' . esc_attr( $class . '--header' ) . '">' .
|
||||
sprintf(
|
||||
echo '<h2 class="' . esc_attr( $class . '--header' ) . '">'
|
||||
. sprintf(
|
||||
/* translators: %s expands to Yoast SEO Premium */
|
||||
esc_html__( 'Upgrade to %s', 'wordpress-seo' ),
|
||||
'Yoast SEO Premium'
|
||||
) .
|
||||
'</h2>';
|
||||
)
|
||||
. '</h2>';
|
||||
|
||||
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Correctly escaped in $this->get_argument_html() method.
|
||||
echo '<ul class="' . esc_attr( $class . '--motivation' ) . '">' . $arguments_html . '</ul>';
|
||||
|
||||
Reference in New Issue
Block a user