/wp-admin/admin-footer.php

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