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

Built from https://develop.svn.wordpress.org/trunk@29586


git-svn-id: http://core.svn.wordpress.org/trunk@29360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-08-24 17:26:15 +00:00
parent 1335ff3e40
commit bb4db92621
5 changed files with 65 additions and 5 deletions

View File

@ -1338,12 +1338,42 @@ div.action-links,
.plugin-card .column-downloaded {
float: right;
clear: right;
max-width: 180px;
}
.plugin-card .column-updated,
.plugin-card .column-compatibility {
text-align: left;
float: left;
clear: left;
width: 65%;
width: calc( 100% - 180px );
}
.plugin-card .column-compatibility span:before {
font: normal 20px/.5 'dashicons';
speak: none;
display: inline-block;
padding: 0;
top: 4px;
right: -2px;
position: relative;
vertical-align: top;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-decoration: none !important;
color: #444;
}
.plugin-card .compatibility-incompatible:before {
content: '\f158';
}
.plugin-card .compatibility-compatible:before {
content: '\f147';
}
.plugin-card .compatibility-untested strong {
font-weight: normal;
}
.plugin-icon {

View File

@ -1338,12 +1338,42 @@ div.action-links,
.plugin-card .column-downloaded {
float: left;
clear: left;
max-width: 180px;
}
.plugin-card .column-updated,
.plugin-card .column-compatibility {
text-align: right;
float: right;
clear: right;
width: 65%;
width: calc( 100% - 180px );
}
.plugin-card .column-compatibility span:before {
font: normal 20px/.5 'dashicons';
speak: none;
display: inline-block;
padding: 0;
top: 4px;
left: -2px;
position: relative;
vertical-align: top;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-decoration: none !important;
color: #444;
}
.plugin-card .compatibility-incompatible:before {
content: '\f158';
}
.plugin-card .compatibility-compatible:before {
content: '\f147';
}
.plugin-card .compatibility-untested strong {
font-weight: normal;
}
.plugin-icon {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -452,11 +452,11 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
<div class="column-compatibility">
<?php
if ( ! empty( $plugin['tested'] ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $plugin['tested'] ) ), $plugin['tested'], '>' ) ) {
echo __( '<strong>Untested</strong> with your version of WordPress' );
echo '<span class="compatibility-untested">' . __( '<strong>Untested</strong> with your version of WordPress' ) . '</span>';
} elseif ( ! empty( $plugin['requires'] ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $plugin['requires'] ) ), $plugin['requires'], '<' ) ) {
echo __( '<strong>Incompatible</strong> with your version of WordPress' );
echo '<span class="compatibility-incompatible">' . __( '<strong>Incompatible</strong> with your version of WordPress' ) . '</span>';
} else {
echo __( '<strong>Compatible</strong> with your version of WordPress' );
echo '<span class="compatibility-compatible">' . __( '<strong>Compatible</strong> with your version of WordPress' ) . '</span>';
}
?>
</div>