Search Results: Differentiate posts and pages

<?php if(get_post_type() == 'page'): // Only pages ?>
    <div class="recent_postMetaSingle">
        <img src="https://wordpress.stackexchange.com/questions/31727/<?php bloginfo("template_directory'); ?>/images/eye.png" alt="Views" title="views" />
        <?php print_page_views(get_the_ID('')); ?> 
        <p>This is a static page!</p></div>
<?php elseif(get_post_type() == 'post'): // If not page, Only posts ?>
    <div class="recent_postMetaSingle">
        <img src="https://wordpress.stackexchange.com/questions/31727/<?php bloginfo("template_directory'); ?>/images/eye.png" alt="Views" title="views" />
        <?php print_page_views(get_the_ID('')); ?>
        &nbsp;&nbsp;&nbsp;
        <img src="https://wordpress.stackexchange.com/questions/31727/<?php bloginfo("template_directory'); ?>/images/comments2.png" alt="Comments" title="comments" />
        <?php comments_popup_link('0', '10', '%'); ?> 
    </div>
    <div class="recent_category"><?php the_category(' // ') ?></div>
<?php endif; ?>