Firefox fixes

git-svn-id: http://svn.automattic.com/wordpress/trunk@2544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-04-19 02:16:57 +00:00
parent 4780b6f925
commit 0c3b3e5347
3 changed files with 11 additions and 2 deletions

View File

@ -5,7 +5,6 @@
<?php printf(__('%s seconds'), number_format(timer_stop(), 2)); ?>
</p>
<p><a href="http://spreadfirefox.com/community/?q=affiliates&amp;id=2490&amp;t=1" title="<?php _e('WordPress recommends the open-source Firefox browser') ?>"><img src="http://static.wordpress.org/get-firefox.png" alt="Get Firefox" /></a></p>
</div>
<?php do_action('admin_footer', ''); ?>

View File

@ -1072,4 +1072,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');
echo '
<p id="firefoxlink" style="text-align: center;"><a href="http://spreadfirefox.com/community/?q=affiliates&amp;id=2490&amp;t=1" title="' . $getit . '"><img src="../wp-images/get-firefox.png" alt="Get Firefox" /></a></p>
';
}
add_action('admin_footer', 'pimp_firefox');
?>

BIN
wp-images/get-firefox.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB