<?php    $data = array();
$count = 1; 
$query_args = array('post_type' => 'sh_services' , 'showposts' => $num , 'order_by' => $sort , 'order' => $order);

if( $cat ) $query_args['services_category'] = $cat;
$query = new WP_Query($query_args) ;  

			if($query->have_posts()):

				while ($query->have_posts()) : $query->the_post();
					
					$meta = _WSH()->get_meta();

					$url = sh_set( $meta, 'single_link' );
					$limit = ( $excerpt ) ? $excerpt : 10;

					ob_start(); ?>

					<li class=" wow fadeInLeft" data-wow-delay="0s">
						
						<span class="fbox-icon">
							<i class="<?php echo esc_attr(sh_set( $meta, 'fontawesome')); ?>"></i>
						</span>
						<?php if( $url ): ?>
							<h3 class="uppercase"><a href="<?php echo esc_url($url); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
						<?php else: ?>
							<h3 class="uppercase"><?php the_title(); ?></h3>
						<?php endif; ?>

						<?php echo _sh_trim(get_the_content(), $limit); ?>
					
					</li>
					
					<?php $data[get_the_id()] = ob_get_clean();
				
				endwhile;

			endif; 
			
wp_reset_postdata();?>

<?php ob_start(); ?>
					
			<div class="padding">

				<div class="container">
					<header class="header-section wow fadeInDown" data-wow-duration="1.5s">
						<h2><?php echo balanceTags($title); ?></h2>
					</header> <!-- / .header-section -->

					<?php if( $data && count($data) > 1 ) $split = array_chunk($data, round(count($data)/2));
					else $split[0] = $data; ?>

					<div class="row">

						<div class="col-md-4">
							<ul class="feature-list left">
							
								<?php if( isset($split[0]) ) echo implode("\n", $split[0]); ?>

							</ul><!-- / .feature-list -->
						</div><!-- / .col-md-4 -->

						<div class="col-md-4 visible-md visible-lg wow fadeIn" data-wow-duration="1.5s">
							<img alt="" src="<?php echo get_template_directory_uri(); ?>/images/device-2.png" style="margin-top: -12px;">
						</div><!-- / .col-md-4 -->

						<div class="col-md-4">
							<ul class="feature-list">
							
								<?php if( isset($split[1]) ) echo implode("\n", $split[1]); ?>							

							</ul><!-- / .feature-list -->
						</div><!-- / .col-md-4 -->

					</div> <!-- / .row -->
				</div>
				
			</div>
<?php return ob_get_clean();