dashboard.php 1.3 KB

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