title: Display different post-typ if the featured image exist or not
body: <p>Hey I have a problem with my php code in wordpress. I want to have a different section class if there is a image or not. So I can make the text central if there is non image and make it float to right if there is. </p>
  
  <pre><code>&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;
  
  &lt;?php if(has_post_thumbnail() ); ?&gt;
      &lt;section class="post"&gt;
          &lt;?php the_post_thumbnail('full'); ?&gt;
          &lt;div class="posts-data"&gt;
              &lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
              &lt;p&gt;&lt;?php the_excerpt(); ?&gt;&lt;/p&gt;
          &lt;/div&gt;
      &lt;/section&gt;
  &lt;?php else: ?&gt;
      &lt;section class="post-no-img"&gt;
          &lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
          &lt;p&gt;&lt;?php the_excerpt(); ?&gt;&lt;/p&gt;
      &lt;/section&gt;
  &lt;?php endif; ?&gt;
  
  &lt;?php endwhile; else: ?&gt;
  
  &lt;p&gt;There are no post or pages&lt;/p&gt;
  
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>I get this worning:</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected 'else' (T_ELSE) in C:\xampp\htdocs\Fortagsida\wp-content\themes\foretagblog\front-page.php on line 12</p>
  </blockquote>
  
  <p>Line 12 is .</p>