Merged in feature/MAW-855-import-code-into-aws (pull request #2)
code import from pantheon * code import from pantheon
This commit is contained in:
@@ -72,7 +72,8 @@ class Help_Link_Presenter extends Abstract_Presenter {
|
||||
|
||||
if ( $this->opens_in_new_browser_tab ) {
|
||||
$target_blank_attribute = ' target="_blank"';
|
||||
$new_tab_message = ' ' . \__( '(Opens in a new browser tab)', 'wordpress-seo' );
|
||||
/* translators: Hidden accessibility text. */
|
||||
$new_tab_message = ' ' . \__( '(Opens in a new browser tab)', 'wordpress-seo' );
|
||||
}
|
||||
|
||||
return \sprintf(
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace Yoast\WP\SEO\Presenters\Admin;
|
||||
|
||||
use WPSEO_Shortlinker;
|
||||
use Yoast\WP\SEO\Presenters\Abstract_Presenter;
|
||||
use Yoast\WP\SEO\Promotions\Application\Promotion_Manager;
|
||||
|
||||
/**
|
||||
* Presenter class for the Yoast SEO sidebar.
|
||||
@@ -16,6 +17,8 @@ class Sidebar_Presenter extends Abstract_Presenter {
|
||||
* @return string The sidebar HTML.
|
||||
*/
|
||||
public function present() {
|
||||
$title = \__( 'BLACK FRIDAY - 30% OFF', 'wordpress-seo' );
|
||||
|
||||
$assets_uri = \trailingslashit( \plugin_dir_url( \WPSEO_FILE ) );
|
||||
$buy_yoast_seo_shortlink = WPSEO_Shortlinker::get( 'https://yoa.st/jj' );
|
||||
\ob_start();
|
||||
@@ -42,6 +45,13 @@ 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' ) ) : ?>
|
||||
<div class="sidebar__sale_banner_container">
|
||||
<div class="sidebar__sale_banner">
|
||||
<span class="banner_text"><?php echo \esc_html( $title ); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<?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". */
|
||||
@@ -50,31 +60,45 @@ class Sidebar_Presenter extends Abstract_Presenter {
|
||||
</h2>
|
||||
<p>
|
||||
<?php
|
||||
/* translators: %1$s expands to an opening strong tag, %2$s expands to a closing strong tag */
|
||||
\printf( \esc_html__( 'Be the first to get %1$snew features & tools%2$s, before everyone else. Get %1$s 24/7 support%2$s and boost your website’s visibility.', 'wordpress-seo' ), '<strong>', '</strong>' );
|
||||
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
|
||||
/* translators: %s expands to Yoast SEO Premium */
|
||||
\printf( \esc_html__( 'Get %s', 'wordpress-seo' ), 'Yoast SEO Premium' );
|
||||
if ( YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) ) {
|
||||
echo \esc_html__( 'Claim your 30% off now!', 'wordpress-seo' );
|
||||
}
|
||||
else {
|
||||
/* translators: %s expands to Yoast SEO Premium */
|
||||
\printf( \esc_html__( 'Get %s', 'wordpress-seo' ), 'Yoast SEO Premium' );
|
||||
}
|
||||
?>
|
||||
<span aria-hidden="true" class="yoast-button-upsell__caret"></span>
|
||||
</a>
|
||||
</p>
|
||||
<div class="review-container">
|
||||
<a href="https://www.g2.com/products/yoast-yoast/reviews" target="_blank" rel="noopener">
|
||||
<h3 class="title">
|
||||
<span class="claim">
|
||||
<?php \esc_html_e( 'Read reviews from real users', 'wordpress-seo' ); ?>
|
||||
</h3>
|
||||
</span>
|
||||
<span class="rating">
|
||||
<img alt="" loading="lazy" fetchpriority="low" decoding="async" height="22" width="22" src="<?php echo \esc_url( $assets_uri . 'packages/js/images/logo-g2-white.svg' ); ?>">
|
||||
<img alt="" loading="lazy" fetchpriority="low" decoding="async" height="22" width="22" src="<?php echo \esc_url( $assets_uri . 'packages/js/images/star-rating-star.svg' ); ?>">
|
||||
<img alt="" loading="lazy" fetchpriority="low" decoding="async" height="22" width="22" src="<?php echo \esc_url( $assets_uri . 'packages/js/images/star-rating-star.svg' ); ?>">
|
||||
<img alt="" loading="lazy" fetchpriority="low" decoding="async" height="22" width="22" src="<?php echo \esc_url( $assets_uri . 'packages/js/images/star-rating-star.svg' ); ?>">
|
||||
<img alt="" loading="lazy" fetchpriority="low" decoding="async" height="22" width="22" src="<?php echo \esc_url( $assets_uri . 'packages/js/images/star-rating-star.svg' ); ?>">
|
||||
<img alt="" loading="lazy" fetchpriority="low" decoding="async" height="22" width="22" src="<?php echo \esc_url( $assets_uri . 'packages/js/images/star-rating-half.svg' ); ?>">
|
||||
<img alt="" loading="lazy" fetchpriority="low" decoding="async" height="22" width="22" src="<?php echo \esc_url( $assets_uri . 'packages/js/images/g2_logo_white_optm.svg' ); ?>">
|
||||
<img alt="" loading="lazy" fetchpriority="low" decoding="async" height="20" width="20" src="<?php echo \esc_url( $assets_uri . 'packages/js/images/star-rating-star.svg' ); ?>">
|
||||
<img alt="" loading="lazy" fetchpriority="low" decoding="async" height="20" width="20" src="<?php echo \esc_url( $assets_uri . 'packages/js/images/star-rating-star.svg' ); ?>">
|
||||
<img alt="" loading="lazy" fetchpriority="low" decoding="async" height="20" width="20" src="<?php echo \esc_url( $assets_uri . 'packages/js/images/star-rating-star.svg' ); ?>">
|
||||
<img alt="" loading="lazy" fetchpriority="low" decoding="async" height="20" width="20" src="<?php echo \esc_url( $assets_uri . 'packages/js/images/star-rating-star.svg' ); ?>">
|
||||
<img alt="" loading="lazy" fetchpriority="low" decoding="async" height="20" width="20" src="<?php echo \esc_url( $assets_uri . 'packages/js/images/star-rating-half.svg' ); ?>">
|
||||
<span class="rating-text">4.6 / 5</span>
|
||||
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user