'', // Text '1' => ['fa fa-user-secret', 'fa fa-mars', 'fa fa-venus', 'fa fa-user-secret'], // Icon '2' => ['unspecified', 'male', 'female', 'unspecified'], // Image + text '3' => ['unspecified', 'male', 'female', 'unspecified'] // Image ]; $locale['uf_gender_sz'] = [ 0 => $locale['uf_gender_00'], 1 => $locale['uf_gender_01'], 2 => $locale['uf_gender_02'], 3 => $locale['uf_gender_03'], ]; for ($i = 0; $i < count($locale['uf_gender_sz']); $i++) { switch ($gen_set) { case 3: $value = "".$locale["; break; case 1: $value = "".$locale['uf_gender_sz'][$i]; break; case 2: $value = "".$locale[ ".$locale['uf_gender_sz'][$i]; break; default: $value = $locale['uf_gender_sz'][$i]; } $locale['uf_gender_szkep'][] = $value; } if (!$with_secret) { unset($locale['uf_gender_szkep'][count($locale['uf_gender_szkep']) - 1]); } if ($profile_method == "input") { $options = [ 'type' => 'radio', 'inline' => TRUE, 'error_text' => $locale['uf_gender_error'], 'options' => $locale['uf_gender_szkep'], ] + $options; $user_fields = $input_type('user_gender', $locale['uf_gender'], $field_value, $options); } else if ($profile_method == "display") { if ($field_value) { $user_fields = [ 'title' => $locale['uf_gender'], 'value' => $locale['uf_gender_szkep'][$field_value] ]; } }