Skip to:
Content

BuddyPress.org

Ticket #5500: 5500.3.patch

File 5500.3.patch, 3.7 KB (added by mercime, 3 years ago)
  • src/bp-xprofile/admin/css/admin-rtl.css

     
    320320        padding-right: 100px;
    321321}
    322322
     323#bp-xprofile-add-field select#fieldtype {
     324        max-width: 100%;
     325        word-wrap: break-word;
     326        word-break: break-all; /* e.g. Chinese, Japanese, Korean chars */
     327}
     328
    323329@media screen and (max-width: 782px) {
    324330        .bp-date-formats .bp-date-format-option:first-of-type {
    325331                margin-top: 1em;
  • src/bp-xprofile/admin/css/admin.css

     
    320320        padding-left: 100px;
    321321}
    322322
     323#bp-xprofile-add-field select#fieldtype {
     324        max-width: 100%;
     325        word-wrap: break-word;
     326        word-break: break-all; /* e.g. Chinese, Japanese, Korean chars */
     327}
     328
    323329@media screen and (max-width: 782px) {
    324330        .bp-date-formats .bp-date-format-option:first-of-type {
    325331                margin-top: 1em;
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php

     
    493493                                                        <span class="date-format-label"><?php esc_html_e( 'Custom:', 'buddypress' ); ?></span>
    494494                                                </label>
    495495                                                <label for="date-format-custom-value" class="screen-reader-text"><?php esc_html_e( 'Enter custom time format', 'buddypress' ); ?></label>
    496                                                 <input type="text" name="field-settings[date_format_custom]" id="date-format-custom-value" class="date-format-custom-value" value="<?php echo esc_attr( $settings['date_format_custom'] ); ?>" aria-describedby="date-format-custom-value-info" /> <span class="screen-reader-text"><?php esc_html_e( 'Example:', 'buddypress' ); ?></span><span class="date-format-custom-sample" id="date-format-custom-sample"><?php if ( $settings['date_format_custom'] ) : ?><?php echo esc_html( date( $settings['date_format_custom'] ) ); endif; ?></span><span class="spinner" id="date-format-custom-spinner" aria-hidden="true"></span>
     496                                                <input type="text" name="field-settings[date_format_custom]" id="date-format-custom-value" class="date-format-custom-value" value="<?php echo esc_attr( $settings['date_format_custom'] ); ?>" aria-describedby="date-format-custom-example" /> <span class="screen-reader-text"><?php esc_html_e( 'Example:', 'buddypress' ); ?></span><span class="date-format-custom-example" id="date-format-custom-sample"><?php if ( $settings['date_format_custom'] ) : ?><?php echo esc_html( date( $settings['date_format_custom'] ) ); endif; ?></span><span class="spinner" id="date-format-custom-spinner" aria-hidden="true"></span>
    497497
    498498                                                <p><a href="https://codex.wordpress.org/Formatting_Date_and_Time"><?php esc_html_e( 'Documentation on date and time formatting', 'buddypress' ); ?></a></p>
    499499                                        </div>
  • src/bp-xprofile/classes/class-bp-xprofile-field.php

     
    15251525                <div class="postbox">
    15261526                        <h2><label for="fieldtype"><?php esc_html_e( 'Type', 'buddypress'); ?></label></h2>
    15271527                        <div class="inside">
    1528                                 <select name="fieldtype" id="fieldtype" onchange="show_options(this.value)" style="width: 30%">
     1528                                <select name="fieldtype" id="fieldtype" onchange="show_options(this.value)">
    15291529
    15301530                                        <?php bp_xprofile_admin_form_field_types( $this->type ); ?>
    15311531