| 1 |
<?php |
| 2 |
/** |
| 3 |
* WPSEO plugin file. |
| 4 |
* |
| 5 |
* @package WPSEO\Admin |
| 6 |
* |
| 7 |
* @uses array $notifications_data |
| 8 |
*/ |
| 9 |
|
| 10 |
$yoast_seo_type = 'errors'; |
| 11 |
$yoast_seo_dashicon = 'warning'; |
| 12 |
|
| 13 |
$yoast_seo_active = $notifications_data['errors']['active']; |
| 14 |
$yoast_seo_dismissed = $notifications_data['errors']['dismissed']; |
| 15 |
|
| 16 |
$yoast_seo_active_total = count( $yoast_seo_active ); |
| 17 |
$yoast_seo_dismissed_total = count( $yoast_seo_dismissed ); |
| 18 |
$yoast_seo_total = $notifications_data['metrics']['errors']; |
| 19 |
|
| 20 |
$yoast_seo_i18n_title = __( 'Problems', 'wordpress-seo' ); |
| 21 |
$yoast_seo_i18n_issues = __( 'We have detected the following issues that affect the SEO of your site.', 'wordpress-seo' ); |
| 22 |
$yoast_seo_i18n_no_issues = __( 'Good job! We could detect no serious SEO problems.', 'wordpress-seo' ); |
| 23 |
$yoast_seo_i18n_muted_issues_title = sprintf( |
| 24 |
/* translators: %d expands the amount of hidden problems. */ |
| 25 |
_n( 'You have %d hidden problem:', 'You have %d hidden problems:', $yoast_seo_dismissed_total, 'wordpress-seo' ), |
| 26 |
$yoast_seo_dismissed_total |
| 27 |
); |
| 28 |
|
| 29 |
require WPSEO_PATH . 'admin/views/partial-notifications-template.php'; |
| 30 |
|