mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 14:14:36 +00:00
Plugin details modal:
* Scroll all content, rather than the dual-pane scrolling awkwardness. * Better align the header image and title overlay with the display on WordPress.org, at least at full-width. * Move the close button outside of the modal itself, rather than overlay on top of colors we can't predict. props stephdau, tellyworth, helen. fixes #27440. git-svn-id: https://develop.svn.wordpress.org/trunk@29474 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -372,7 +372,7 @@ function install_plugin_information() {
|
||||
}
|
||||
|
||||
iframe_header( __( 'Plugin Install' ) );
|
||||
|
||||
|
||||
$_with_banner = '';
|
||||
|
||||
if ( ! empty( $api->banners ) && ( ! empty( $api->banners['low'] ) || ! empty( $api->banners['high'] ) ) ) {
|
||||
@@ -393,6 +393,7 @@ function install_plugin_information() {
|
||||
<?php
|
||||
}
|
||||
|
||||
echo '<div id="plugin-information-scrollable">';
|
||||
echo "<div id='{$_tab}-title' class='{$_with_banner}'><div class='vignette'></div><h2>{$api->name}</h2></div>";
|
||||
echo "<div id='{$_tab}-tabs' class='{$_with_banner}'>\n";
|
||||
|
||||
@@ -513,6 +514,7 @@ function install_plugin_information() {
|
||||
}
|
||||
echo "</div>\n";
|
||||
echo "</div>\n";
|
||||
echo "</div>\n"; // #plugin-information-scrollable
|
||||
echo "<div id='$tab-footer'>\n";
|
||||
if ( ! empty( $api->download_link ) && ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) ) {
|
||||
$status = install_plugin_install_status( $api );
|
||||
|
||||
Reference in New Issue
Block a user