<?php defined('ABSPATH') or die('No Script Cuddies');
/*
Template Name: Trabalhos
*/
get_header();
$img=(wp_get_attachment_image_src(get_post_thumbnail_id())!==false)?wp_get_attachment_image_src(get_post_thumbnail_id(),'large'):wp_get_attachment_image_src(get_post_thumbnail_id(get_bloginfo('page_on_front')),'full');
?>
<div class="coloured-madness-cast">
	<div class="container">
		<div class="spacer-85"></div>
		<div class="cast-container">
			<div class="cast-tabs row">
				<h3 align="center"><?=the_title();?></h3>
			</div>
		</div>
		<div class="cast-container row row-siblings-container">
			<div class="cast-tabs-container col-xs-12">
				<?php
				$args=array('post_type'=>'job','posts_per_page'=>-1);
				$wpq=new WP_Query($args); 
				if($wpq->have_posts()):
					while($wpq->have_posts()):
						$wpq->the_post();
						?>
						<div class="cast-tab row active" data-cast-tab="<?=$t['term']['slug']?>" id="<?=$t['term']['slug']?>_cast" class="row">
							<div class="col-xs-12 col-md-6 col-lg-4 profile_img_container">
								<img src="<?php the_post_thumbnail_url(get_the_id(),'large');?>" width="100%;">
								<?php if( is_user_logged_in()) {
									
									    edit_post_link(__('edit','portfolio_madness'), '', '');
									
									}?>
							</div>
							<div class="col-xs-12 col-md-6 col-lg-4">
								<h4><?php the_title();?></h4>
								<hr>
								<?php the_content();?>
								<hr>
								<div class="">
									<a class="button" href="<?=get_field('link')['url']?>" target="_BLANK">
										<?=__('Go To','portfolio_madness');?>
									</a>
								</div>
							</div>
							<div class="col-xs-12 col-md-6 col-lg-4">
								<div class="row">
									<div class="col-xs-12">
										
									</div>
								</div>
								<?=get_job_description();?>
							</div>
						</div>
						<?php
					endwhile;
				endif;
				?>
			</div>
		</div>
	</div>
</div>
<?php
get_footer();

