Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../public_h.../wp-conte.../plugins/wordpres.../src/presente.../admin
File: sidebar-presenter.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Presenters\Admin;
[2] Fix | Delete
[3] Fix | Delete
use WPSEO_Shortlinker;
[4] Fix | Delete
use Yoast\WP\SEO\Presenters\Abstract_Presenter;
[5] Fix | Delete
use Yoast\WP\SEO\Promotions\Application\Promotion_Manager;
[6] Fix | Delete
[7] Fix | Delete
/**
[8] Fix | Delete
* Presenter class for the Yoast SEO sidebar.
[9] Fix | Delete
*/
[10] Fix | Delete
class Sidebar_Presenter extends Abstract_Presenter {
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* Presents the sidebar.
[14] Fix | Delete
*
[15] Fix | Delete
* @return string The sidebar HTML.
[16] Fix | Delete
*/
[17] Fix | Delete
public function present() {
[18] Fix | Delete
$title = \__( 'BLACK FRIDAY - 30% OFF', 'wordpress-seo' );
[19] Fix | Delete
[20] Fix | Delete
$assets_uri = \trailingslashit( \plugin_dir_url( \WPSEO_FILE ) );
[21] Fix | Delete
$buy_yoast_seo_shortlink = WPSEO_Shortlinker::get( 'https://yoa.st/jj' );
[22] Fix | Delete
\ob_start();
[23] Fix | Delete
?>
[24] Fix | Delete
<div class="wpseo_content_cell" id="sidebar-container">
[25] Fix | Delete
<div id="sidebar" class="yoast-sidebar">
[26] Fix | Delete
<div class="wpseo_content_cell_title yoast-sidebar__title">
[27] Fix | Delete
<?php
[28] Fix | Delete
/* translators: %1$s expands to Yoast */
[29] Fix | Delete
\printf( \esc_html__( '%1$s recommendations for you', 'wordpress-seo' ), 'Yoast' );
[30] Fix | Delete
?>
[31] Fix | Delete
</div>
[32] Fix | Delete
<div class="yoast-sidebar__product">
[33] Fix | Delete
<figure class="product-image">
[34] Fix | Delete
<figure class="product-image">
[35] Fix | Delete
<img
[36] Fix | Delete
width="75" height="75"
[37] Fix | Delete
src="<?php echo \esc_url( $assets_uri . 'packages/js/images/Yoast_SEO_Icon.svg' ); ?>"
[38] Fix | Delete
class="attachment-full size-full content-visible"
[39] Fix | Delete
alt="Yoast SEO logo"
[40] Fix | Delete
loading="lazy"
[41] Fix | Delete
decoding="asyc"
[42] Fix | Delete
fetchpriority="low"
[43] Fix | Delete
sizes="(min-width: 1321px) 75px">
[44] Fix | Delete
</figure>
[45] Fix | Delete
</figure>
[46] Fix | Delete
<?php if ( \YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) ) : ?>
[47] Fix | Delete
<div class="sidebar__sale_banner_container">
[48] Fix | Delete
<div class="sidebar__sale_banner">
[49] Fix | Delete
<span class="banner_text"><?php echo \esc_html( $title ); ?></span>
[50] Fix | Delete
</div>
[51] Fix | Delete
</div>
[52] Fix | Delete
<?php endif; ?>
[53] Fix | Delete
<h2 class="yoast-get-premium-title">
[54] Fix | Delete
<?php
[55] Fix | Delete
/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
[56] Fix | Delete
\printf( \esc_html__( '%1$sGet%2$s %3$s', 'wordpress-seo' ), '<span>', '</span>', 'Yoast SEO Premium' );
[57] Fix | Delete
?>
[58] Fix | Delete
</h2>
[59] Fix | Delete
<p>
[60] Fix | Delete
<?php
[61] Fix | Delete
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' );
[62] Fix | Delete
?>
[63] Fix | Delete
</p>
[64] Fix | Delete
<?php if ( \YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) ) : ?>
[65] Fix | Delete
<div class="sidebar__sale_text">
[66] Fix | Delete
<p>
[67] Fix | Delete
<?php
[68] Fix | Delete
/* translators: %1$s expands to an opening strong tag, %2$s expands to a closing strong tag */
[69] Fix | Delete
\printf( \esc_html__( '%1$s SAVE 30%% %2$s on your 12 month subscription', 'wordpress-seo' ), '<strong>', '</strong>' );
[70] Fix | Delete
?>
[71] Fix | Delete
</p>
[72] Fix | Delete
</div>
[73] Fix | Delete
<?php endif; ?>
[74] Fix | Delete
<p class="plugin-buy-button">
[75] Fix | Delete
<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 ); ?>">
[76] Fix | Delete
<?php
[77] Fix | Delete
if ( \YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) ) {
[78] Fix | Delete
echo \esc_html__( 'Claim your 30% off now!', 'wordpress-seo' );
[79] Fix | Delete
}
[80] Fix | Delete
else {
[81] Fix | Delete
/* translators: %s expands to Yoast SEO Premium */
[82] Fix | Delete
\printf( \esc_html__( 'Get %1$s', 'wordpress-seo' ), 'Yoast SEO Premium' );
[83] Fix | Delete
}
[84] Fix | Delete
?>
[85] Fix | Delete
<span aria-hidden="true" class="yoast-button-upsell__caret"></span>
[86] Fix | Delete
</a>
[87] Fix | Delete
</p>
[88] Fix | Delete
<p class="yoast-price-micro-copy">
[89] Fix | Delete
<?php
[90] Fix | Delete
echo \esc_html__( 'Only $/€/£99 per year (ex VAT)', 'wordpress-seo' );
[91] Fix | Delete
?>
[92] Fix | Delete
<br />
[93] Fix | Delete
<?php
[94] Fix | Delete
echo \esc_html__( '30-day money back guarantee.', 'wordpress-seo' );
[95] Fix | Delete
?>
[96] Fix | Delete
</p>
[97] Fix | Delete
<hr class="yoast-upsell-hr" aria-hidden="true">
[98] Fix | Delete
<div class="review-container">
[99] Fix | Delete
<a href="https://www.g2.com/products/yoast-yoast/reviews" target="_blank" rel="noopener">
[100] Fix | Delete
<span class="claim">
[101] Fix | Delete
<?php \esc_html_e( 'Read reviews from real users', 'wordpress-seo' ); ?>
[102] Fix | Delete
</span>
[103] Fix | Delete
<span class="rating">
[104] Fix | Delete
<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' ); ?>">
[105] Fix | Delete
<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' ); ?>">
[106] Fix | Delete
<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' ); ?>">
[107] Fix | Delete
<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' ); ?>">
[108] Fix | Delete
<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' ); ?>">
[109] Fix | Delete
<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' ); ?>">
[110] Fix | Delete
<span class="rating-text">4.6 / 5</span>
[111] Fix | Delete
[112] Fix | Delete
</span>
[113] Fix | Delete
</a>
[114] Fix | Delete
</div>
[115] Fix | Delete
</div>
[116] Fix | Delete
</div>
[117] Fix | Delete
<div class="yoast-sidebar__section">
[118] Fix | Delete
<h2>
[119] Fix | Delete
<?php
[120] Fix | Delete
\esc_html_e( 'Learn SEO', 'wordpress-seo' );
[121] Fix | Delete
?>
[122] Fix | Delete
</h2>
[123] Fix | Delete
<p>
[124] Fix | Delete
<?php
[125] Fix | Delete
$academy_shortlink = WPSEO_Shortlinker::get( 'https://yoa.st/3t6' );
[126] Fix | Delete
[127] Fix | Delete
/* translators: %1$s expands to Yoast SEO academy, which is a clickable link. */
[128] Fix | Delete
\printf( \esc_html__( 'Want to learn SEO from Team Yoast? Check out our %1$s!', 'wordpress-seo' ), '<a href="' . \esc_url( $academy_shortlink ) . '" target="_blank"><strong>Yoast SEO academy</strong></a>' );
[129] Fix | Delete
echo '<br/>';
[130] Fix | Delete
\esc_html_e( 'We have both free and premium online courses to learn everything you need to know about SEO.', 'wordpress-seo' );
[131] Fix | Delete
?>
[132] Fix | Delete
</p>
[133] Fix | Delete
<p>
[134] Fix | Delete
<a href="<?php echo \esc_url( $academy_shortlink ); ?>" target="_blank">
[135] Fix | Delete
<?php
[136] Fix | Delete
/* translators: %1$s expands to Yoast SEO academy */
[137] Fix | Delete
\printf( \esc_html__( 'Check out %1$s', 'wordpress-seo' ), 'Yoast SEO academy' );
[138] Fix | Delete
?>
[139] Fix | Delete
</a>
[140] Fix | Delete
</p>
[141] Fix | Delete
</div>
[142] Fix | Delete
</div>
[143] Fix | Delete
<?php
[144] Fix | Delete
return \ob_get_clean();
[145] Fix | Delete
}
[146] Fix | Delete
}
[147] Fix | Delete
[148] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function