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