<?php 




function our_team() {
?>
<ul class="bxslider">
        <?php
			$args = array (
					'post_type'=>'testimonial',
					'posts_per_page'=>-1,
					'post_status' =>'publish',
					'order' => 'ASC'
					);
						$team = new WP_Query($args);
						if($team->have_posts()){ ?>
						<?php
							while($team->have_posts()){
								$team->the_post();
						?>
                        <li>
						<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 team-section home-team">
							<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 team-text hidden">
                                    <h4><?php the_title(); ?> </h4>
                                    <span><?php echo the_field('designation_or_others');?> </span><p><?php echo wp_trim_words( get_the_content() ,15 ,  '' ); ?><?php $content = get_the_excerpt(); echo mb_strimwidth($content, 0, 194, '.');?><a class="" href="<?php bloginfo('url'); ?>/team/"><span> Read more ...</span></a></p>
                                    <p><a class="hidden small-btn" href="<?php bloginfo('url'); ?>/team/">Read more ...</a></p>
                                </div>
                                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 team-text">
                                	<?php the_content(); ?>
                                </div>
                                <div class="col-lg-12 col-sm-12 col-md-12 col-xs-12 team-image no-padding">
                                    <?php the_post_thumbnail('full', array('class'=>'img-responsive') ); ?>
                                    <h6>BY <?php the_title(); ?></h6>
                                    <p class="deignation"><?php the_field('designation'); ?></p>
                                </div>
                            </div>
						</div>
                        </li>
						<?php }
						}
						wp_reset_query();
						?>
                        </ul>
<?php
}

function our_blog() {
?>
<!-- Blog Wrap Area Start -->
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 no-padding blog-wrap">
        <?php
			$args = array (
					'post_type'=>'post',
					'posts_per_page'=>1,
					'post_status' =>'publish',
					'order' => 'ASC'
					);
						$team = new WP_Query($args);
						if($team->have_posts()){ ?>
						<?php
							while($team->have_posts()){
								$team->the_post();
						?>
							<!-- Blog Post Item Area Start -->
                            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 blog-item">
                            	<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                	<?php the_post_thumbnail(array(441,201), array('class'=>'alignleft')); ?>
                                	<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
                                    <?php /*?><p><?php echo wp_trim_words( get_the_content() ,15 ,  '' ); ?></p><?php */?>
                                    <?php the_excerpt(); ?>
                                    <p style="text-align:right;"><a class="readmore-link" href="<?php the_permalink(); ?>">Read more &raquo;</a></p>
                                    <ul class="hidden">
                                    	<li><i class="fa fa-calendar" aria-hidden="true"></i> <?php echo get_the_date('d/m/Y'); ?></li>
                                        <?php /*?><li><i class="fa fa-comment" aria-hidden="true"></i> 0 Comments<?php wp_count_comments(); ?></li><?php */?>
                                        <li><i class="fa fa-eye" aria-hidden="true"></i> <?php echo do_shortcode('[post-views]'); ?></li>
                                    </ul>
                                </div>
                            </div><!-- Blog Post Item Area End -->
                        
						<?php }
						}
						wp_reset_query();
						?>
                        </div><!-- Blog Wrap Area End -->
<?php
}
function our_newsletter() {
?>
<div class="tnp tnp-subscription">
<form method="post" action="http://mydev786.com/2018/reality-checkup/?na=s" onsubmit="return newsletter_check(this)">
<input class="tnp-email" type="email" name="ne" placeholder="your email address" required>
<input class="tnp-submit" type="submit" value="Sign Up"/>
</form>
</div>
<?php
}


function our_services() {
?>
<ul class="slick_slidr">
        <?php
			$args = array (
					'post_type'=>'service',
					'posts_per_page'=>-1,
					'post_status' =>'publish',
					'category_name' => 'direction_de_travaux',
					'order' => 'ASC'
					);
						$team = new WP_Query($args);
						if($team->have_posts()){ ?>
						<?php
							while($team->have_posts()){
								$team->the_post();
						?>
                        <li>
                        	<div class="row">
                        		<div class="col-xs-12">
									<figure>
										<?php the_post_thumbnail('full',array('class' => 'img-responsive'));?>
									</figure>
									<div class="slidr_txt">
										<h3>
											<a href="<?php the_permalink();?>">
												<?php the_title();?>
											</a>
											</h3>
									</div><!-- end of div slidr_txt -->
								</div><!-- end of div col-xs-12 -->
							</div><!-- end of div row -->
                        </li>
						<?php }
						}
						wp_reset_query();
						?>
                        </ul>
<?php
}