| 1 |
<?php |
| 2 |
/** |
| 3 |
* WPSEO plugin file. |
| 4 |
* |
| 5 |
* @package WPSEO\Admin\Views |
| 6 |
* |
| 7 |
* @uses Yoast_Form $yform Form object. |
| 8 |
*/ |
| 9 |
|
| 10 |
if ( ! defined( 'WPSEO_VERSION' ) ) { |
| 11 |
header( 'Status: 403 Forbidden' ); |
| 12 |
header( 'HTTP/1.1 403 Forbidden' ); |
| 13 |
exit(); |
| 14 |
} |
| 15 |
|
| 16 |
$feature_toggles = Yoast_Feature_Toggles::instance()->get_all(); |
| 17 |
|
| 18 |
?> |
| 19 |
<h2><?php esc_html_e( 'Crawl settings', 'wordpress-seo' ); ?></h2> |
| 20 |
<div class="yoast-measure"> |
| 21 |
<?php |
| 22 |
printf( |
| 23 |
/* translators: %s expands to Yoast SEO */ |
| 24 |
esc_html__( 'This tab allows you to selectively disable %s features for all sites in the network. By default all features are enabled, which allows site admins to choose for themselves if they want to toggle a feature on or off for their site. When you disable a feature here, site admins will not be able to use that feature at all.', 'wordpress-seo' ), |
| 25 |
'Yoast SEO', |
| 26 |
); |
| 27 |
|
| 28 |
echo '<p style="margin: 0.5em 0 1em;">'; |
| 29 |
printf( |
| 30 |
/* translators: %1$s opens the link to the Yoast.com article about Crawl settings, %2$s closes the link, */ |
| 31 |
esc_html__( '%1$sLearn more about crawl settings.%2$s', 'wordpress-seo' ), |
| 32 |
'<a href="' . esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/crawl-settings' ) ) . '" target="_blank" rel="noopener noreferrer">', |
| 33 |
'</a>', |
| 34 |
); |
| 35 |
echo '</p>'; |
| 36 |
|
| 37 |
/** |
| 38 |
* Fires when displaying the crawl cleanup network tab. |
| 39 |
* |
| 40 |
* @param Yoast_Form $yform The yoast form object. |
| 41 |
*/ |
| 42 |
do_action( 'wpseo_settings_tab_crawl_cleanup_network', $yform ); |
| 43 |
?> |
| 44 |
</div> |
| 45 |
<?php |
| 46 |
/* |
| 47 |
* Required to prevent our settings framework from saving the default because the field |
| 48 |
* isn't explicitly set when saving the Dashboard page. |
| 49 |
*/ |
| 50 |
$yform->hidden( 'show_onboarding_notice', 'wpseo_show_onboarding_notice' ); |
| 51 |
|