Skip to content

Commit

Permalink
Remove mention of price in BF sidebar ad
Browse files Browse the repository at this point in the history
  • Loading branch information
igorschoester committed Oct 2, 2024
1 parent e1a1161 commit cef8e74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ export const PremiumUpsellCard = ( { link, linkProps, promotions } ) => {
<ArrowNarrowRightIcon className="yst-w-4 yst-h-4 yst-icon-rtl" />
</Button>
<p className="yst-text-center yst-text-xs yst-mx-2 yst-font-light yst-leading-5 yst-mt-2">
{ __( "Only $/€/£99 per year (ex VAT)", "wordpress-seo" ) }
<br />
{ ! isBlackFriday && <>
{ __( "Only $/€/£99 per year (ex VAT)", "wordpress-seo" ) }
<br />
</> }
{ __( "30-day money back guarantee.", "wordpress-seo" ) }
</p>
<hr className="yst-border-t yst-border-primary-300 yst-my-4" />
Expand Down
5 changes: 3 additions & 2 deletions src/presenters/admin/sidebar-presenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ class="attachment-full size-full content-visible"
</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' );
?>
Expand Down

0 comments on commit cef8e74

Please sign in to comment.