admin-footer.php 2.5 KB

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