diff --git a/assets/css/um-styles.css b/assets/css/um-styles.css index 35f4e38f..2485a183 100644 --- a/assets/css/um-styles.css +++ b/assets/css/um-styles.css @@ -347,10 +347,6 @@ p.um-notice.warning a { font-size: 17px; } -.um-field-shortcode { - -} - .um-field-spacing { width: 100%; } diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php index 94736d01..e03a95a9 100644 --- a/includes/core/class-fields.php +++ b/includes/core/class-fields.php @@ -1805,13 +1805,13 @@ if ( ! class_exists( 'um\core\Fields' ) ) { */ function edit_field( $key, $data, $rule = false, $args = array() ) { global $_um_profile_id; - $output = null; + + $output = ''; $disabled = ''; if ( empty( $_um_profile_id ) ) { $_um_profile_id = um_user( 'ID' ); } - // get whole field data if ( isset( $data ) && is_array( $data ) ) { $data = $this->get_field( $key ); @@ -1833,7 +1833,6 @@ if ( ! class_exists( 'um\core\Fields' ) ) { * @var boolean $editable * @var string $icon * @var boolean $in_group - * @var string $classes * @var boolean $required * @var string $validate * @var string $default @@ -1877,50 +1876,50 @@ if ( ! class_exists( 'um\core\Fields' ) ) { } if ( ! isset( $data['type'] ) ) { - return; + return ''; } if ( isset( $data['in_group'] ) && $data['in_group'] != '' && $rule != 'group' ) { - return; + return ''; } // forbidden in edit mode? 'edit_forbidden' - it's field attribute predefined in the field data in code if ( isset( $data['edit_forbidden'] ) ) { - return; + return ''; } // required option? 'required_opt' - it's field attribute predefined in the field data in code if ( isset( $data['required_opt'] ) ) { $opt = $data['required_opt']; if ( UM()->options()->get( $opt[0] ) != $opt[1] ) { - return; + return ''; } } // required user permission 'required_perm' - it's field attribute predefined in the field data in code if ( isset( $data['required_perm'] ) ) { if ( ! UM()->roles()->um_user_can( $data['required_perm'] ) ) { - return; + return ''; } } // fields that need to be disabled in edit mode (profile) (email, username, etc.) $arr_restricted_fields = $this->get_restricted_fields_for_edit( $_um_profile_id ); if ( in_array( $key, $arr_restricted_fields ) && $this->editing == true && $this->set_mode == 'profile' ) { - return; + return ''; } if ( $visibility == 'view' && $this->set_mode != 'register' ) { - return; + return ''; } if ( ! um_can_view_field( $data ) ) { - return; + return ''; } if ( ! um_can_edit_field( $data ) ) { - return; + return ''; } um_fetch_user( $_um_profile_id ); @@ -1928,7 +1927,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { // do not show passwords if ( isset( UM()->user()->preview ) && UM()->user()->preview ) { if ( $data['type'] == 'password' ) { - return; + return ''; } } @@ -1956,6 +1955,10 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $autocomplete = 'off'; } + if ( isset( $data['classes'] ) ) { + $classes = explode( " ", $data['classes'] ); + } + um_fetch_user( $_um_profile_id ); /** @@ -2057,7 +2060,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { case 'vimeo_video': case 'soundcloud_track': - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( isset( $data['label'] ) ) { $output .= $this->field_label( $label, $key, $data ); @@ -2076,7 +2079,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= ' -
'; +
'; if ( ! empty( $disabled ) ) { $output .= $this->disabled_hidden_field( $field_name, $field_value ); @@ -2092,7 +2095,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { /* Text */ case 'text': - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( isset( $data['label'] ) ) { $output .= $this->field_label( $label, $key, $data ); @@ -2111,7 +2114,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= ' -
'; +
'; if ( ! empty( $disabled ) ) { $output .= $this->disabled_hidden_field( $field_name, $field_value ); @@ -2127,7 +2130,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { /* Number */ case 'number': - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( isset( $data['label'] ) ) { $output .= $this->field_label( $label, $key, $data ); @@ -2151,7 +2154,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= ' -
'; +
'; if ( $this->is_error( $key ) ) { $output .= $this->field_error( $this->show_error( $key ) ); @@ -2169,7 +2172,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $key = $original_key; - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( isset( $data['label'] ) ) { $output .= $this->field_label( $label, $key, $data ); @@ -2185,7 +2188,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= ' -
'; +
'; if ( $this->is_error( $key ) ) { $output .= $this->field_error( $this->show_error( $key ) ); @@ -2198,7 +2201,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { if ( $this->set_mode == 'account' || um_is_core_page( 'account' ) ) { $key = 'current_' . $original_key; - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( isset( $data['label'] ) ) { $output .= $this->field_label( __( 'Current Password', 'ultimate-member' ), $key, $data ); @@ -2214,7 +2217,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= ' -
'; +
'; if ( $this->is_error( $key ) ) { $output .= $this->field_error( $this->show_error( $key ) ); @@ -2226,7 +2229,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $key = $original_key; - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( $this->set_mode == 'account' && um_is_core_page( 'account' ) || $this->set_mode == 'password' && um_is_core_page( 'password-reset' ) ) { @@ -2248,7 +2251,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= ' -
'; +
'; if ( $this->is_error( $key ) ) { $output .= $this->field_error( $this->show_error( $key ) ); @@ -2259,7 +2262,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { if ( $this->set_mode != 'login' && isset( $data['force_confirm_pass'] ) && $data['force_confirm_pass'] == 1 ) { $key = 'confirm_' . $original_key; - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( isset( $data['label'] ) ) { $output .= $this->field_label( sprintf( __( 'Confirm %s', 'ultimate-member' ), $data['label'] ), $key, $data ); @@ -2275,7 +2278,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= ' -
'; +
'; if ( $this->is_error( $key ) ) { $output .= $this->field_error( $this->show_error( $key ) ); @@ -2292,7 +2295,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { /* URL */ case 'url': - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( isset( $data['label'] ) ) { $output .= $this->field_label( $label, $key, $data ); @@ -2308,7 +2311,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= ' -
'; +
'; if ( $this->is_error( $key ) ) { $output .= $this->field_error( $this->show_error( $key ) ); @@ -2320,7 +2323,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { /* Date */ case 'date': - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if (isset( $data['label'] )) { $output .= $this->field_label( $label, $key, $data ); @@ -2336,7 +2339,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= ' -
'; +
'; if ( $this->is_error( $key ) ) { $output .= $this->field_error( $this->show_error( $key ) ); @@ -2348,7 +2351,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { /* Time */ case 'time': - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if (isset( $data['label'] )) { $output .= $this->field_label( $label, $key, $data ); @@ -2364,7 +2367,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= ' -
'; +
'; if ( $this->is_error( $key ) ) { $output .= $this->field_error( $this->show_error( $key ) ); @@ -2380,7 +2383,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { /* Textarea */ case 'textarea': - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( isset( $data['label'] ) ) { $output .= $this->field_label( $label, $key, $data ); @@ -2435,7 +2438,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { // add the contents of the buffer to the output variable $output .= ob_get_clean(); - $output .= '
' . $placeholder . ''; + $output .= '
' . $placeholder . ''; } else { $output .= ''; } @@ -2455,7 +2458,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { /* Rating */ case 'rating': - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( isset( $data['label'] ) ) { $output .= $this->field_label( $label, $key, $data ); @@ -2472,12 +2475,12 @@ if ( ! class_exists( 'um\core\Fields' ) ) { /* Gap/Space */ case 'spacing': - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data, array( 'height' => $spacing ) ) . '>
'; break; /* A line divider */ case 'divider': - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data, array( 'border-bottom' => $borderwidth . 'px ' . $borderstyle . ' ' . $bordercolor ) ) . '>'; if ( $divider_text ) { $output .= '
' . esc_html( $divider_text ) . '
'; } @@ -2486,7 +2489,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { /* Single Image Upload */ case 'image': - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( in_array( $key, array( 'profile_photo', 'cover_photo' ) ) ) { $field_value = ''; } else { @@ -2516,13 +2519,13 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $img = ''; } $output .= '
- ' . $img . ' -
' . __( 'Change photo', 'ultimate-member' ) . ''; + ' . $img . ' +
' . __( 'Change photo', 'ultimate-member' ) . ''; } else { $output .= '
- - -
' . $button_text . ''; + + +
' . $button_text . ''; } $output .= '
'; /* modal hidden */ @@ -2540,12 +2543,12 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= '
'; $output .= '
' . $button_text . '
'; $output .= ''; + +
+
'; $output .= '
'; $output .= '
'; /* end */ @@ -2554,11 +2557,11 @@ if ( ! class_exists( 'um\core\Fields' ) ) { } $output .= '
'; - break; + break; /* Single File Upload */ case 'file': - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; $output .= ''; if (isset( $data['label'] )) { $output .= $this->field_label( $label, $key, $data ); @@ -2597,13 +2600,13 @@ if ( ! class_exists( 'um\core\Fields' ) ) { if ( file_exists( $file_dir ) ) { $output .= ""; + +
"; } else { $output .= "
" . __('This file has been removed.','ultimate-member') . "
"; } @@ -2611,7 +2614,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= "" . __( 'Change file', 'ultimate-member' ) . ""; } else { $output .= "
-
{$button_text}"; +
{$button_text}"; } $output .= '
'; /* modal hidden */ @@ -2626,23 +2629,23 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $set_mode = ''; } $output .= '
- -
- - - - -
-
'; + +
+ + + + +
+ '; $nonce = wp_create_nonce( 'um_upload_nonce-' . $this->timestamp ); $output .= '
' . $button_text . '
'; $output .= ''; +
+ ' . __( 'Save', 'ultimate-member' ) . ' + ' . __( 'Cancel', 'ultimate-member' ) . ' +
+
+ '; $output .= ''; $output .= ''; /* end */ @@ -2656,7 +2659,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { /* Select dropdown */ case 'select': - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( isset( $data['allowclear'] ) && $data['allowclear'] == 0 ) { $class = 'um-s2'; @@ -2734,7 +2737,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { if ( $has_parent_option ) { if ( ! empty( $data['custom_dropdown_options_source'] ) && $has_parent_option && - function_exists( $data['custom_dropdown_options_source'] ) && isset( UM()->form()->post_form[ $form_key ] ) ) { + function_exists( $data['custom_dropdown_options_source'] ) && isset( UM()->form()->post_form[ $form_key ] ) ) { $options = call_user_func( $data['custom_dropdown_options_source'], $data['parent_dropdown_relationship'] ); } } @@ -2917,7 +2920,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { if ( ! is_numeric( $k ) && in_array( $form_key, array( 'role' ) ) || - ( $this->set_mode == 'account' || um_is_core_page( 'account' ) ) ) { + ( $this->set_mode == 'account' || um_is_core_page( 'account' ) ) ) { $option_value = $k; $um_field_checkbox_item_title = $v; } @@ -2964,7 +2967,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $max_selections = ( isset( $max_selections ) ) ? absint( $max_selections ) : 0; - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( isset( $data['allowclear'] ) && $data['allowclear'] == 0 ) { $class = 'um-s2'; @@ -3190,7 +3193,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $options = apply_filters( "um_radio_field_options_{$key}", $options ); } - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( isset( $data['label'] ) ) { $output .= $this->field_label( $label, $key, $data ); @@ -3213,7 +3216,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $option_value = $v; if ( ! is_numeric( $k ) && in_array( $form_key, array( 'role' ) ) || - ( $this->set_mode == 'account' || um_is_core_page( 'account' ) ) ) { + ( $this->set_mode == 'account' || um_is_core_page( 'account' ) ) ) { $um_field_checkbox_item_title = $v; $option_value = $k; } @@ -3328,7 +3331,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $options = apply_filters( "um_checkbox_field_options_{$key}", $options ); } - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( isset( $data['label'] ) ) { $output .= $this->field_label( $label, $key, $data ); @@ -3429,9 +3432,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) { /* HTML */ case 'block': - $output .= '
-
' . $content . '
-
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '> +
' . $content . '
+
'; break; /* Shortcode */ @@ -3439,9 +3442,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $content = str_replace( '{profile_id}', um_profile_id(), $content ); - $output .= '
-
' . do_shortcode( $content ) . '
-
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>' . do_shortcode( $content ) . '
'; break; /* Unlimited Group */ @@ -3451,8 +3452,8 @@ if ( ! class_exists( 'um\core\Fields' ) ) { if ( ! empty( $fields ) ) { $output .= '
-
' . esc_html__( $label, 'ultimate-member' ) . '
'; - $output .= '
'; +
' . esc_html__( $label, 'ultimate-member' ) . '
'; + $output .= '
'; foreach ( $fields as $subkey => $subdata ) { $output .= $this->edit_field( $subkey, $subdata, 'group' ); @@ -3801,7 +3802,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { * @throws \Exception */ function view_field( $key, $data, $rule = false ) { - $output = null; + $output = ''; // get whole field data if ( is_array( $data ) ) { @@ -3828,16 +3829,16 @@ if ( ! class_exists( 'um\core\Fields' ) ) { //hide if empty type if ( ! isset( $data['type'] ) ) { - return; + return ''; } if ( isset( $data['in_group'] ) && $data['in_group'] != '' && $rule != 'group' ) { - return; + return ''; } //invisible on profile page if ( $visibility == 'edit' || $type == 'password' ) { - return; + return ''; } //hide if empty @@ -3846,21 +3847,26 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $_field_value = $this->field_value( $key, $default, $data ); if ( ! isset( $_field_value ) || $_field_value == '' ) { - return; + return ''; } } if ( ! um_can_view_field( $data ) ) { - return; + return ''; } // disable these fields in profile view only if ( in_array( $key, array( 'user_password' ) ) && $this->set_mode == 'profile' ) { - return; + return ''; } if ( ! um_field_conditions_are_met( $data ) ) { - return; + return ''; + } + + + if ( isset( $data['classes'] ) ) { + $classes = explode( " ", $data['classes'] ); } switch ( $type ) { @@ -3868,7 +3874,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { /* Default */ default: - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; if ( isset( $data['label'] ) || ! empty( $data['icon'] ) ) { @@ -3942,9 +3948,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { /* HTML */ case 'block': - $output .= '
-
' . $content . '
-
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>' . $content . '
'; break; /* Shortcode */ @@ -3952,20 +3956,18 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $content = str_replace( '{profile_id}', um_profile_id(), $content ); - $output .= '
-
' . do_shortcode( $content ) . '
-
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>' . do_shortcode( $content ) . '
'; break; /* Gap/Space */ case 'spacing': - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data, array( 'height' => $spacing ) ) . '>
'; break; /* A line divider */ case 'divider': - $output .= '
'; - if ($divider_text) { + $output .= '
get_atts( $key, $classes, $conditional, $data, array( 'border-bottom' => $borderwidth . 'px ' . $borderstyle . ' ' . $bordercolor ) ) . '>'; + if ( $divider_text ) { $output .= '
' . $divider_text . '
'; } $output .= '
'; @@ -3974,18 +3976,23 @@ if ( ! class_exists( 'um\core\Fields' ) ) { /* Rating */ case 'rating': - $output .= '
'; + $output .= '
get_atts( $key, $classes, $conditional, $data ) . '>'; - if (isset( $data['label'] ) || isset( $data['icon'] ) && !empty( $data['icon'] )) { + if ( isset( $data['label'] ) || ! empty( $data['icon'] ) ) { $output .= $this->field_label( $label, $key, $data ); } - $output .= '
'; - $output .= '
-
-
'; - $output .= '
'; + ob_start(); ?> +
+
+
+
+
+ + '; break; @@ -4433,5 +4440,79 @@ if ( ! class_exists( 'um\core\Fields' ) ) { die; } + + + + /** + * Get rendered field attributes + * + * @since 2.1.2 + * + * @param string $key + * @param array $classes + * @param string $conditional + * @param array $data + * @param array $field_style + * + * @return string/html + */ + function get_atts( $key, $classes, $conditional, $data, $field_style = array() ) { + + array_unshift( $classes, 'um-field-' . $data['type'] ); + array_unshift( $classes, 'um-field' ); + + $field_atts = array( + 'id' => array( + "um_field_{$this->set_id}_{$key}", + ), + 'class' => $classes, + 'data-key' => array( + esc_attr( $key ) + ) + ); + + if ( ! empty( $field_style ) && is_array( $field_style ) ) { + + $arr_inline_style = ''; + foreach ( $field_style as $style_attr => $style_value ) { + $arr_inline_style .= esc_attr( $style_attr ) . ':' . esc_attr( $style_value ) . ';'; + } + $field_atts['style'] = array( $arr_inline_style ); + } + + /** + * UM hook + * + * @type filter + * @title um_field_extra_atts + * @description user for adding extra field attributes + * @input_vars + * [{"var":"$field_atts","type":"array","desc":"Field attributes"}, + * [{"var":"$key","type":"string","desc":"Field id"}, + * {"var":"$data","type":"array","desc":"Field Data"}] + * @change_log + * ["Since: 2.0.57"] + * @usage add_filter( 'um_field_extra_atts', 'function_name', 10, 3 ); + * @example + * + */ + $field_atts = apply_filters( 'um_field_extra_atts', $field_atts, $key, $data ); + + $html_atts = ''; + foreach ( $field_atts as $att_name => $att_values ) { + $att_values = implode( " ", $att_values ); + $html_atts .= " {$att_name}=\"" . esc_attr( $att_values ) . "\""; + } + + $html_atts .= $conditional; + + return $html_atts; + } } } \ No newline at end of file diff --git a/languages/ultimate-member-en_US.po b/languages/ultimate-member-en_US.po index 6bda8abf..e84ef736 100644 --- a/languages/ultimate-member-en_US.po +++ b/languages/ultimate-member-en_US.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Ultimate Member\n" -"POT-Creation-Date: 2019-11-22 11:53+0200\n" -"PO-Revision-Date: 2019-11-22 11:54+0200\n" +"POT-Creation-Date: 2019-11-25 16:06+0200\n" +"PO-Revision-Date: 2019-11-25 16:06+0200\n" "Last-Translator: \n" "Language-Team: \n" "Language: en_US\n" @@ -103,7 +103,7 @@ msgstr "" #: includes/admin/core/class-admin-builder.php:765 #: includes/admin/core/class-admin-dragdrop.php:33 #: includes/admin/core/class-admin-menu.php:106 -#: includes/core/class-fields.php:4380 +#: includes/core/class-fields.php:4387 msgid "Please login as administrator" msgstr "" @@ -3160,7 +3160,7 @@ msgid "UM Action" msgstr "" #: includes/admin/core/class-admin-users.php:124 -#: includes/core/class-fields.php:2544 +#: includes/core/class-fields.php:2547 msgid "Apply" msgstr "" @@ -4206,7 +4206,7 @@ msgstr "" #: includes/admin/templates/modal/dynamic_new_group.php:18 #: includes/admin/templates/modal/fonticons.php:14 #: includes/admin/templates/role/publish.php:24 includes/class-config.php:252 -#: includes/core/class-fields.php:2545 includes/core/class-fields.php:2642 +#: includes/core/class-fields.php:2548 includes/core/class-fields.php:2645 #: includes/core/um-actions-profile.php:671 #: includes/core/um-actions-profile.php:683 #: includes/core/um-actions-profile.php:871 @@ -6988,56 +6988,56 @@ msgstr "" msgid "You can only upload one file" msgstr "" -#: includes/core/class-fields.php:2204 +#: includes/core/class-fields.php:2207 msgid "Current Password" msgstr "" -#: includes/core/class-fields.php:2233 +#: includes/core/class-fields.php:2236 msgid "New Password" msgstr "" -#: includes/core/class-fields.php:2265 +#: includes/core/class-fields.php:2268 #, php-format msgid "Confirm %s" msgstr "" -#: includes/core/class-fields.php:2499 +#: includes/core/class-fields.php:2502 msgid "Upload Photo" msgstr "" -#: includes/core/class-fields.php:2520 includes/core/class-fields.php:2544 +#: includes/core/class-fields.php:2523 includes/core/class-fields.php:2547 #: includes/core/um-actions-profile.php:902 msgid "Change photo" msgstr "" -#: includes/core/class-fields.php:2544 includes/core/class-fields.php:2641 +#: includes/core/class-fields.php:2547 includes/core/class-fields.php:2644 msgid "Processing..." msgstr "" -#: includes/core/class-fields.php:2566 +#: includes/core/class-fields.php:2569 msgid "Upload File" msgstr "" -#: includes/core/class-fields.php:2608 includes/core/um-filters-fields.php:267 +#: includes/core/class-fields.php:2611 includes/core/um-filters-fields.php:267 msgid "This file has been removed." msgstr "" -#: includes/core/class-fields.php:2611 includes/core/class-fields.php:2641 +#: includes/core/class-fields.php:2614 includes/core/class-fields.php:2644 msgid "Change file" msgstr "" -#: includes/core/class-fields.php:2641 +#: includes/core/class-fields.php:2644 msgid "Save" msgstr "" -#: includes/core/class-fields.php:4113 +#: includes/core/class-fields.php:4120 #, php-format msgid "" "Your profile is looking a little empty. Why not add some " "information!" msgstr "" -#: includes/core/class-fields.php:4115 +#: includes/core/class-fields.php:4122 msgid "This user has not added any information to their profile yet." msgstr ""