<form method="POST" action="">
			  	<input type="hidden" name="id" value="<?php 
    echo $post_id;
    ?>
">

			    <?php 
    wpdc_the_input_text('job_name', get_the_title($post_id), 'Nombre de la oferta', 'Prácticas en...');
    ?>

				<?php 
    wpdc_the_input_text('job_bussiness', $job_bussiness, 'Empresa', 'Empresa');
    ?>

				<?php 
    wpdc_the_input_text('job_info', $job_info, 'Más información', 'http://');
    ?>

				<?php 
    wpdc_the_input_textarea('description', get_post_field('post_content', $post_id), 'Descripción de la oferta');
    ?>
			    
			    <?php 
    wpdc_the_submit('updatesection', 'updatejob', '', '', 'Guardar cambios');
    ?>
			</form>
			<?php 
    include locate_template('templates/sections/section-close.php');
    ?>
		</section>
 
			<?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>
			
			<?php 
wpdc_the_input_text('consumer_key', $consumer_key, 'Consumer key', 'Consumer key');
?>
			
			<?php 
wpdc_the_input_text('consumer_secret', $consumer_secret, 'Consumer secret', 'Consumer secret');
?>

			<?php 
wpdc_the_input_text('access_token', $access_token, 'Access token', 'Access token');
?>

			<?php 
wpdc_the_input_text('access_token_secret', $access_token_secret, 'Access token secret', 'Access token secret');
?>
	        
			<?php 
wpdc_the_submit('updatesection', 'tweet-test', '', '', 'Enviar tweet de prueba', $empty_twitter_keys);
?>

		</div>
		<div class="wrap wrap--frame wrap--twitteroptions wrap--twitteroptions__actions">
	    	<h3 class="sep">Activación de servicios automáticos</h3>
	    	<?php 
$checked = false;
if ($tweet_new_user == true) {
    $checked = true;
}
wpdc_the_input_checkbox_simple('tweet_new_user', 'true', 'Activado', 'Anunciar confirmación de nuevos usuarios', $empty_twitter_keys, $checked);
">

		    <?php 
    wpdc_the_input_text('concurso_name', get_the_title($post_id), 'Nombre del concurso', 'Nombre del concurso');
    ?>

		    <?php 
    wpdc_the_input_text('concurso_org', $concurso_org, 'Organismo convocante', 'Organismo');
    ?>
		    
		    <?php 
    wpdc_the_input_text('concurso_bases', $concurso_bases, 'Bases/Más información', 'http://');
    ?>
		    
		    <?php 
    wpdc_the_input_text('concurso_quantity', $concurso_quantity, 'Máximo premio', '3000€, Viaje a Roma...');
    ?>
		    
		    <?php 
    wpdc_the_input_date('concurso_date', $concurso_date, 'Cierre de convocatoria');
    ?>

		    <?php 
    wpdc_the_input_textarea('description', get_post_field('post_content', $post_id), 'Descripción del concurso');
    ?>
		    
		    <?php 
    wpdc_the_submit('updatesection', 'updateconcurso', '', '', 'Guardar cambios');
    ?>
		  </form>
		</section>
  <section class="wrap wrap--content wrap--shadow wrap--form wrap--author">
		<?php 
wpdc_the_profile_photo($user);
?>

		<?php 
wpdc_the_input_text('login', get_user_meta($user->ID, 'nickname', 1), 'Login (No se puede cambiar)', 'login', true);
?>

		<?php 
wpdc_the_input_text('first_name', get_user_meta($user->ID, 'first_name', 1), 'Nombre', 'Nombre');
?>
		
		<?php 
wpdc_the_input_text('last_name', get_user_meta($user->ID, 'last_name', 1), 'Apellidos', 'Apellidos');
?>

		<?php 
wpdc_the_input_email('email', esc_attr(get_the_author_meta('email', $user->ID)), 'Email', '*****@*****.**');
?>
      
		<?php 
wpdc_the_input_text('position', get_user_meta($user->ID, 'position', 1), 'Perfil', 'Diseñador en LittlePep S.A.');
?>
      
	
    	<?php 
wpdc_the_input_textarea('description', $user->description, 'Descripción');
?>
  </section><!-- end of author -->
    ?>
        	<?php 
    wpdc_the_submit('updatesection', 'home-options', '', '', 'Guardar cambios');
    ?>
        </form>
	</section>

	<?php 
    if (get_option('users_can_register')) {
        ?>
		<section id="registryconfiguration" class="wrap wrap--content wrap--collapse js-section wrap--shadow wrap--form">
			<h3 onclick="ToggleSection(this)" data-section="registryconfiguration" class="js-section-launch">Textos de la página</h3>
	        <form method="POST" action="">
	        	<h3 class="sep">Registro de usuarios</h3>
		        <?php 
        wpdc_the_input_text('tos_link', get_option("tos_link"), 'Link a términos y condiciones', 'http://');
        ?>
		        <?php 
        wpdc_the_input_textarea('text_register', get_option("text_register"), 'Texto para el registro');
        ?>
		        <?php 
        wpdc_the_input_textarea('text_subscriber_upgrade', get_option("text_subscriber_upgrade"), 'Texto para los suscriptores');
        ?>
		        <?php 
        wpdc_the_input_textarea('text_asociate_payfee', get_option("text_asociate_payfee"), 'Texto inserto en cada cuotas');
        ?>
		        <?php 
        wpdc_the_input_textarea('text_asociate_payfee_banks', get_option("text_asociate_payfee_banks"), 'Texto explicativo para el pago por transferencia bancaria');
        ?>
		        <!-- submit change status -->
				<?php 
        $infoarray = ["Publicado" => get_the_date('Y-m-d h:i:s'), "Última modificación" => get_the_date('Y-m-d h:i:s'), "Autor" => wpdc_get_user_name($post->post_author)];
        wpdc_the_section_custom($infoarray, 'postinfo', 'Detalles del artículo', true, true);
    }
    ?>


		<section id="newconcurso" class="wrap wrap--content wrap--form wrap--shadow">
			<h3 class="title title--section">Editar artículo</h3>
			<form method="POST" action="">
			  	<input type="hidden" name="id" value="<?php 
    echo $post_id;
    ?>
">

			    <?php 
    wpdc_the_input_text('post_name', get_the_title($post_id), 'Título del artículo', 'Título');
    ?>

				<?php 
    wpdc_the_input_textarea('description', get_post_field('post_content', $post_id), 'Descripción de la oferta');
    ?>
			    
			    <?php 
    wpdc_the_submit('updatesection', 'updateposts', '', '', 'Guardar cambios');
    ?>
			</form>
			<?php 
    include locate_template('templates/sections/section-close.php');
    ?>
		</section>
<section id="newposts" class="wrap wrap--content wrap--form wrap--shadow wrap--hidden js-section">
	<h3 class="title title--section">Crear artículo</h3>
	<form method="POST" action="">
		<?php 
wpdc_the_input_text('post_name', '', 'Título', 'Título');
?>

		<?php 
wpdc_the_input_text('post_subtitle', '', 'Subtítulo', 'Subtítulo');
?>

		<?php 
wpdc_the_input_textarea('description', '', 'Contenido');
?>

		<?php 
wpdc_the_submit('updatesection', 'newposts', '', '', 'Publicar artículo');
?>

		<?php 
include locate_template('templates/sections/section-close.php');
?>
  	</form>
</section>
<section id="createfee" class="wrap wrap--content wrap--shadow wrap--form wrap--hidden js-section">
  <h3 class="title title--section">Crea cuota</h3>
  <form method="POST" action="">
	  <?php 
wpdc_the_input_text('fee_name', '', 'Nombre de la cuota', 'Curso 2016/2017');
?>

	  <?php 
wpdc_the_input_number('fee_quantity', '', 'Cantidad', 0, 999);
?>

	  <?php 
wpdc_the_input_date('fee_date_start', '', 'Inicio');
?>

	  <?php 
wpdc_the_input_date('fee_date_end', '', 'Fin');
?>

	  <?php 
wpdc_the_submit('updatesection', 'newfee', '', '', 'Crear cuota');
?>

	  <?php 
include locate_template('templates/sections/section-close.php');
?>
  </form>
</section>
  <section class="wrap wrap--content wrap--form wrap--shadow wrap--authordata">
  	<h3 class="title title--section">Datos de asociado</h3>

    <?php 
wpdc_the_input_text('dbem_dnie', esc_attr(get_the_author_meta('dbem_dnie', $user->ID)), 'DNI', '12345678T');
?>
    
    <?php 
wpdc_the_input_text('bornday', esc_attr(get_the_author_meta('bornday', $user->ID)), 'Fecha de nacimiento', 'TODO');
?>

    <?php 
wpdc_the_input_text('dbem_phone', esc_attr(get_the_author_meta('dbem_phone', $user->ID)), 'Teléfono', 'TODO');
?>

    <?php 
wpdc_the_input_text('dbem_address', esc_attr(get_the_author_meta('dbem_address', $user->ID)), 'Dirección', 'TODO');
?>

    <?php 
wpdc_the_input_text('titulacion', esc_attr(get_the_author_meta('titulacion', $user->ID)), 'Estudios', '');
?>

    <?php 
wpdc_the_input_text('centro_de_estudios', esc_attr(get_the_author_meta('centro_de_estudios', $user->ID)), 'Centro de estudios', '');
?>

  </section>
<section id="setbankaccount" class="wrap wrap--content wrap--shadow wrap--form wrap--hidden js-section">
  <h3 class="title title--section">Configuración de cuentas</h3>
  <form method="POST" action="">
	  <h3 class="sep">Cuenta bancaria</h3>
	  <p class="help help--section">Especifica a los usuarios de tu sitio dónde hacer los ingresos bancarios.</p>
	  <?php 
wpdc_the_input_text('bank_account', get_option("bank_account"), 'Código cuenta bancaria', 'IBAN ES 01 0123 0123 01 0123456789');
?>
	  
	  <h3 class="sep">Paypal</h3>
	  <p class="help help--section">Cuenta donde se harán los ingresos puntuales.</p>
	  <?php 
wpdc_the_input_email('paypal_account', get_option("paypal_account"), 'Email usuario Paypal', '*****@*****.**');
?>
	  
	  <?php 
wpdc_the_input_text('paypal_button_fee', get_option("paypal_button_fee"), 'Código botón PayPal pagar cuota (en desarrollo)', 'X12345A');
?>

	  <?php 
wpdc_the_submit('updatesection', 'banksaccount', '', '', 'Actualizar datos');
?>
  </form>
  
  <?php 
include locate_template('templates/sections/section-close.php');
?>
</section>
  <section class="wrap wrap--content wrap--form wrap--shadow wrap--authornetworks">
    <h3 class="title title--section">Redes sociales</h3>

    <?php 
wpdc_the_input_text('facebook', get_user_meta($user->ID, facebook, true), 'Usuario de facebook', 'usuario');
?>

    <?php 
wpdc_the_input_text('twitter', get_user_meta($user->ID, twitter, true), 'Usuario de twitter', 'usuario');
?>
    
    <?php 
wpdc_the_input_text('linkedin', get_user_meta($user->ID, linkedin, true), 'Url de linkedin', 'http://');
?>

    <?php 
wpdc_the_input_text('googleplus', get_user_meta($user->ID, googleplus, true), 'Usuario de Google+', 'usuario');
?>

    <?php 
wpdc_the_input_text('behance', get_user_meta($user->ID, behance, true), 'Usuario de Behance', 'usuario');
?>

    <?php 
wpdc_the_input_text('domestika', get_user_meta($user->ID, domestika, true), 'Usuario de Domestika', 'usuario');
?>

  </section>