<?php if (is_array(get_option("fields_asociate_min")) && sizeof(get_option("fields_asociate_min")) > 0) { ?> <h3 class="sep">Datos de asociado</h3> <p class="help help--section">Es necesario que rellenes los siguientes datos para continuar con el registro.<br>Los datos aportados serán comprobados por el secretario</p> <?php $empty_cont = 0; foreach (get_option("fields_asociate_min") as $name => $text) { if (get_user_meta(get_current_user_id(), $text, 1) != "") { $empty_cont++; } if ($text != 'email') { wpdc_the_input_text($text, get_user_meta(get_current_user_id(), $text, 1), change_field_name($text), change_field_name($text), false, true); } else { wpdc_the_input_text($text, get_the_author_meta($text, get_current_user_id()), change_field_name($text), change_field_name($text), false, true); } } ?> <?php } ?> <?php wpdc_the_submit('updatesection', 'upgradeuser', '', '', 'Asociarse'); ?> <?php } elseif (get_user_meta(get_current_user_id(), 'asociation_status', 1) == 'pendiente') { ?> <div class="wrap wrap--content wrap--alert wrap--alert__info" <p>Tu solicitud se está tramitando en estos momentos. Te rogamos tengas paciencia.</p> </div>
<!-- flexboxer --> <div class="flexboxer flexboxer--configuration flexboxer--full"> <section id="generalconfiguration" class="wrap wrap--content wrap--collapse js-section wrap--shadow wrap--form"> <h3 onclick="ToggleSection(this)" data-section="generalconfiguration" class="js-section-launch">Configuración general</h3> <form method="POST" action=""> <?php wpdc_the_input_checkbox_simple('users_can_register', 1, 'Permitir registro de usuarios', '', false, get_option('users_can_register')); ?> <?php wpdc_the_input_checkbox_simple('users_can_asociate', 1, 'Permitir que usuarios se asocien', '', false, get_option('users_can_asociate')); ?> <h3 class="sep">Registro de asociados</h3> <?php $options = ["dbem_dnie" => change_field_name("dbem_dnie"), "bornday" => change_field_name("bornday"), "dbem_phone" => change_field_name("dbem_phone"), "dbem_address" => change_field_name("dbem_address"), "titulacion" => change_field_name("titulacion"), "centro_de_estudios" => change_field_name("centro_de_estudios"), "first_name" => change_field_name("first_name"), "last_name" => change_field_name("last_name"), "email" => change_field_name("email")]; wpdc_the_input_select_option('fields_asociate_min', get_option("fields_asociate_min"), 'Campos obligatorios', $options, true); ?> <?php wpdc_the_submit('updatesection', 'general-options', '', '', 'Guardar cambios'); ?> </form> </section> <section id="orgconfig" class="wrap wrap--content wrap--collapse js-section wrap--shadow wrap--form"> <h3 onclick="ToggleSection(this)" data-section="orgconfig" class="js-section-launch">Datos de la organización</h3> <form method="POST" action=""> <?php wpdc_the_input_text('asoc_name', get_option("asoc_name"), 'Nombre completo de la organización', 'Entidad para la ...'); ?> <?php