Browse Happy :)
git-svn-id: http://svn.automattic.com/wordpress/trunk@2814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e7d3959ae5
commit
6da9feeacb
|
@ -1368,15 +1368,14 @@ function get_plugin_page_hook($plugin_page, $parent_page) {
|
|||
return '';
|
||||
}
|
||||
|
||||
function pimp_firefox() {
|
||||
if ( strstr( $_SERVER['HTTP_USER_AGENT'], 'Firefox' ) )
|
||||
return;
|
||||
$getit = __('WordPress recommends the open-source Firefox browser');
|
||||
function browse_happy() {
|
||||
$getit = __('WordPress recommends a better browser');
|
||||
echo '
|
||||
<p id="firefoxlink" style="text-align: center;"><a href="http://spreadfirefox.com/community/?q=affiliates&id=2490&t=1" title="' . $getit . '"><img src="images/get-firefox.png" alt="Get Firefox" /></a></p>
|
||||
<p id="bh" style="text-align: center;"><a href="http://browsehappy.com/" title="' . $getit . '"><img src="images/browse-happy.png" alt="Browse Happy" /></a></p>
|
||||
';
|
||||
}
|
||||
add_action('admin_footer', 'pimp_firefox');
|
||||
if ( strstr( $_SERVER['HTTP_USER_AGENT'], 'MSIE' ) )
|
||||
add_action('admin_footer', 'browse_happy');
|
||||
|
||||
function documentation_link( $for ) {
|
||||
return;
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB |
Loading…
Reference in New Issue