Ticket #5303: style-plugin.diff
File style-plugin.diff, 3.0 KB (added by , 4 years ago) |
---|
-
shortcodes/class-block-validator.php
15 15 16 16 if ( is_user_logged_in() ) : 17 17 ?> 18 <div class="wrap"> 19 <form method="post" action=""> 20 <p> 21 <label for="plugin_url"><?php _e( 'Plugin repo URL', 'wporg-plugins' ); ?></label> 22 </p> 23 <p> 24 <input type="text" id="plugin_url" name="plugin_url" size="70" placeholder="https://plugins.svn.wordpress.org/" value="<?php echo esc_attr( $plugin_url ); ?>" /> 25 <input type="submit" class="button button-secondary" value="<?php esc_attr_e( 'Validate!', 'wporg-plugins' ); ?>" /> 18 <div class="wrap block-validator"> 19 <form method="post" action="" class="block-validator__plugin-form"> 20 <label for="plugin_url"><?php _e( 'Plugin repo URL', 'wporg-plugins' ); ?></label> 21 <div class="block-validator__plugin-input-container"> 22 <input type="text" class="block-validator__plugin-input" id="plugin_url" name="plugin_url" placeholder="https://plugins.svn.wordpress.org/" value="<?php echo esc_attr( $plugin_url ); ?>" /> 23 <input type="submit" class="button button-secondary block-validator__plugin-submit" value="<?php esc_attr_e( 'Validate!', 'wporg-plugins' ); ?>" /> 26 24 <?php wp_nonce_field( 'validate-block-plugin', 'block-nonce' ); ?> 27 </ p>25 </div> 28 26 </form> 29 27 30 28 <?php … … 49 47 ?> 50 48 </div> 51 49 <?php else: ?> 52 <div class="wrap ">50 <div class="wrap block-validator"> 53 51 <p><?php _e( 'Please log in to use the validator.', 'wporg-plugins' ); ?></p> 54 52 </div> 55 53 <?php endif; … … 120 118 $output .= '<h3>' . __( 'Success', 'wporg-plugins' ) . '</h3>'; 121 119 $output .= "<div class='notice notice-success notice-alt'>\n"; 122 120 if ( $checker->slug && self::plugin_is_in_block_directory( $checker->slug ) ) { 123 $output .= __( 'No problems were found. This plugin is already in the Block Directory.', 'wporg-plugins' );121 $output .= '<p>' . __( 'No problems were found. This plugin is already in the Block Directory.', 'wporg-plugins' ) . '</p>'; 124 122 } else { 125 $output .= __( 'No problems were found. Your plugin has passed the first step towards being included in the Block Directory.', 'wporg-plugins' );123 $output .= '<p>' . __( 'No problems were found. Your plugin has passed the first step towards being included in the Block Directory.', 'wporg-plugins' ) . '</p>'; 126 124 } 127 125 $output .= "</div>\n"; 128 126 } else { 129 127 $output .= '<h3>' . __( 'Problems were encountered', 'wporg-plugins' ) . '</h3>'; 130 128 $output .= "<div class='notice notice-error notice-alt'>\n"; 131 $output .= __( 'Some problems were found. They need to be addressed before your plugin will work in the Block Directory.', 'wporg-plugins' );129 $output .= '<p>' . __( 'Some problems were found. They need to be addressed before your plugin will work in the Block Directory.', 'wporg-plugins' ) . '</p>'; 132 130 $output .= "</div>\n"; 133 131 } 134 132