admin-footer.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. /**
  3. * WordPress Administration Template Footer
  4. *
  5. * @package WordPress
  6. * @subpackage Administration
  7. */
  8. // Don't load directly.
  9. if ( ! defined( 'ABSPATH' ) ) {
  10. die( '-1' );
  11. }
  12. /**
  13. * @global string $hook_suffix
  14. */
  15. global $hook_suffix;
  16. ?>
  17. <div class="clear"></div></div><!-- wpbody-content -->
  18. <div class="clear"></div></div><!-- wpbody -->
  19. <div class="clear"></div></div><!-- wpcontent -->
  20. <div id="wpfooter" role="contentinfo">
  21. <?php
  22. /**
  23. * Fires after the opening tag for the admin footer.
  24. *
  25. * @since 2.5.0
  26. */
  27. do_action( 'in_admin_footer' );
  28. ?>
  29. <p id="footer-left" class="alignleft">
  30. <?php
  31. $text = sprintf(
  32. /* translators: %s: https://wordpress.org/ */
  33. __( 'Thank you for creating with <a href="%s">WordPress</a>.' ),
  34. __( 'https://wordpress.org/' )
  35. );
  36. /**
  37. * Filters the "Thank you" text displayed in the admin footer.
  38. *
  39. * @since 2.8.0
  40. *
  41. * @param string $text The content that will be printed.
  42. */
  43. echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . $text . '</span>' );
  44. ?>
  45. </p>
  46. <p id="footer-upgrade" class="alignright">
  47. <?php
  48. /**
  49. * Filters the version/update text displayed in the admin footer.
  50. *
  51. * WordPress prints the current version and update information,
  52. * using core_update_footer() at priority 10.
  53. *
  54. * @since 2.3.0
  55. *
  56. * @see core_update_footer()
  57. *
  58. * @param string $content The content that will be printed.
  59. */
  60. echo apply_filters( 'update_footer', '' );
  61. ?>
  62. </p>
  63. <div class="clear"></div>
  64. </div>
  65. <?php
  66. /**
  67. * Prints scripts or data before the default footer scripts.
  68. *
  69. * @since 1.2.0
  70. *
  71. * @param string $data The data to print.
  72. */
  73. do_action( 'admin_footer', '' );
  74. /**
  75. * Prints scripts and data queued for the footer.
  76. *
  77. * The dynamic portion of the hook name, `$hook_suffix`,
  78. * refers to the global hook suffix of the current page.
  79. *
  80. * @since 4.6.0
  81. */
  82. do_action( "admin_print_footer_scripts-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
  83. /**
  84. * Prints any scripts and data queued for the footer.
  85. *
  86. * @since 2.8.0
  87. */
  88. do_action( 'admin_print_footer_scripts' );
  89. /**
  90. * Prints scripts or data after the default footer scripts.
  91. *
  92. * The dynamic portion of the hook name, `$hook_suffix`,
  93. * refers to the global hook suffix of the current page.
  94. *
  95. * @since 2.8.0
  96. */
  97. do_action( "admin_footer-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
  98. // get_site_option() won't exist when auto upgrading from <= 2.7.
  99. if ( function_exists( 'get_site_option' )
  100. && false === get_site_option( 'can_compress_scripts' )
  101. ) {
  102. compression_test();
  103. }
  104. ?>
  105. <div class="clear"></div></div><!-- wpwrap -->
  106. <script type="text/javascript">if(typeof wpOnload==='function')wpOnload();</script>
  107. </body>
  108. </html>