WordPress.org

Making WordPress.org

Changeset 2589


Ignore:
Timestamp:
02/24/2016 09:15:46 PM (4 years ago)
Author:
coffee2code
Message:

Browse Happy: Add Microsoft Edge to list of browsers.

Props abiralneupane.
Fixes #1206.

Location:
sites/trunk/browsehappy.com/public_html
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/browsehappy.com/public_html/functions.php

    r2588 r2589  
    4343            'info' => __( '“The fastest browser on Earth—secure, powerful and easy to use, with excellent privacy protection. And it is free.”', 'browsehappy' ),
    4444        ),
     45        'edge' => (object) array(
     46            'name' => 'Microsoft Edge',
     47            'long_name' => 'Microsoft Edge',
     48            'wikipedia' => 'Microsoft_Edge',
     49            'normalized' => 1, // just first number
     50            'facebook' => 'MicrosoftEdge',
     51            'url' => 'https://www.microsoft.com/en-us/windows/microsoft-edge',
     52            'info' => __( '“Microsoft Edge ranks first when put to real world page load tests. Whether you use the web to search, watch or play, this browser won’t slow you down.”', 'browsehappy' ),
     53        ),
    4554        'ie' => (object) array(
    4655            'name' => 'Internet Explorer',
     
    106115        if ( false !== strpos( $data, 'Android' ) || false !== strpos( $data, 'iOS' ) )
    107116            continue;
    108         if ( false !== strpos( $data, 'Linux' ) && false === strpos( $data, 'Mac OS X' ) && false === strpos( $data, 'Windows' ) )
     117        if ( false !== strpos( $data, 'Linux' ) && false === strpos( $data, 'Mac OS X' ) && false === strpos( $data, 'Windows' ) && false === strpos( $data, 'Microsoft' ) )
    109118            continue;
    110119        if ( ( false !== $pos = strpos( $data, 'latest_release_version' ) ) || ( false !== $pos = strpos( $data, 'latest release version' ) ) ) {
     
    113122            $version = trim( str_replace( array( 'latest_release_version', 'latest release version', '=' ), '', $data ), '| ' ) . " ";
    114123            $version = str_replace( "'''Mac OS X''' and '''Microsoft Windows'''<br />", '', $version );
     124            $version = str_replace( "'''Windows 10'''<br>", '', $version );
    115125            $version = substr( $version, 0, strpos( $version, ' ' ) );
    116126            break;
  • sites/trunk/browsehappy.com/public_html/style.css

    r2586 r2589  
    9494.wrap {
    9595    zoom: 1;
    96     max-width: 960px;
     96    max-width: 1152px;
    9797    margin: 0 auto;
    9898}
     
    300300}
    301301
     302#browserlist li#edge .icon {
     303    background-position: -625px 0;
     304}
     305
    302306#browserlist h2 {
    303307    font: 140%/1 Impact, Helvetica, sans-serif;
     
    568572        background-image: url(imgs/browsehappy-sprite-2x.png);
    569573        background-repeat: no-repeat;
    570         background-size: 625px 170px;
     574        background-size: 750px 170px;
    571575    }
    572576}
Note: See TracChangeset for help on using the changeset viewer.