dashboard.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin
  6. */
  7. /**
  8. * Alerts template variables.
  9. *
  10. * @noinspection PhpUnusedLocalVariableInspection
  11. *
  12. * @var array
  13. */
  14. $alerts_data = Yoast_Alerts::get_template_variables();
  15. $notifier = new WPSEO_Configuration_Notifier();
  16. $notifier->listen();
  17. $wpseo_contributors_phrase = sprintf(
  18. /* translators: %1$s expands to Yoast SEO */
  19. __( 'See who contributed to %1$s.', 'wordpress-seo' ),
  20. 'Yoast SEO'
  21. );
  22. ?>
  23. <div class="tab-block">
  24. <div class="yoast-alerts">
  25. <?php echo $notifier->notify(); ?>
  26. <div class="yoast-container yoast-container__error">
  27. <?php require WPSEO_PATH . 'admin/views/partial-alerts-errors.php'; ?>
  28. </div>
  29. <div class="yoast-container yoast-container__warning">
  30. <?php require WPSEO_PATH . 'admin/views/partial-alerts-warnings.php'; ?>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="tab-block">
  35. <h3><?php esc_html_e( 'Credits', 'wordpress-seo' ); ?></h3>
  36. <p>
  37. <span class="dashicons dashicons-groups"></span>
  38. <a href="<?php WPSEO_Shortlinker::show( 'http://yoa.st/yoast-seo-credits' ); ?>"><?php echo esc_html( $wpseo_contributors_phrase ); ?></a>
  39. </p>
  40. </div>
  41. <?php
  42. /**
  43. * Action: 'wpseo_internal_linking' - Hook to add the internal linking analyze interface to the interface.
  44. *
  45. * @deprecated 7.0
  46. */
  47. do_action_deprecated( 'wpseo_internal_linking', [], 'WPSEO 7.0' );