partial-alerts-warnings.php 910 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin
  6. *
  7. * @uses array $alerts_data
  8. */
  9. $type = 'warnings';
  10. $dashicon = 'flag';
  11. $active = $alerts_data['warnings']['active'];
  12. $dismissed = $alerts_data['warnings']['dismissed'];
  13. $active_total = count( $alerts_data['warnings']['active'] );
  14. $dismissed_total = count( $alerts_data['warnings']['dismissed'] );
  15. $total = $alerts_data['metrics']['warnings'];
  16. $i18n_title = __( 'Notifications', 'wordpress-seo' );
  17. $i18n_issues = '';
  18. $i18n_no_issues = __( 'No new notifications.', 'wordpress-seo' );
  19. $i18n_muted_issues_title = sprintf(
  20. /* translators: %d expands the amount of hidden notifications. */
  21. _n( 'You have %d hidden notification:', 'You have %d hidden notifications:', $dismissed_total, 'wordpress-seo' ),
  22. $dismissed_total
  23. );
  24. require WPSEO_PATH . 'admin/views/partial-alerts-template.php';