<?php get_header(); ?>

<?php $technews_featured = get_posts('category_name=Featured');?>

  <section class="sixteen columns main-content">

 <!--      <div id="hero"> -->

          <?php  //  echo do_shortcode('[layerslider id ="1"]'); ?>
 <!--  
      </div> -->

      <div class="clearfix"></div>

        <div class="bannerad ad728">
          <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
          <!-- BCDB 728 5/4/140 -->
            <ins class="adsbygoogle"
                 style="display:inline-block;width:728px;height:90px"
                 data-ad-client="ca-pub-4460186434212896"
                 data-ad-slot="1925680212"></ins>
              <script>
                (adsbygoogle = window.adsbygoogle || []).push({});
              </script>
        </div>

        <div class="bannerad ad468">
          <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
          <!-- NB_468_Bot -->
          <ins class="adsbygoogle"
               style="display:inline-block;width:468px;height:60px"
               data-ad-client="ca-pub-4460186434212896"
               data-ad-slot="9164414377"></ins>
          <script>
            (adsbygoogle = window.adsbygoogle || []).push({});
          </script>
        </div>

        <div class="bannerad ad320">
          <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
          <!-- NB_320_Bot -->
            <ins class="adsbygoogle"
                 style="display:inline-block;width:320px;height:100px"
                 data-ad-client="ca-pub-4460186434212896"
                 data-ad-slot="1641147577"></ins>
          <script>
            (adsbygoogle = window.adsbygoogle || []).push({});
          </script>
        </div>

    </section>
    

<section class="eleven columns main-content">
    

	<?php if(!is_paged()): ?>

    <?php 

      if(!empty($technews_featured)){

      ?>

      <section class="slider">

      <?php get_template_part('slider','index'); ?>

      </section>

    <?php } ?>

    <h1 class="latest-post"><b>Big Cartoon News</b></h1>

	<?php endif; ?>

		<?php get_template_part('loop',''); ?>

</section>

<?php
if ( is_home() || is_front_page() ) { ?>

<?php get_sidebar('home'); ?>

<?php } else {
?>


<?php get_sidebar(); ?>

<?php }
?>

<div class="clearfix"></div>



<?php get_footer(); ?>

