Edit File by line
/home/barbar84/www/wp-conte.../plugins/wordpres.../admin/views
File: workouts.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WPSEO plugin file.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WPSEO\Admin\Views
[4] Fix | Delete
*
[5] Fix | Delete
* @uses string $cornerstone_guide The link to the cornerstone guide.
[6] Fix | Delete
* @uses string $cornerstone_upsell The link to buy premium from the cornerstone workout.
[7] Fix | Delete
*/
[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
$button_copy = __( 'Finish this step', 'wordpress-seo' );
[16] Fix | Delete
$finished_button_copy = __( 'Revise this step', 'wordpress-seo' );
[17] Fix | Delete
[18] Fix | Delete
?>
[19] Fix | Delete
[20] Fix | Delete
<div id='wpseo-workouts-container'>
[21] Fix | Delete
<div>
[22] Fix | Delete
<h1>
[23] Fix | Delete
<?php esc_html_e( 'SEO Workouts', 'wordpress-seo' ); ?>
[24] Fix | Delete
</h1>
[25] Fix | Delete
<p>
[26] Fix | Delete
<?php
[27] Fix | Delete
esc_html_e(
[28] Fix | Delete
'Getting your site in shape and keeping it SEO fit can be challenging. Let us help you get started by taking on the most common SEO challenges, with these step by step SEO workouts.',
[29] Fix | Delete
'wordpress-seo'
[30] Fix | Delete
);
[31] Fix | Delete
?>
[32] Fix | Delete
</p>
[33] Fix | Delete
<div class='card'>
[34] Fix | Delete
<h2><?php esc_html_e( 'The cornerstone approach', 'wordpress-seo' ); ?></h2>
[35] Fix | Delete
<h3><?php esc_html_e( 'Rank with articles you want to rank with', 'wordpress-seo' ); ?></h3>
[36] Fix | Delete
<p>
[37] Fix | Delete
<?php
[38] Fix | Delete
printf(
[39] Fix | Delete
esc_attr(
[40] Fix | Delete
/* translators: %1$s expands to <em>, %2$s expands to </em>. */
[41] Fix | Delete
__(
[42] Fix | Delete
'On your site you have a few articles that are %1$sthe%2$s most important. You want to rank highest in Google with these articles. At Yoast, we call these articles cornerstone articles. Take the following 6 steps in order to start ranking with your cornerstone articles!',
[43] Fix | Delete
'wordpress-seo'
[44] Fix | Delete
)
[45] Fix | Delete
),
[46] Fix | Delete
'<em>',
[47] Fix | Delete
'</em>'
[48] Fix | Delete
);
[49] Fix | Delete
?>
[50] Fix | Delete
</p>
[51] Fix | Delete
<p>
[52] Fix | Delete
<?php
[53] Fix | Delete
printf(
[54] Fix | Delete
esc_attr(
[55] Fix | Delete
/* translators: %1$s expands to <em>, %2$s expands to <a>, %3$s expands to </a>, %4$s expands to </em>. */
[56] Fix | Delete
__(
[57] Fix | Delete
'%1$sNeed more guidance? We\'ve covered every step in more detail in our %2$sCornerstone practical guide%3$s%4$s.',
[58] Fix | Delete
'wordpress-seo'
[59] Fix | Delete
)
[60] Fix | Delete
),
[61] Fix | Delete
'<em>',
[62] Fix | Delete
'<a href="' . esc_url( $cornerstone_guide ) . '" target="_blank">',
[63] Fix | Delete
'</a>',
[64] Fix | Delete
'</em>'
[65] Fix | Delete
);
[66] Fix | Delete
?>
[67] Fix | Delete
</p>
[68] Fix | Delete
<hr />
[69] Fix | Delete
<ol class='workflow yoast'>
[70] Fix | Delete
<li>
[71] Fix | Delete
<h4><?php esc_html_e( 'Start: Choose your cornerstones!', 'wordpress-seo' ); ?></h4>
[72] Fix | Delete
<div class='workflow__grid'>
[73] Fix | Delete
<div>
[74] Fix | Delete
<p>
[75] Fix | Delete
<?php
[76] Fix | Delete
esc_html_e(
[77] Fix | Delete
'Your site might not feel that SEO fit just yet. But that\'s just a matter of time. Let\'s start this workout by choosing your cornerstones.',
[78] Fix | Delete
'wordpress-seo'
[79] Fix | Delete
);
[80] Fix | Delete
?>
[81] Fix | Delete
</p>
[82] Fix | Delete
<p>
[83] Fix | Delete
<?php
[84] Fix | Delete
printf(
[85] Fix | Delete
esc_attr(
[86] Fix | Delete
/* translators: %1$s expands to <em>, %2$s expands to </em>. */
[87] Fix | Delete
__(
[88] Fix | Delete
'With which articles do you want to rank highest? Which are the most complete, which are the best explainers, which are %1$sthe%2$s most important? Check out your own website and choose the pages and posts you want to be your cornerstone articles!',
[89] Fix | Delete
'wordpress-seo'
[90] Fix | Delete
)
[91] Fix | Delete
),
[92] Fix | Delete
'<em>',
[93] Fix | Delete
'</em>'
[94] Fix | Delete
);
[95] Fix | Delete
?>
[96] Fix | Delete
</p>
[97] Fix | Delete
</div>
[98] Fix | Delete
<div>
[99] Fix | Delete
<img
[100] Fix | Delete
class="workflow__image"
[101] Fix | Delete
src="<?php echo esc_url( plugin_dir_url( WPSEO_FILE ) . 'images/seo_fitness_assistants_unfit.svg' ); ?>"
[102] Fix | Delete
width="100px"
[103] Fix | Delete
height="100px"
[104] Fix | Delete
alt="">
[105] Fix | Delete
</div>
[106] Fix | Delete
</div>
[107] Fix | Delete
<button class='yoast-button'><?php echo esc_html( $button_copy ); ?></button>
[108] Fix | Delete
</li>
[109] Fix | Delete
<li>
[110] Fix | Delete
<h4><?php esc_html_e( 'Mark these articles as cornerstone content', 'wordpress-seo' ); ?></h4>
[111] Fix | Delete
<p>
[112] Fix | Delete
<?php
[113] Fix | Delete
printf(
[114] Fix | Delete
esc_attr(
[115] Fix | Delete
/* translators: %1$s expands to <em>, %2$s expands to </em>. */
[116] Fix | Delete
__(
[117] Fix | Delete
'Surf to each one of your cornerstones on your own website. Hit %1$sedit post%2$s and go to the WordPress Backend. Mark them as cornerstones in the SEO tab of the metabox or the sidebar of Yoast SEO.',
[118] Fix | Delete
'wordpress-seo'
[119] Fix | Delete
)
[120] Fix | Delete
),
[121] Fix | Delete
'<em>',
[122] Fix | Delete
'</em>'
[123] Fix | Delete
);
[124] Fix | Delete
?>
[125] Fix | Delete
</p>
[126] Fix | Delete
<p>
[127] Fix | Delete
<img
[128] Fix | Delete
src="<?php echo esc_url( plugin_dir_url( WPSEO_FILE ) . 'images/stale-cornerstone-content-in-yoast-seo.png' ); ?>"
[129] Fix | Delete
width="504px"
[130] Fix | Delete
height="120px"
[131] Fix | Delete
alt="The cornerstone toggle as shown in the Yoast SEO metabox."
[132] Fix | Delete
style="border: 1px solid rgb(204, 204, 204);"
[133] Fix | Delete
>
[134] Fix | Delete
</p>
[135] Fix | Delete
<button class='yoast-button'><?php echo esc_html( $button_copy ); ?></button>
[136] Fix | Delete
</li>
[137] Fix | Delete
<li class="yoast-fadeout">
[138] Fix | Delete
<h4><?php esc_html_e( 'Want to continue?', 'wordpress-seo' ); ?></h4>
[139] Fix | Delete
<div class='workflow__grid'>
[140] Fix | Delete
<div>
[141] Fix | Delete
<p>
[142] Fix | Delete
<?php
[143] Fix | Delete
esc_html_e(
[144] Fix | Delete
'Finish this workout and make sure the right pages are ranking with Yoast SEO Premium.',
[145] Fix | Delete
'wordpress-seo'
[146] Fix | Delete
);
[147] Fix | Delete
?>
[148] Fix | Delete
</p>
[149] Fix | Delete
<a class='yoast-button-upsell' href='<?php echo esc_url( $cornerstone_upsell ); ?>'>
[150] Fix | Delete
<?php esc_html_e( 'Get Yoast SEO Premium', 'wordpress-seo' ); ?>
[151] Fix | Delete
</a>
[152] Fix | Delete
</div>
[153] Fix | Delete
<div>
[154] Fix | Delete
<img
[155] Fix | Delete
class="workflow__image"
[156] Fix | Delete
src="<?php echo esc_url( plugin_dir_url( WPSEO_FILE ) . 'images/seo_fitness_assistants_fit.svg' ); ?>"
[157] Fix | Delete
width="100px"
[158] Fix | Delete
height="100px"
[159] Fix | Delete
alt="">
[160] Fix | Delete
</div>
[161] Fix | Delete
</div>
[162] Fix | Delete
</li>
[163] Fix | Delete
</ol>
[164] Fix | Delete
</div>
[165] Fix | Delete
</div>
[166] Fix | Delete
</div>
[167] Fix | Delete
[168] Fix | Delete
<script type="text/javascript">
[169] Fix | Delete
jQuery( 'li > button' ).click( function() {
[170] Fix | Delete
jQuery( this ).parent( 'li' ).toggleClass( 'finished' );
[171] Fix | Delete
jQuery( this ).text(
[172] Fix | Delete
jQuery( this ).text() === '<?php echo esc_html( $button_copy ); ?>' ? '<?php echo esc_html( $finished_button_copy ); ?>' : '<?php echo esc_html( $button_copy ); ?>'
[173] Fix | Delete
);
[174] Fix | Delete
} );
[175] Fix | Delete
</script>
[176] Fix | Delete
[177] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function