Wordpress 3.7
[autoinstalls/wordpress.git] / wp-admin / admin-footer.php
index e660be287f81940c91077131415a34e2eac4f5d7..08d9debc9b4c34b4b2369a323178f8bfeefb600a 100644 (file)
@@ -1,19 +1,90 @@
+<?php
+/**
+ * WordPress Administration Template Footer
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
 
-<div id="footer"><p><a href="http://wordpress.org/" id="wordpress-logo"><img src="images/wordpress-logo.png" alt="WordPress" /></a></p>
-<p>
-<a href="http://codex.wordpress.org/"><?php _e('Documentation'); ?></a> &#8212; <a href="http://wordpress.org/support/"><?php _e('Support Forums'); ?></a> <br />
-<?php bloginfo('version'); ?> &#8212; <?php printf(__('%s seconds'), number_format(timer_stop(), 2)); ?>
-</p>
+// don't load directly
+if ( !defined('ABSPATH') )
+       die('-1');
+?>
 
-</div>
-<?php do_action('admin_footer', ''); ?>
-<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
+<div class="clear"></div></div><!-- wpbody-content -->
+<div class="clear"></div></div><!-- wpbody -->
+<div class="clear"></div></div><!-- wpcontent -->
 
+<div id="wpfooter">
+       <?php
+       /**
+        * Fires after the opening tag for the admin footer.
+        *
+        * @since 2.5.0
+        */
+       do_action( 'in_admin_footer' );
+       ?>
+       <p id="footer-left" class="alignleft">
+               <?php
+               /**
+                * Filter the "Thank you" text displayed in the admin footer.
+                *
+                * @since 2.8.0
+                * @param string The content that will be printed.
+                */
+               echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . __( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.' ) . '</span>' );
+               ?>
+       </p>
+       <p id="footer-upgrade" class="alignright">
+               <?php
+               /**
+                * Filter the version/update text displayed in the admin footer.
+                *
+                * @see core_update_footer() WordPress prints the current version and update information,
+                *      using core_update_footer() at priority 10.
+                *
+                * @since 2.3.0
+                * @param string The content that will be printed.
+                */
+               echo apply_filters( 'update_footer', '' );
+               ?>
+       </p>
+       <div class="clear"></div>
+</div>
 <?php
-if ( (substr(php_sapi_name(), 0, 3) == 'cgi') && spawn_pinger() ) {
-       echo '<iframe id="pingcheck" src="' . get_settings('siteurl') .'/wp-admin/execute-pings.php?time=' . time() . '" style="border:none;width:1px;height:1px;"></iframe>';
+/**
+ * Print scripts or data before the default footer scripts.
+ *
+ * @since 1.2.0
+ * @param string The data to print.
+ */
+do_action('admin_footer', '');
+
+/**
+ * Prints any scripts and data queued for the footer.
+ *
+ * @since 2.8.0
+ */
+do_action('admin_print_footer_scripts');
+
+/**
+ * Print scripts or data after the default footer scripts.
+ *
+ * @since 2.8.0
+ *
+ * @param string $GLOBALS['hook_suffix'] The current admin page.
+ */
+do_action("admin_footer-" . $GLOBALS['hook_suffix']);
+
+// get_site_option() won't exist when auto upgrading from <= 2.7
+if ( function_exists('get_site_option') ) {
+       if ( false === get_site_option('can_compress_scripts') )
+               compression_test();
 }
+
 ?>
 
+<div class="clear"></div></div><!-- wpwrap -->
+<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
 </body>
 </html>