mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
1335ff3e40
commit
bb4db92621
@ -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 {
|
||||
|
@ -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 {
|
||||
|
2
wp-admin/css/wp-admin-rtl.min.css
vendored
2
wp-admin/css/wp-admin-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
2
wp-admin/css/wp-admin.min.css
vendored
2
wp-admin/css/wp-admin.min.css
vendored
File diff suppressed because one or more lines are too long
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user