WordPress.org

Make WordPress Core

Changeset 29586


Ignore:
Timestamp:
08/24/2014 05:25:35 PM (6 years ago)
Author:
nacin
Message:

Plugin install: Add icons to compatible/incompatible. see #29313.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/list-tables.css

    r29569 r29586  
    13391339    float: left;
    13401340    clear: left;
     1341    max-width: 180px;
    13411342}
    13421343
    13431344.plugin-card .column-updated,
    13441345.plugin-card .column-compatibility {
     1346    text-align: right;
    13451347    float: right;
    13461348    clear: right;
     1349    width: 65%;
     1350    width: calc( 100% - 180px );
     1351}
     1352
     1353.plugin-card .column-compatibility span:before {
     1354    font: normal 20px/.5 'dashicons';
     1355    speak: none;
     1356    display: inline-block;
     1357    padding: 0;
     1358    top: 4px;
     1359    left: -2px;
     1360    position: relative;
     1361    vertical-align: top;
     1362    -webkit-font-smoothing: antialiased;
     1363    -moz-osx-font-smoothing: grayscale;
     1364    text-decoration: none !important;
     1365    color: #444;
     1366}
     1367.plugin-card .compatibility-incompatible:before {
     1368    content: '\f158';
     1369}
     1370
     1371.plugin-card .compatibility-compatible:before {
     1372    content: '\f147';
     1373}
     1374
     1375.plugin-card .compatibility-untested strong {
     1376    font-weight: normal;
    13471377}
    13481378
  • trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php

    r29581 r29586  
    453453                    <?php
    454454                    if ( ! empty( $plugin['tested'] ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $plugin['tested'] ) ), $plugin['tested'], '>' ) ) {
    455                         echo  __( '<strong>Untested</strong> with your version of WordPress' );
     455                        echo '<span class="compatibility-untested">' . __( '<strong>Untested</strong> with your version of WordPress' ) . '</span>';
    456456                    } elseif ( ! empty( $plugin['requires'] ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $plugin['requires'] ) ), $plugin['requires'], '<' ) ) {
    457                         echo __( '<strong>Incompatible</strong> with your version of WordPress' );
     457                        echo '<span class="compatibility-incompatible">' . __( '<strong>Incompatible</strong> with your version of WordPress' ) . '</span>';
    458458                    } else {
    459                         echo __( '<strong>Compatible</strong> with your version of WordPress' );
     459                        echo '<span class="compatibility-compatible">' . __( '<strong>Compatible</strong> with your version of WordPress' ) . '</span>';
    460460                    }
    461461                    ?>
Note: See TracChangeset for help on using the changeset viewer.