plugin updates
This commit is contained in:
@@ -17,7 +17,7 @@ class Sidebar_Presenter extends Abstract_Presenter {
|
||||
* @return string The sidebar HTML.
|
||||
*/
|
||||
public function present() {
|
||||
$title = \__( 'BLACK FRIDAY - 30% OFF', 'wordpress-seo' );
|
||||
$title = \__( '30% OFF - BLACK FRIDAY', 'wordpress-seo' );
|
||||
|
||||
$assets_uri = \trailingslashit( \plugin_dir_url( \WPSEO_FILE ) );
|
||||
$buy_yoast_seo_shortlink = WPSEO_Shortlinker::get( 'https://yoa.st/jj' );
|
||||
@@ -45,7 +45,7 @@ class Sidebar_Presenter extends Abstract_Presenter {
|
||||
sizes="(min-width: 1321px) 75px">
|
||||
</figure>
|
||||
</figure>
|
||||
<?php if ( \YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) ) : ?>
|
||||
<?php if ( \YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2024-promotion' ) ) : ?>
|
||||
<div class="sidebar__sale_banner_container">
|
||||
<div class="sidebar__sale_banner">
|
||||
<span class="banner_text"><?php echo \esc_html( $title ); ?></span>
|
||||
@@ -54,30 +54,31 @@ class Sidebar_Presenter extends Abstract_Presenter {
|
||||
<?php endif; ?>
|
||||
<h2 class="yoast-get-premium-title">
|
||||
<?php
|
||||
/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
|
||||
\printf( \esc_html__( '%1$sGet%2$s %3$s', 'wordpress-seo' ), '<span>', '</span>', 'Yoast SEO Premium' );
|
||||
if ( \YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2024-promotion' ) ) {
|
||||
/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
|
||||
\printf( \esc_html__( '%1$sBuy%2$s %3$s', 'wordpress-seo' ), '<span>', '</span>', 'Yoast SEO Premium' );
|
||||
}
|
||||
else {
|
||||
/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
|
||||
\printf( \esc_html__( '%1$sGet%2$s %3$s', 'wordpress-seo' ), '<span>', '</span>', 'Yoast SEO Premium' );
|
||||
}
|
||||
?>
|
||||
</h2>
|
||||
<p>
|
||||
<?php
|
||||
echo \esc_html__( 'Use AI to generate titles and meta descriptions, automatically redirect deleted pages, get 24/7 support, and much, much more!', 'wordpress-seo' );
|
||||
if ( \YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2024-promotion' ) ) {
|
||||
echo \esc_html__( 'If you were thinking about upgrading, now\'s the time! 30% OFF ends 3rd Dec 11am (CET)', 'wordpress-seo' );
|
||||
}
|
||||
else {
|
||||
echo \esc_html__( 'Use AI to generate titles and meta descriptions, automatically redirect deleted pages, get 24/7 support, and much, much more!', 'wordpress-seo' );
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
<?php if ( \YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) ) : ?>
|
||||
<div class="sidebar__sale_text">
|
||||
<p>
|
||||
<?php
|
||||
/* translators: %1$s expands to an opening strong tag, %2$s expands to a closing strong tag */
|
||||
\printf( \esc_html__( '%1$s SAVE 30%% %2$s on your 12 month subscription', 'wordpress-seo' ), '<strong>', '</strong>' );
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<p class="plugin-buy-button">
|
||||
<a class="yoast-button-upsell" data-action="load-nfd-ctb" data-ctb-id="f6a84663-465f-4cb5-8ba5-f7a6d72224b2" target="_blank" href="<?php echo \esc_url( $buy_yoast_seo_shortlink ); ?>">
|
||||
<?php
|
||||
if ( \YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) ) {
|
||||
echo \esc_html__( 'Claim your 30% off now!', 'wordpress-seo' );
|
||||
if ( \YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2024-promotion' ) ) {
|
||||
echo \esc_html__( 'Buy now', 'wordpress-seo' );
|
||||
}
|
||||
else {
|
||||
/* translators: %s expands to Yoast SEO Premium */
|
||||
@@ -89,9 +90,10 @@ class Sidebar_Presenter extends Abstract_Presenter {
|
||||
</p>
|
||||
<p class="yoast-price-micro-copy">
|
||||
<?php
|
||||
echo \esc_html__( 'Only $/€/£99 per year (ex VAT)', 'wordpress-seo' );
|
||||
if ( ! \YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2024-promotion' ) ) {
|
||||
echo \esc_html__( 'Only $/€/£99 per year (ex VAT)', 'wordpress-seo' ), '<br />';
|
||||
}
|
||||
?>
|
||||
<br />
|
||||
<?php
|
||||
echo \esc_html__( '30-day money back guarantee.', 'wordpress-seo' );
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user