 <?php 

/*

Template Name:Home

*/

?>

<?php get_header(); ?>



<?php include('slider.php');?> 



</div><!--close wrapper-->



<div id="content_main">

	<div id="wrapper">

<?php $args = array('post_type' => 'services','showposts' => '3','order' => 'ASC') ;

		$the_query = null;

		$icon = 0;

		$the_query = new WP_Query($args); ?>

		 <?php if($the_query->have_posts()):?>

          <?php while($the_query->have_posts()) : $the_query->the_post();?> 

          		<?php $icon++; ?>

    	<div class="cnt-box">

        

        	<span class="icon<?php echo $icon; ?>">1</span>

            <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>

            <p><?php the_content_limit(120, ""); ?></p>

        </div><!--close cnt-box-->

         <?php endwhile; ?>

                   <?php else:?>

	

         <div class="cnt-box">

        	<span class="icon1">2</span>

            <h2>Seo</h2>

            <p>Gravida nibh vel velit auctor aliquet. Aenean sollicitudin, lorem quis bibendum auctor, nisi elit consequat sem.</p>

        </div><!--close cnt-box-->



         <div class="cnt-box">

        	<span class="icon2">2</span>

            <h2>Professional</h2>

            <p>Gravida nibh vel velit auctor aliquet. Aenean sollicitudin, lorem quis bibendum auctor, nisi elit consequat sem.</p>

        </div><!--close cnt-box-->

        

        <div class="cnt-box">

        	<span class="icon3">3</span>

            <h2>Develop</h2>

            <p>Gravida nibh vel velit auctor aliquet. Aenean sollicitudin, lorem quis bibendum auctor, nisi elit consequat sem.</p>

        </div><!--close cnt-box-->

         <?php endif; ?> 

    </div><!--close wrapper-->

</div><!--close content_main-->



<div id="wrapper">

	<div id="content">

    	<div class="cnt">

        	<div class="left_main">

            <?php while ( have_posts() ) : the_post(); ?>

            	<div class="cnt-left">

               	  <h2><?php the_title(); ?></h2>

                  <?php if(has_post_thumbnail()){?>

                      

                    <span class="frame"></span>

                    <?php } ?>  

                    <p><?php the_content(); ?></p>

                    

                </div><!--close cnt-left--> <?php endwhile; ?>

                

             	<div class="cnt-left">

               	  <h2>From the Blog</h2>

                  <?php $args = array('post_type' => 'post','showposts' => '9');

		$the_query = null;

		$the_query = new WP_Query($args); ?>

		 <?php if($the_query->have_posts()):?>

          <?php while($the_query->have_posts()) : $the_query->the_post();?> 

                    <div class="cnt-box2">

                    	<span class="frame2"><?php the_post_thumbnail('testimonial_image'); ?></span>

                   	  <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>

                      <h3><?php the_time('M d, Y'); ?></h3>

                      <p><?php the_content_limit(80, ""); ?></p>

                  </div><!--close cnt-box2-->

                   <?php endwhile; ?>

                   <?php else:?>



		<div class="cnt-box2">

                    	<span class="frame2"><img src="<?php bloginfo('template_url');?>/images/img3.png" alt="" /></span>

                   	  <h2>Creative Duet - Clean Coded in<br /> HTML5 & CSS3</h2>

                      <h3>March 27, 2012</h3>

                      <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam.</p>

                  </div><!--close cnt-box2-->



		<div class="cnt-box2">

                    	<span class="frame2"><img src="<?php bloginfo('template_url');?>/images/img2.png" alt="" /></span>

                   	  <h2>Creative Duet - Clean Coded in<br /> HTML5 & CSS3</h2>

                      <h3>March 27, 2012</h3>

                      <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam.</p>

                  </div><!--close cnt-box2-->



                  

                    <div class="cnt-box2">

                    	<span class="frame2"><img src="<?php bloginfo('template_url');?>/images/img2.png" alt="" /></span>

                   	  <h2>Creative Duet - Clean Coded in<br /> HTML5 & CSS3</h2>

                      <h3>March 27, 2012</h3>

                      <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam.</p>

                  </div><!--close cnt-box2-->

                  

                    <div class="cnt-box2">

                    	<span class="frame2"><img src="<?php bloginfo('template_url');?>/images/img2.png" alt="" /></span>

                   	  <h2>Creative Duet - Clean Coded in<br /> HTML5 & CSS3</h2>

                      <h3>March 27, 2012</h3>

                      <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam.</p>

                  </div><!--close cnt-box2-->

                  

                    <div class="cnt-box2">

                    	<span class="frame2"><img src="<?php bloginfo('template_url');?>/images/img2.png" alt="" /></span>

                   	  <h2>Creative Duet - Clean Coded in<br /> HTML5 & CSS3</h2>

                      <h3>March 27, 2012</h3>

                      <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam.</p>

                  </div><!--close cnt-box2-->

                  

                   <div class="cnt-box2">

                    	<span class="frame2"><img src="<?php bloginfo('template_url');?>/images/img3.png" alt="" /></span>

                   	  <h2>Creative Duet - Clean Coded in<br /> HTML5 & CSS3</h2>

                      <h3>March 27, 2012</h3>

                      <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam.</p>

                  </div><!--close cnt-box2-->

                   <?php endif; ?> 

                </div><!--close cnt-left-->

            </div><!--close left-main-->

       <?php get_sidebar(); ?>     

           



        </div><!--close cnt-->

    </div><!--close content-->

</div><!--close Wrapper-->

<?php get_footer(); ?>