Skip to content

Commit

Permalink
1.2.26
Browse files Browse the repository at this point in the history
  • Loading branch information
Stiofan committed Dec 20, 2024
1 parent a53af8a commit 8eda8af
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 26 deletions.
46 changes: 26 additions & 20 deletions admin/settings/class-formbuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2088,8 +2088,8 @@ public function builder_extra_fields_smr( $output, $result_str, $cf, $field_info
$field_type_key = isset( $_REQUEST['field_type_key'] ) ? esc_html( $_REQUEST['field_type_key'] ) : '';
}
?>
<li class="uwp-setting-name">
<label for="option_values" class="uwp-tooltip-wrap">
<div class="uwp-setting-name mb-3">
<label for="option_values" class=" form-label">
<?php
$tip = __( 'Option Values should be separated by comma.', 'userswp' );
if ( $field_type != 'multiselect' ) {
Expand All @@ -2112,20 +2112,27 @@ public function builder_extra_fields_smr( $output, $result_str, $cf, $field_info

<?php
if ( isset( $field_type_key ) && $field_type_key == 'uwp_country' ) {
// @todo here we should show a multiselect to either include or exclude countries
echo aui()->alert( array(
'type' => 'info',
'content' => esc_html__( 'A full country list will be shown', 'userswp' )
) );


// @todo here we should show a multiselect to either include or exclude countries
esc_html_e( 'A full country list will be shown', 'userswp' );
} elseif ( isset( $field_type_key ) && $field_type_key == 'uwp_language' ) {
esc_html_e( 'Available translation languages list will be shown', 'userswp' );
echo aui()->alert( array(
'type' => 'info',
'content' => esc_html__( 'Available translation languages list will be shown', 'userswp' )
) );
} else {
?>
<input type="text" name="option_values" id="option_values" value="<?php echo esc_attr( $value ); ?>"/>
<input type="text" name="option_values" id="option_values" class="form-control" value="<?php echo esc_attr( $value ); ?>"/>
<?php } ?>

<br/>

</div>
</li>
</div>
<?php

$html = ob_get_clean();
Expand All @@ -2140,8 +2147,8 @@ public function builder_extra_fields_datepicker( $output, $result_str, $cf, $fie
$extra = unserialize( $field_info->extra_fields );
}
?>
<li class="uwp-setting-name uwp-advanced-setting">
<label for="date_format" class="uwp-tooltip-wrap">
<div class="uwp-setting-name uwp-advanced-setting mb-3">
<label for="date_format" class=" form-label">
<?php
echo uwp_help_tip( __( 'Select the date format.', 'userswp' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
esc_html_e( 'Date Format :', 'userswp' );
Expand All @@ -2161,7 +2168,7 @@ public function builder_extra_fields_datepicker( $output, $result_str, $cf, $fie

$date_formats = apply_filters( 'uwp_date_formats', $date_formats );
?>
<select name="extra[date_format]" id="date_format" class="aui-select2">
<select name="extra[date_format]" id="date_format" class="aui-selectx2 form-select mw-100" >
<?php
foreach ( $date_formats as $format ) {
$selected = false;
Expand All @@ -2174,7 +2181,7 @@ public function builder_extra_fields_datepicker( $output, $result_str, $cf, $fie
</select>

</div>
</li>
</div>
<?php

$html = ob_get_clean();
Expand Down Expand Up @@ -2261,16 +2268,15 @@ public function builder_extra_fields_file( $output, $result_str, $cf, $field_inf
$extra_fields = isset( $field_info->extra_fields ) && $field_info->extra_fields != '' ? maybe_unserialize( $field_info->extra_fields ) : '';
$uwp_file_types = ! empty( $extra_fields ) && ! empty( $extra_fields['uwp_file_types'] ) ? $extra_fields['uwp_file_types'] : array( '*' );
?>
<li class="uwp-setting-name uwp-advanced-setting">
<label for="uwp_file_types" class="uwp-tooltip-wrap">
<div class="uwp-setting-name uwp-advanced-setting mb-3">
<label for="uwp_file_types" class="form-label">
<?php
echo uwp_help_tip( __( 'Select file types to allowed for file uploading. (Select multiple file types by holding down "Ctrl" key.)', 'userswp' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
esc_html_e( 'Allowed file types :', 'userswp' );
?>
</label>
<div class="uwp-input-wrap">
<select name="extra[uwp_file_types][]" id="uwp_file_types" multiple="multiple" class="aui-select2"
style="height:100px;width:90%;">
<select name="extra[uwp_file_types][]" id="uwp_file_types" multiple="multiple" class="aui-select2 form-select mw-100" >
<option value="*" <?php selected( true, in_array( '*', $uwp_file_types ) ); ?>><?php esc_html_e( 'All types', 'userswp' ); ?></option>
<?php foreach ( $allowed_file_types as $format => $types ) { ?>
<optgroup
Expand All @@ -2282,7 +2288,7 @@ public function builder_extra_fields_file( $output, $result_str, $cf, $field_inf
<?php } ?>
</select>
</div>
</li>
</div>
<?php

$html = ob_get_clean();
Expand Down Expand Up @@ -2402,13 +2408,13 @@ public function advance_admin_custom_fields( $field_info, $cf ) {
}

?>
<div <?php echo $hide_register_field; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> class="cf-incin-reg-form uwp-setting-name">
<div <?php echo $hide_register_field; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> class="cf-incin-reg-form uwp-setting-name mb-3">

<?php
$reg_only_fields = uwp_get_register_only_fields();
if ( isset( $htmlvar_name ) && in_array( $htmlvar_name, $reg_only_fields ) ) {
?>
<label for="is_register_field" class="uwp-tooltip-wrap">
<label for="is_register_field" class=" form-label">
<?php
echo uwp_help_tip( __( 'Lets you use this field as register form field, set from register tab above.', 'userswp' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
esc_html_e( 'Include this field in register form:', 'userswp' ); ?>
Expand Down Expand Up @@ -2441,12 +2447,12 @@ public function advance_admin_custom_fields( $field_info, $cf ) {
<?php
if ( isset( $htmlvar_name ) && in_array( $htmlvar_name, $reg_only_fields ) ) {
?>
<label for="is_register_only_field" class="uwp-tooltip-wrap">
<label for="is_register_only_field" class="form-label">
<?php
echo uwp_help_tip( __( 'Lets you use this field as register ONLY form field.', 'userswp' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
esc_html_e( 'Include this field ONLY in register form:', 'userswp' ); ?>
</label>
<input type="hidden" name="is_register_only_field" value="1"/>
<input type="hidden" name="is_register_only_field" class="form-control" value="1"/>
<p><?php esc_html_e( 'This field is applicable only for register form.', 'userswp' ); ?></p>
<?php
} else {
Expand Down
6 changes: 4 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.ko-fi.com/stiofan
Tags: login form, registration, registration form, user profile, user registration, members, membership
Requires at least: 4.9
Tested up to: 6.7
Stable tag: 1.2.25
Stable tag: 1.2.26
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -146,8 +146,10 @@ Yes, you can customize it with Elementor, but also with Gutenberg, Divi, Beaver

== Changelog ==

= 1.2.25 - 2024-12-TBD =
= 1.2.26 - 2024-12-20 =
* Show advanced button missing styling on some pages - FIXED
* Minor styling fixes for form builder fields - CHANGED
* function _load_textdomain_just_in_time was called incorrectly - FIXED

= 1.2.25 - 2024-12-13 =
* Profile tabs form builder missing nonce field which meant no new fields could be added - FIXED
Expand Down
4 changes: 2 additions & 2 deletions userswp.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: UsersWP
Plugin URI: https://userswp.io/
Description: The only lightweight user profile plugin for WordPress. UsersWP features front end user profile, users directory, a registration and a login form.
Version: 1.2.25
Version: 1.2.26
Author: AyeCode Ltd
Author URI: https://userswp.io
License: GPL-2.0+
Expand All @@ -24,7 +24,7 @@
}

if ( ! defined( 'USERSWP_VERSION' ) ) {
define( 'USERSWP_VERSION', '1.2.25' );
define( 'USERSWP_VERSION', '1.2.26' );
}

if ( ! defined( 'USERSWP_PATH' ) ) {
Expand Down
4 changes: 2 additions & 2 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'uswerwp/userswp',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '0d7bf448b51d86961418d5c1b06d6dbbb278906c',
'reference' => 'a53af8aa39165fab1433bcd8b021618d13ce190a',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -79,7 +79,7 @@
'uswerwp/userswp' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '0d7bf448b51d86961418d5c1b06d6dbbb278906c',
'reference' => 'a53af8aa39165fab1433bcd8b021618d13ce190a',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down

0 comments on commit 8eda8af

Please sign in to comment.