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.../httpdocs/clone/wp-conte.../plugins/wordpres.../admin/views
File: licenses.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WPSEO plugin file.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WPSEO\Admin
[4] Fix | Delete
* @since 5.1
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
use Yoast\WP\SEO\Promotions\Application\Promotion_Manager;
[8] Fix | Delete
[9] Fix | Delete
if ( ! defined( 'WPSEO_VERSION' ) ) {
[10] Fix | Delete
header( 'Status: 403 Forbidden' );
[11] Fix | Delete
header( 'HTTP/1.1 403 Forbidden' );
[12] Fix | Delete
exit();
[13] Fix | Delete
}
[14] Fix | Delete
[15] Fix | Delete
do_action( 'wpseo_install_and_activate_addons' );
[16] Fix | Delete
[17] Fix | Delete
$premium_extension = [
[18] Fix | Delete
'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zz' ),
[19] Fix | Delete
'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zy' ),
[20] Fix | Delete
'title' => 'Yoast SEO Premium',
[21] Fix | Delete
/* translators: %1$s expands to Yoast SEO */
[22] Fix | Delete
'desc' => sprintf( __( 'The premium version of %1$s with more features & support.', 'wordpress-seo' ), 'Yoast SEO' ),
[23] Fix | Delete
'image' => plugin_dir_url( WPSEO_FILE ) . 'packages/js/images/Yoast_SEO_Icon.svg',
[24] Fix | Delete
'benefits' => [],
[25] Fix | Delete
];
[26] Fix | Delete
[27] Fix | Delete
$extensions = [
[28] Fix | Delete
WPSEO_Addon_Manager::LOCAL_SLUG => [
[29] Fix | Delete
'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zt' ),
[30] Fix | Delete
'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zs' ),
[31] Fix | Delete
'title' => 'Local SEO',
[32] Fix | Delete
'display_title' => __( 'Stand out for local searches', 'wordpress-seo' ),
[33] Fix | Delete
'desc' => __( 'Rank better locally and in Google Maps, without breaking a sweat!', 'wordpress-seo' ),
[34] Fix | Delete
'image' => plugins_url( 'images/local_plugin_assistant.svg?v=' . WPSEO_VERSION, WPSEO_FILE ),
[35] Fix | Delete
'benefits' => [
[36] Fix | Delete
__( 'Attract more customers to your site and physical store', 'wordpress-seo' ),
[37] Fix | Delete
__( 'Automatically get technical SEO best practices for local businesses', 'wordpress-seo' ),
[38] Fix | Delete
__( 'Easily add maps, address finders, and opening hours to your content', 'wordpress-seo' ),
[39] Fix | Delete
__( 'Optimize your business for multiple locations', 'wordpress-seo' ),
[40] Fix | Delete
],
[41] Fix | Delete
],
[42] Fix | Delete
WPSEO_Addon_Manager::VIDEO_SLUG => [
[43] Fix | Delete
'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zx/' ),
[44] Fix | Delete
'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zw/' ),
[45] Fix | Delete
'title' => 'Video SEO',
[46] Fix | Delete
'display_title' => __( 'Drive more views to your videos', 'wordpress-seo' ),
[47] Fix | Delete
'desc' => __( 'Optimize your videos to show them off in search results and get more clicks!', 'wordpress-seo' ),
[48] Fix | Delete
'image' => plugins_url( 'images/video_plugin_assistant.svg?v=' . WPSEO_VERSION, WPSEO_FILE ),
[49] Fix | Delete
'benefits' => [
[50] Fix | Delete
__( 'Automatically get technical SEO best practices for video content', 'wordpress-seo' ),
[51] Fix | Delete
__( 'Make sure your videos load quickly for users', 'wordpress-seo' ),
[52] Fix | Delete
__( 'Make your videos responsive for all screen sizes', 'wordpress-seo' ),
[53] Fix | Delete
__( 'Optimize your video previews & thumbnails', 'wordpress-seo' ),
[54] Fix | Delete
],
[55] Fix | Delete
],
[56] Fix | Delete
WPSEO_Addon_Manager::NEWS_SLUG => [
[57] Fix | Delete
'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zv/' ),
[58] Fix | Delete
'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zu/' ),
[59] Fix | Delete
'title' => 'News SEO',
[60] Fix | Delete
'display_title' => __( 'Rank higher in Google\'s news carousel', 'wordpress-seo' ),
[61] Fix | Delete
'desc' => __( 'Are you in Google News? Increase your traffic from Google News by optimizing for it!', 'wordpress-seo' ),
[62] Fix | Delete
'image' => plugins_url( 'images/news_plugin_assistant.svg?v=' . WPSEO_VERSION, WPSEO_FILE ),
[63] Fix | Delete
'benefits' => [
[64] Fix | Delete
__( 'Optimize your site for Google News', 'wordpress-seo' ),
[65] Fix | Delete
__( 'Ping Google on the publication of a new post', 'wordpress-seo' ),
[66] Fix | Delete
__( 'Add all necessary schema.org markup', 'wordpress-seo' ),
[67] Fix | Delete
__( 'Get XML sitemaps', 'wordpress-seo' ),
[68] Fix | Delete
],
[69] Fix | Delete
],
[70] Fix | Delete
];
[71] Fix | Delete
[72] Fix | Delete
// Add Yoast WooCommerce SEO when WooCommerce is active.
[73] Fix | Delete
if ( YoastSEO()->helpers->woocommerce->is_active() ) {
[74] Fix | Delete
$extensions[ WPSEO_Addon_Manager::WOOCOMMERCE_SLUG ] = [
[75] Fix | Delete
'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zr' ),
[76] Fix | Delete
'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zq' ),
[77] Fix | Delete
'title' => 'Yoast WooCommerce SEO',
[78] Fix | Delete
'display_title' => __( 'Drive more traffic to your online store', 'wordpress-seo' ),
[79] Fix | Delete
/* translators: %1$s expands to Yoast SEO */
[80] Fix | Delete
'desc' => sprintf( __( 'Seamlessly integrate WooCommerce with %1$s and get extra features!', 'wordpress-seo' ), 'Yoast SEO' ),
[81] Fix | Delete
'image' => plugins_url( 'images/woo_plugin_assistant.svg?v=' . WPSEO_VERSION, WPSEO_FILE ),
[82] Fix | Delete
'benefits' => [
[83] Fix | Delete
__( 'Write product pages that rank using the SEO analysis', 'wordpress-seo' ),
[84] Fix | Delete
__( 'Increase Google clicks with rich results', 'wordpress-seo' ),
[85] Fix | Delete
__( 'Add global identifiers for variable products', 'wordpress-seo' ),
[86] Fix | Delete
/* translators: %1$s expands to Yoast SEO, %2$s expands to WooCommerce */
[87] Fix | Delete
sprintf( __( 'Seamless integration between %1$s and %2$s', 'wordpress-seo' ), 'Yoast SEO', 'WooCommerce' ),
[88] Fix | Delete
__( 'Turn more visitors into customers!', 'wordpress-seo' ),
[89] Fix | Delete
],
[90] Fix | Delete
'buy_button' => 'WooCommerce SEO',
[91] Fix | Delete
];
[92] Fix | Delete
}
[93] Fix | Delete
[94] Fix | Delete
// The total number of plugins to consider is the length of the array + 1 for Premium.
[95] Fix | Delete
// @phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
[96] Fix | Delete
$number_plugins_total = ( count( $extensions ) + 1 );
[97] Fix | Delete
// @phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
[98] Fix | Delete
$number_plugins_active = 0;
[99] Fix | Delete
[100] Fix | Delete
$extensions['yoast-seo-plugin-subscription'] = [
[101] Fix | Delete
'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/premium-page-bundle-buy' ),
[102] Fix | Delete
'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/premium-page-bundle-info' ),
[103] Fix | Delete
/* translators: used in phrases such as "More information about all the Yoast plugins" */
[104] Fix | Delete
'title' => __( 'all the Yoast plugins', 'wordpress-seo' ),
[105] Fix | Delete
'display_title' => __( 'Cover all your SEO bases', 'wordpress-seo' ),
[106] Fix | Delete
'desc' => '',
[107] Fix | Delete
'image' => plugins_url( 'images/plugin_subscription.svg?v=' . WPSEO_VERSION, WPSEO_FILE ),
[108] Fix | Delete
'benefits' => [
[109] Fix | Delete
__( 'Get all 5 Yoast plugins for WordPress at a big discount', 'wordpress-seo' ),
[110] Fix | Delete
__( 'Reach new customers who live near your business', 'wordpress-seo' ),
[111] Fix | Delete
__( 'Drive more views to your videos', 'wordpress-seo' ),
[112] Fix | Delete
__( 'Rank higher in Google\'s news carousel', 'wordpress-seo' ),
[113] Fix | Delete
__( 'Drive more traffic to your online store', 'wordpress-seo' ),
[114] Fix | Delete
[115] Fix | Delete
],
[116] Fix | Delete
/* translators: used in phrases such as "Buy all the Yoast plugins" */
[117] Fix | Delete
'buy_button' => __( 'all the Yoast plugins', 'wordpress-seo' ),
[118] Fix | Delete
];
[119] Fix | Delete
[120] Fix | Delete
$addon_manager = new WPSEO_Addon_Manager();
[121] Fix | Delete
$has_valid_premium_subscription = YoastSEO()->helpers->product->is_premium() && $addon_manager->has_valid_subscription( WPSEO_Addon_Manager::PREMIUM_SLUG );
[122] Fix | Delete
[123] Fix | Delete
/* translators: %1$s expands to Yoast SEO. */
[124] Fix | Delete
$wpseo_extensions_header = sprintf( __( '%1$s Extensions', 'wordpress-seo' ), 'Yoast SEO' );
[125] Fix | Delete
$new_tab_message = sprintf(
[126] Fix | Delete
'<span class="screen-reader-text">%1$s</span>',
[127] Fix | Delete
/* translators: Hidden accessibility text. */
[128] Fix | Delete
esc_html__( '(Opens in a new browser tab)', 'wordpress-seo' )
[129] Fix | Delete
);
[130] Fix | Delete
[131] Fix | Delete
$sale_badge = '';
[132] Fix | Delete
$premium_sale_badge = '';
[133] Fix | Delete
[134] Fix | Delete
if ( YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) ) {
[135] Fix | Delete
/* translators: %1$s expands to opening span, %2$s expands to closing span */
[136] Fix | Delete
$sale_badge_span = sprintf( esc_html__( '%1$sSALE 30%% OFF!%2$s', 'wordpress-seo' ), '<span>', '</span>' );
[137] Fix | Delete
[138] Fix | Delete
$sale_badge = '<div class="yoast-seo-premium-extension-sale-badge">' . $sale_badge_span . '</div>';
[139] Fix | Delete
[140] Fix | Delete
$premium_sale_badge = ( $has_valid_premium_subscription ) ? '' : $sale_badge;
[141] Fix | Delete
}
[142] Fix | Delete
[143] Fix | Delete
?>
[144] Fix | Delete
[145] Fix | Delete
<div class="wrap yoast wpseo_table_page">
[146] Fix | Delete
[147] Fix | Delete
<h1 id="wpseo-title" class="yoast-h1"><?php echo esc_html( $wpseo_extensions_header ); ?></h1>
[148] Fix | Delete
[149] Fix | Delete
<div id="extensions">
[150] Fix | Delete
<section class="yoast-seo-premium-extension">
[151] Fix | Delete
<?php echo $premium_sale_badge; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: Output is already escaped ?>
[152] Fix | Delete
<h2>
[153] Fix | Delete
<?php esc_html_e( 'Rank higher in search results', 'wordpress-seo' ); ?>
[154] Fix | Delete
<img alt="" width="100" height="100" src="<?php echo esc_url( $premium_extension['image'] ); ?>"/>
[155] Fix | Delete
</h2>
[156] Fix | Delete
<?php
[157] Fix | Delete
if ( ! $has_valid_premium_subscription ) :
[158] Fix | Delete
?>
[159] Fix | Delete
<ul class="yoast-seo-premium-benefits yoast-list--usp">
[160] Fix | Delete
<li class="yoast-seo-premium-benefits__item">
[161] Fix | Delete
<?php
[162] Fix | Delete
printf(
[163] Fix | Delete
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
[164] Fix | Delete
esc_html__( '%1$sAI%2$s: Better SEO titles and meta descriptions, faster.', 'wordpress-seo' ),
[165] Fix | Delete
'<strong>',
[166] Fix | Delete
'</strong>'
[167] Fix | Delete
);
[168] Fix | Delete
?>
[169] Fix | Delete
</li>
[170] Fix | Delete
<li class="yoast-seo-premium-benefits__item">
[171] Fix | Delete
<?php
[172] Fix | Delete
printf(
[173] Fix | Delete
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
[174] Fix | Delete
esc_html__( '%1$sMultiple keywords%2$s: Rank higher for more searches.', 'wordpress-seo' ),
[175] Fix | Delete
'<strong>',
[176] Fix | Delete
'</strong>'
[177] Fix | Delete
);
[178] Fix | Delete
?>
[179] Fix | Delete
</li>
[180] Fix | Delete
<li class="yoast-seo-premium-benefits__item">
[181] Fix | Delete
<?php
[182] Fix | Delete
printf(
[183] Fix | Delete
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
[184] Fix | Delete
esc_html__( '%1$sSuper fast%2$s internal linking suggestions.', 'wordpress-seo' ),
[185] Fix | Delete
'<strong>',
[186] Fix | Delete
'</strong>'
[187] Fix | Delete
);
[188] Fix | Delete
?>
[189] Fix | Delete
</li>
[190] Fix | Delete
<li class="yoast-seo-premium-benefits__item">
[191] Fix | Delete
<?php
[192] Fix | Delete
printf(
[193] Fix | Delete
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
[194] Fix | Delete
esc_html__( '%1$sNo more broken links%2$s: Automatic redirect manager.', 'wordpress-seo' ),
[195] Fix | Delete
'<strong>',
[196] Fix | Delete
'</strong>'
[197] Fix | Delete
);
[198] Fix | Delete
?>
[199] Fix | Delete
</li>
[200] Fix | Delete
<li class="yoast-seo-premium-benefits__item">
[201] Fix | Delete
<?php
[202] Fix | Delete
printf(
[203] Fix | Delete
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
[204] Fix | Delete
esc_html__( '%1$sAppealing social previews%2$s people actually want to click on.', 'wordpress-seo' ),
[205] Fix | Delete
'<strong>',
[206] Fix | Delete
'</strong>'
[207] Fix | Delete
);
[208] Fix | Delete
?>
[209] Fix | Delete
</li>
[210] Fix | Delete
<li class="yoast-seo-premium-benefits__item">
[211] Fix | Delete
<?php
[212] Fix | Delete
printf(
[213] Fix | Delete
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
[214] Fix | Delete
esc_html__( '%1$s24/7 support%2$s: Also on evenings and weekends.', 'wordpress-seo' ),
[215] Fix | Delete
'<strong>',
[216] Fix | Delete
'</strong>'
[217] Fix | Delete
);
[218] Fix | Delete
?>
[219] Fix | Delete
</li>
[220] Fix | Delete
</ul>
[221] Fix | Delete
<?php endif; ?>
[222] Fix | Delete
<?php if ( $addon_manager->is_installed( WPSEO_Addon_Manager::PREMIUM_SLUG ) ) : ?>
[223] Fix | Delete
<div class="yoast-button yoast-button--noarrow yoast-button--extension yoast-button--extension-installed"><?php esc_html_e( 'Installed', 'wordpress-seo' ); ?></div>
[224] Fix | Delete
[225] Fix | Delete
<?php
[226] Fix | Delete
if ( $has_valid_premium_subscription ) :
[227] Fix | Delete
++$number_plugins_active;
[228] Fix | Delete
?>
[229] Fix | Delete
<div class="yoast-button yoast-button--noarrow yoast-button--extension yoast-button--extension-activated"><?php esc_html_e( 'Activated', 'wordpress-seo' ); ?></div>
[230] Fix | Delete
<a target="_blank" href="<?php WPSEO_Shortlinker::show( 'https://yoa.st/13k' ); ?>" class="yoast-link--license">
[231] Fix | Delete
<?php
[232] Fix | Delete
printf(
[233] Fix | Delete
/* translators: %s expands to the extension title */
[234] Fix | Delete
esc_html__( 'Manage your %s subscription on MyYoast', 'wordpress-seo' ),
[235] Fix | Delete
esc_html( $premium_extension['title'] )
[236] Fix | Delete
);
[237] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
[238] Fix | Delete
echo $new_tab_message;
[239] Fix | Delete
?>
[240] Fix | Delete
</a>
[241] Fix | Delete
<?php else : ?>
[242] Fix | Delete
<div class="yoast-button yoast-button--noarrow yoast-button--extension yoast-button--extension-not-activated"><?php esc_html_e( 'Not activated', 'wordpress-seo' ); ?></div>
[243] Fix | Delete
<a target="_blank" href="<?php WPSEO_Shortlinker::show( 'https://yoa.st/13i' ); ?>" class="yoast-link--license">
[244] Fix | Delete
<?php
[245] Fix | Delete
printf(
[246] Fix | Delete
/* translators: %s expands to the extension title */
[247] Fix | Delete
esc_html__( 'Activate %s for your site on MyYoast', 'wordpress-seo' ),
[248] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The `get_title` value is hardcoded; only passed through the WPSEO_Extensions class.
[249] Fix | Delete
esc_html( $premium_extension['title'] )
[250] Fix | Delete
);
[251] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
[252] Fix | Delete
echo $new_tab_message;
[253] Fix | Delete
?>
[254] Fix | Delete
</a>
[255] Fix | Delete
<?php endif; ?>
[256] Fix | Delete
[257] Fix | Delete
<?php else : ?>
[258] Fix | Delete
[259] Fix | Delete
<a target="_blank" data-action="load-nfd-ctb" data-ctb-id="f6a84663-465f-4cb5-8ba5-f7a6d72224b2" href="<?php echo esc_url( $premium_extension['buyUrl'] ); ?>" class="yoast-button-upsell">
[260] Fix | Delete
<?php
[261] Fix | Delete
printf(
[262] Fix | Delete
/* translators: $s expands to Yoast SEO Premium */
[263] Fix | Delete
esc_html__( 'Buy %s', 'wordpress-seo' ),
[264] Fix | Delete
esc_html( $premium_extension['title'] )
[265] Fix | Delete
);
[266] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
[267] Fix | Delete
echo $new_tab_message;
[268] Fix | Delete
echo '<span aria-hidden="true" class="yoast-button-upsell__caret"></span>';
[269] Fix | Delete
?>
[270] Fix | Delete
</a>
[271] Fix | Delete
[272] Fix | Delete
<a target="_blank" href="<?php echo esc_url( $premium_extension['infoUrl'] ); ?>" class="yoast-link--more-info">
[273] Fix | Delete
<?php
[274] Fix | Delete
esc_html_e( 'Explore now', 'wordpress-seo' );
[275] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
[276] Fix | Delete
echo $new_tab_message;
[277] Fix | Delete
?>
[278] Fix | Delete
</a>
[279] Fix | Delete
<?php endif; ?>
[280] Fix | Delete
<?php if ( ! $has_valid_premium_subscription ) { ?>
[281] Fix | Delete
<p>
[282] Fix | Delete
<small class="yoast-money-back-guarantee"><?php esc_html_e( 'With a 30-day money-back guarantee. No questions asked.', 'wordpress-seo' ); ?></small>
[283] Fix | Delete
</p>
[284] Fix | Delete
<?php } ?>
[285] Fix | Delete
</section>
[286] Fix | Delete
[287] Fix | Delete
<hr class="yoast-hr" aria-hidden="true"/>
[288] Fix | Delete
[289] Fix | Delete
<section class="yoast-promo-extensions">
[290] Fix | Delete
<h2>
[291] Fix | Delete
<?php
[292] Fix | Delete
printf(
[293] Fix | Delete
/* translators: %1$s expands to a span opening tag, %2$s expands to a span closing tag, %3$s expands to Yoast SEO */
[294] Fix | Delete
esc_html__( '%1$sOutrank your competitors even further%2$s with these %3$s plugins', 'wordpress-seo' ),
[295] Fix | Delete
'<span class="yoast-heading-highlight">',
[296] Fix | Delete
'</span>',
[297] Fix | Delete
'Yoast SEO'
[298] Fix | Delete
);
[299] Fix | Delete
?>
[300] Fix | Delete
</h2>
[301] Fix | Delete
[302] Fix | Delete
<?php
[303] Fix | Delete
foreach ( $extensions as $slug => $extension ) :
[304] Fix | Delete
[305] Fix | Delete
// Skip the "All the plugins" card if the user has already all the plugins active.
[306] Fix | Delete
if ( $slug === 'yoast-seo-plugin-subscription' && $number_plugins_active === $number_plugins_total ) {
[307] Fix | Delete
continue;
[308] Fix | Delete
}
[309] Fix | Delete
?>
[310] Fix | Delete
<section class="yoast-promoblock secondary yoast-promo-extension">
[311] Fix | Delete
<?php if ( ! $addon_manager->has_valid_subscription( $slug ) || ! $addon_manager->is_installed( $slug ) ) : ?>
[312] Fix | Delete
<?php echo $sale_badge; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: Output already escaped ?>
[313] Fix | Delete
<?php endif; ?>
[314] Fix | Delete
<h3>
[315] Fix | Delete
<img alt="" width="100" height="100" src="<?php echo esc_url( $extension['image'] ); ?>"/>
[316] Fix | Delete
<?php echo esc_html( $extension['display_title'] ); ?>
[317] Fix | Delete
</h3>
[318] Fix | Delete
<ul class="yoast-list--usp">
[319] Fix | Delete
<?php foreach ( $extension['benefits'] as $benefit ) : ?>
[320] Fix | Delete
<li><?php echo esc_html( $benefit ); ?></li>
[321] Fix | Delete
<?php endforeach; ?>
[322] Fix | Delete
</ul>
[323] Fix | Delete
[324] Fix | Delete
<div class="yoast-button-container">
[325] Fix | Delete
<?php if ( $addon_manager->is_installed( $slug ) ) : ?>
[326] Fix | Delete
<div class="yoast-button yoast-button--noarrow yoast-button--extension yoast-button--extension-installed"><?php esc_html_e( 'Installed', 'wordpress-seo' ); ?></div>
[327] Fix | Delete
[328] Fix | Delete
<?php
[329] Fix | Delete
if ( $addon_manager->has_valid_subscription( $slug ) ) :
[330] Fix | Delete
++$number_plugins_active;
[331] Fix | Delete
?>
[332] Fix | Delete
<div class="yoast-button yoast-button--noarrow yoast-button--extension yoast-button--extension-activated"><?php esc_html_e( 'Activated', 'wordpress-seo' ); ?></div>
[333] Fix | Delete
<a target="_blank" href="<?php WPSEO_Shortlinker::show( 'https://yoa.st/13k' ); ?>" class="yoast-link--license">
[334] Fix | Delete
<?php
[335] Fix | Delete
printf(
[336] Fix | Delete
/* translators: %s expands to the extension title */
[337] Fix | Delete
esc_html__( 'Manage your %s subscription on MyYoast', 'wordpress-seo' ),
[338] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The `get_title` value is hardcoded; only passed through the WPSEO_Extensions class.
[339] Fix | Delete
$extension['title']
[340] Fix | Delete
);
[341] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
[342] Fix | Delete
echo $new_tab_message;
[343] Fix | Delete
?>
[344] Fix | Delete
</a>
[345] Fix | Delete
<?php else : ?>
[346] Fix | Delete
<div class="yoast-button yoast-button--noarrow yoast-button--extension yoast-button--extension-not-activated"><?php esc_html_e( 'Not activated', 'wordpress-seo' ); ?></div>
[347] Fix | Delete
<a target="_blank" href="<?php WPSEO_Shortlinker::show( 'https://yoa.st/13i' ); ?>" class="yoast-link--license">
[348] Fix | Delete
<?php
[349] Fix | Delete
printf(
[350] Fix | Delete
/* translators: %s expands to the extension title */
[351] Fix | Delete
esc_html__( 'Activate %s for your site on MyYoast', 'wordpress-seo' ),
[352] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The `get_title` value is hardcoded; only passed through the WPSEO_Extensions class.
[353] Fix | Delete
$extension['title']
[354] Fix | Delete
);
[355] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
[356] Fix | Delete
echo $new_tab_message;
[357] Fix | Delete
?>
[358] Fix | Delete
</a>
[359] Fix | Delete
<?php endif; ?>
[360] Fix | Delete
<?php else : ?>
[361] Fix | Delete
<a target="_blank" class="yoast-button-upsell" href="<?php echo esc_url( $extension['buyUrl'] ); ?>">
[362] Fix | Delete
<?php
[363] Fix | Delete
printf(
[364] Fix | Delete
/* translators: %s expands to the product name, e.g. "News SEO" or "all the Yoast Plugins" */
[365] Fix | Delete
esc_html__( 'Buy %s', 'wordpress-seo' ),
[366] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The possible `get_buy_button` values are hardcoded (buy_button or title); only passed through the WPSEO_Extensions class.
[367] Fix | Delete
( isset( $extension['buy_button'] ) ) ? $extension['buy_button'] : $extension['title']
[368] Fix | Delete
);
[369] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
[370] Fix | Delete
echo $new_tab_message;
[371] Fix | Delete
echo '<span aria-hidden="true" class="yoast-button-upsell__caret"></span>';
[372] Fix | Delete
?>
[373] Fix | Delete
</a>
[374] Fix | Delete
<?php if ( $slug === 'yoast-seo-plugin-subscription' ) : ?>
[375] Fix | Delete
<p class="yoast-subscription-discount">
[376] Fix | Delete
<?php esc_html_e( 'Only $/€/£229 per year (ex VAT). Save over 40% with this subscription!', 'wordpress-seo' ); ?>
[377] Fix | Delete
</p>
[378] Fix | Delete
<?php endif; ?>
[379] Fix | Delete
<a target="_blank" class="yoast-link--more-info" href="<?php echo esc_url( $extension['infoUrl'] ); ?>">
[380] Fix | Delete
<?php
[381] Fix | Delete
esc_html_e( 'Explore now', 'wordpress-seo' );
[382] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
[383] Fix | Delete
echo $new_tab_message;
[384] Fix | Delete
?>
[385] Fix | Delete
</a>
[386] Fix | Delete
<?php endif; ?>
[387] Fix | Delete
</div>
[388] Fix | Delete
</section>
[389] Fix | Delete
<?php endforeach; ?>
[390] Fix | Delete
</section>
[391] Fix | Delete
</div>
[392] Fix | Delete
[393] Fix | Delete
</div>
[394] Fix | Delete
[395] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function