Browse Happy :)

git-svn-id: https://develop.svn.wordpress.org/trunk@2814 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-08-27 19:18:26 +00:00
parent a7f34532cf
commit 01bd221a56
3 changed files with 5 additions and 6 deletions

View File

@ -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&amp;id=2490&amp;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