Support » Plugin: Advanced Browser Check » Names under the icons

  • I’ve tried to place the names of the browsers under their icons. However, for Internet Explorer I get ie and for FireFox ff as the names.

    Is there a way to fix this? This is my code: (line 39 of output.php)

    $html .= '<li style="float: left;"><a href="'. $link .'" class="'. $browser .'" target="_blank"><img src="'. plugins_url('/img/'. $browser .'-128x128.png', __FILE__) .'" alt="'. $browser .'"><br />'. $browser .'</a></li>';

Viewing 1 replies (of 1 total)
  • Plugin Author Mattias



    I might add the option to show/hide the browsers name in the future, for now, you have to find your own solution.

    An easy way to display the right name is to use a php if statment like the following:
    <?php if($browser == 'ff') { echo 'Firefox'; } ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Names under the icons’ is closed to new replies.