- small notices fixes;

- fixed issue #344;
This commit is contained in:
nikitozzzzzzz
2017-11-14 12:36:44 +02:00
parent e664c328d0
commit ef653c29d3
3 changed files with 36 additions and 16 deletions
+7 -10
View File
@@ -1962,20 +1962,17 @@ if ( ! class_exists( 'Admin_Metabox' ) ) {
case '_parent_dropdown_relationship':
?>
<p><label for="_parent_dropdown_relationship">Parent Option<?php UM()->tooltip( __( 'Dynamically populates the option based from selected parent option.', 'ultimate-member' ) ); ?></label>
<p><label for="_parent_dropdown_relationship"><?php _e( 'Parent Option', 'ultimate-member' ) ?><?php UM()->tooltip( __( 'Dynamically populates the option based from selected parent option.', 'ultimate-member' ) ); ?></label>
<select name="_parent_dropdown_relationship" id="_parent_dropdown_relationship" style="width: 100%">
<option value="">No Selected</option>
<?php
if ( UM()->builtin()->custom_fields ) {
foreach (UM()->builtin()->custom_fields as $field_key => $array) {
if( in_array( $array['type'], array( 'select' ) )
&& $field_args['metakey'] != $array['metakey'] ){
<option value=""><?php _e( 'No Selected', 'ultimate-member' ) ?></option>
<?php if ( UM()->builtin()->custom_fields ) {
foreach ( UM()->builtin()->custom_fields as $field_key => $array ) {
if ( in_array( $array['type'], array( 'select' ) ) && ( ! isset( $field_args['metakey'] ) || $field_args['metakey'] != $array['metakey'] ) ) {
echo "<option value='".$array['metakey']."' ".selected( $array['metakey'], $this->edit_mode_value ).">".$array['title']."</option>";
}
}
}
?>
} ?>
</select>
</p>