Created
February 14, 2017 15:13
-
-
Save anonymous/76b2b48af83d7c4ad2d137137f0a3309 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Plantilla trabaja con nosotros | |
*/ | |
get_header(); | |
$args_puestos_trabajo = array( | |
'post_type' => 'trabajo', | |
'order' => 'ASC', | |
'posts_per_page' => -1, | |
'post_status' => 'publish', | |
'ignore_sticky_posts' => true | |
); | |
// declaro la variable $query_banner para instanciar la clase WP_QUERY | |
// que tendra almacenada como parametro $args_puestos_trabajo. | |
$query_puestos_trabajo = new WP_QUERY( $args_puestos_trabajo ); | |
?> | |
<!-- Loader--> | |
<div class="screen-loader"> | |
<div class="loading"> | |
<span class="loader_span"> | |
<span class="loader_right"></span> | |
<span class="loader_left"></span> | |
</span> | |
</div> | |
<div class="sl-top"></div> | |
<div class="sl-bottom"></div> | |
</div> | |
<!-- Loader end--> | |
<div class="l-theme"> | |
<?php include "menu-acosa.php" ?> | |
<!--cabecera--> | |
<div class="wrap-content"> | |
<article class="b-post b-post-full clearfix"> | |
<div class="b-title-page b-title-page_w_bg"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-xs-12"> | |
<div class="b-title-page__label color-primary">Déjanos tu CV</div> | |
<h1 class="b-title-page__title shuffle">Trabaja con Nosotros</h1> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- end b-title-page--> | |
<div class="container"> | |
<article class="b-post b-post-full-2 clearfix"> | |
<div class="entry-main"> | |
<div class="entry-content"> | |
<div class="row"> | |
<div class="col-md-8 col-md-offset-2"> | |
<?php | |
// si tiene post | |
if( $query_puestos_trabajo->have_posts() ): | |
$i = 1; | |
// inicio el bucle while para mostrar la lista de puestos de trabajo | |
while( $query_puestos_trabajo->have_posts() ): $query_puestos_trabajo->the_post(); | |
$titulo = get_field('titulo_cargo'); | |
$requisitos = get_field('requisitos'); | |
$funciones = get_field('funciones'); | |
$ofrecemos = get_field('ofrecemos'); | |
$zonas = get_field('zonas'); | |
?> | |
<div class="contenido_trabaja"> | |
<h3><?php echo $titulo; ?></h3> | |
<?php | |
if($funciones=="") | |
{ | |
echo ""; | |
} | |
else | |
{ | |
?> | |
<p><strong>Funciones:</strong></p> | |
<?php | |
echo $funciones; | |
?> | |
<?php | |
} | |
?> | |
<p><strong>Requisitos:</strong></p> | |
<?php | |
echo $requisitos; | |
?> | |
<?php | |
if($zonas=="") | |
{ | |
} | |
else | |
{ | |
?> | |
<p><strong>Zonas:</strong></p> | |
<?php | |
echo $zonas; | |
?> | |
<?php | |
} | |
?> | |
<p><strong>Ofrecemos:</strong></p> | |
<?php | |
echo $ofrecemos; | |
?> | |
<p><strong>Ingresa tu CV:</strong></p> | |
<p></p> | |
<div id="contact_form_<?php echo $i; ?>"> | |
<form id="frmSubir_<?php echo $i; ?>" method="post" enctype="multipart/form-data"> | |
<div id="contact_results_<?php echo $i; ?>"></div> | |
<input type="hidden" name="idx[<?php echo $i; ?>]" value="<?php echo $i; ?>" /> | |
<input type="hidden" name="titulo_trabajo" value="<?php echo $titulo; ?>" /> | |
<table border="0" cellspacing="0" cellpadding="2"> | |
<tbody> | |
<tr> | |
<td><input type="file" name="cv_file"></td> | |
<td><input type="submit" class="btn btn-primary btn-effect submit_btn_enviar" value="Enviar"></td> | |
</tr> | |
</tbody> | |
</table> | |
</form> | |
</div> | |
</div> | |
<div class="post-border"></div> | |
<?php | |
$i++; | |
endwhile; | |
wp_reset_postdata(); | |
endif; | |
?> | |
</div> | |
</div> | |
</div> | |
</div> | |
</article> | |
</div> | |
</article> | |
<?php | |
get_footer(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment