You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

120 lines
2.7 KiB

  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. * @global string $hook_suffix
  78. *
  79. * @param string $hook_suffix The current admin page.
  80. */
  81. do_action( "admin_print_footer_scripts-{$hook_suffix}" );
  82. /**
  83. * Prints any scripts and data queued for the footer.
  84. *
  85. * @since 2.8.0
  86. */
  87. do_action( 'admin_print_footer_scripts' );
  88. /**
  89. * Prints scripts or data after the default footer scripts.
  90. *
  91. * The dynamic portion of the hook name, `$hook_suffix`,
  92. * refers to the global hook suffix of the current page.
  93. *
  94. * @since 2.8.0
  95. *
  96. * @global string $hook_suffix
  97. * @param string $hook_suffix The current admin page.
  98. */
  99. do_action( "admin_footer-{$hook_suffix}" );
  100. // get_site_option() won't exist when auto upgrading from <= 2.7
  101. if ( function_exists('get_site_option') ) {
  102. if ( false === get_site_option('can_compress_scripts') )
  103. compression_test();
  104. }
  105. ?>
  106. <div class="clear"></div></div><!-- wpwrap -->
  107. <script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
  108. </body>
  109. </html>