diff --git a/assets/css/um-profile.css b/assets/css/um-profile.css
index 1586807e..00a07b6a 100644
--- a/assets/css/um-profile.css
+++ b/assets/css/um-profile.css
@@ -545,10 +545,4 @@ font-weight: normal;
.um-profile.um-viewing .um-field-checkbox, .um-profile.um-viewing .um-field-radio{
cursor: default !important;
-}
-
-@media (min-width: 880px) {
- .um-profile-nav-item .um-tip-n {
- display: none !important;
- }
}
\ No newline at end of file
diff --git a/assets/css/um-responsive.css b/assets/css/um-responsive.css
index c125e09b..43558ccd 100644
--- a/assets/css/um-responsive.css
+++ b/assets/css/um-responsive.css
@@ -6,6 +6,14 @@
display: none;
}
+.um-profile-nav-item a.uimob340-show,
+.um-profile-nav-item a.uimob500-show,
+.um-profile-nav-item a.uimob800-show,
+.um-profile-nav-item a.uimob960-show
+{
+ display: none;
+}
+
div.uimob340 .uimob340-show,
div.uimob500 .uimob500-show,
div.uimob800 .uimob800-show,
diff --git a/includes/admin/templates/form/login_customize.php b/includes/admin/templates/form/login_customize.php
index a4ed6046..aafe97ab 100644
--- a/includes/admin/templates/form/login_customize.php
+++ b/includes/admin/templates/form/login_customize.php
@@ -65,7 +65,7 @@
array(
'id' => '_um_login_secondary_btn_word',
'type' => 'text',
- 'label' => __( 'Primary Button Text', 'ultimate-member' ),
+ 'label' => __( 'Secondary Button Text', 'ultimate-member' ),
'tooltip' => __( 'Customize the button text', 'ultimate-member' ),
'value' => UM()->query()->get_meta_value( '_um_login_secondary_btn_word', null, UM()->options()->get( 'login_secondary_btn_word' ) ),
'conditional' => array( '_um_login_secondary_btn', '=', 1 )
diff --git a/includes/admin/templates/form/profile_customize.php b/includes/admin/templates/form/profile_customize.php
index 06964965..6104eae0 100644
--- a/includes/admin/templates/form/profile_customize.php
+++ b/includes/admin/templates/form/profile_customize.php
@@ -90,7 +90,7 @@
array(
'id' => '_um_profile_secondary_btn_word',
'type' => 'text',
- 'label' => __( 'Primary Button Text', 'ultimate-member' ),
+ 'label' => __( 'Secondary Button Text', 'ultimate-member' ),
'tooltip' => __( 'Customize the button text', 'ultimate-member' ),
'value' => UM()->query()->get_meta_value( '_um_profile_secondary_btn_word', null, UM()->options()->get( 'profile_secondary_btn_word' ) ),
'conditional' => array( '_um_profile_secondary_btn', '=', 1 )
diff --git a/includes/admin/templates/form/register_customize.php b/includes/admin/templates/form/register_customize.php
index 4ac2e907..3d94efd2 100644
--- a/includes/admin/templates/form/register_customize.php
+++ b/includes/admin/templates/form/register_customize.php
@@ -80,7 +80,7 @@
array(
'id' => '_um_register_secondary_btn_word',
'type' => 'text',
- 'label' => __( 'Primary Button Text', 'ultimate-member' ),
+ 'label' => __( 'Secondary Button Text', 'ultimate-member' ),
'tooltip' => __( 'Customize the button text', 'ultimate-member' ),
'value' => UM()->query()->get_meta_value( '_um_register_secondary_btn_word', null, UM()->options()->get( 'register_secondary_btn_word' ) ),
'conditional' => array( '_um_register_secondary_btn', '=', 1 )
diff --git a/includes/core/class-enqueue.php b/includes/core/class-enqueue.php
index 1fe726e6..4365b686 100644
--- a/includes/core/class-enqueue.php
+++ b/includes/core/class-enqueue.php
@@ -463,7 +463,7 @@ if ( ! class_exists( 'um\core\Enqueue' ) ) {
wp_register_script('um_responsive', um_url . 'assets/js/um-responsive' . $this->suffix . '.js' );
wp_enqueue_script('um_responsive');
- wp_register_style('um_responsive', um_url . 'assets/css/um-responsive.css' );
+ wp_register_style('um_responsive', um_url . 'assets/css/um-responsive.css', array( 'um_profile' ) );
wp_enqueue_style('um_responsive');
}
diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php
index 00ad82c6..9cab1a87 100644
--- a/includes/core/class-fields.php
+++ b/includes/core/class-fields.php
@@ -43,9 +43,8 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
@@ -1529,10 +1528,11 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
* @param string $key
* @param array $data
* @param boolean $rule
+ * @param array $args
*
* @return string
*/
- function edit_field( $key, $data, $rule = false ) {
+ function edit_field( $key, $data, $rule = false, $args = array() ) {
global $_um_profile_id;
$output = null;
$disabled = '';
@@ -1566,7 +1566,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
* @var boolean $required
* @var string $validate
* @var string $default
- * @var string $conditional
+ * @var string $conditional
*/
extract( $data );
}
@@ -1662,7 +1662,47 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
* ?>
*/
$type = apply_filters( "um_hook_for_field_{$type}", $type );
+ switch ( $type ) {
+ case 'textarea':
+ case 'multiselect':
+ $field_id = $field_name = $key;
+ $field_value = $this->field_value( $key, $default, $data );
+ break;
+
+ case 'select':
+ case 'radio':
+ $form_key = str_replace( 'role_select', 'role', $key );
+ $field_id = $form_key;
+ break;
+ default:
+ $field_id = '';
+ break;
+ }
+
+ /**
+ * UM hook
+ *
+ * @type filter
+ * @title um_completeness_field_id
+ * @description use for change core id not allowed duplicate
+ * @input_vars
+ * [{"var":"$field_id","type":"string","desc":"Field id"},
+ * {"var":"$data","type":"array","desc":"Field Data"}]
+ * {"var":"$args","type":"array","desc":"Optional field arguments"}]
+ * @change_log
+ * ["Since: 2.0.13"]
+ * @usage add_filter( 'um_completeness_field_id', 'function_name', 10, 3 );
+ * @example
+ *
+ */
+ $field_id = apply_filters( 'um_completeness_field_id', $field_id, $data, $args );
/* Begin by field type */
switch ( $type ) {
@@ -1721,8 +1761,8 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
';
- if (!empty( $disabled )) {
- $output .= $this->disabled_hidden_field( $field_name, $field_value );
+ if (!empty( $disabled )) {
+ $output .= $this->disabled_hidden_field( $field_name, $field_value );
}
if ($this->is_error( $key )) {
@@ -2032,8 +2072,6 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
}
$output .= '';
- $field_name = $key;
- $field_value = $this->field_value( $key, $default, $data );
if (isset( $data['html'] ) && $data['html'] != 0 && $key != "description") {
@@ -2084,16 +2122,17 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
// add the contents of the buffer to the output variable
$output .= ob_get_clean();
- } else $output .= '';
+ } else {
+ $output .= '';
+ }
- $output .= '
-
';
+ $output .= '';
- if (!empty( $disabled )) {
+ if ( ! empty( $disabled ) ) {
$output .= $this->disabled_hidden_field( $field_name, $field_value );
}
- if ($this->is_error( $key )) {
+ if ( $this->is_error( $key ) ) {
$output .= $this->field_error( $this->show_error( $key ) );
}
@@ -2111,7 +2150,6 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$output .= '';
$output .= '
';
-
$output .= '
';
$output .= '';
@@ -2313,8 +2351,6 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
/* Select dropdown */
case 'select':
- $form_key = str_replace( 'role_select', 'role', $key );
-
$output .= '';
@@ -2434,10 +2470,10 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
}
if( ! empty( $placeholder ) ) {
- $placeholder = strip_tags( $placeholder );
- }
+ $placeholder = strip_tags( $placeholder );
+ }
- $output .= '