Making WordPress.org

Ticket #5303: style-plugin.diff

File style-plugin.diff, 3.0 KB (added by ryelle, 4 years ago)
  • shortcodes/class-block-validator.php

     
    1515
    1616                if ( is_user_logged_in() ) :
    1717                ?>
    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' ); ?>" />
    2624                                        <?php wp_nonce_field( 'validate-block-plugin', 'block-nonce' ); ?>
    27                                 </p>
     25                                </div>
    2826                        </form>
    2927
    3028                        <?php
     
    4947                        ?>
    5048                </div>
    5149                <?php else: ?>
    52                 <div class="wrap">
     50                <div class="wrap block-validator">
    5351                        <p><?php _e( 'Please log in to use the validator.', 'wporg-plugins' ); ?></p>
    5452                </div>
    5553                <?php endif;
     
    120118                        $output .= '<h3>' . __( 'Success', 'wporg-plugins' ) . '</h3>';
    121119                        $output .= "<div class='notice notice-success notice-alt'>\n";
    122120                        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>';
    124122                        } 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>';
    126124                        }
    127125                        $output .= "</div>\n";
    128126                } else {
    129127                        $output .= '<h3>' . __( 'Problems were encountered', 'wporg-plugins' ) . '</h3>';
    130128                        $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>';
    132130                        $output .= "</div>\n";
    133131                }
    134132