<?php
/**
 * The template for displaying Portfolio Archive pages
 */

get_header(); ?>

<div id="primary" class="content-area portfoliofeed">
    <div id="content" class="site-content" role="main">

        <?php if ( have_posts() ) : ?>
            <?php theguard_hide_portfolio(); ?>

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

                <div class="<?php theguard_case_column_control(); ?> post sell_portf">
                    <div class="pbody">
                        <div class="entry-thumbnail"><?php
                            if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
                                the_post_thumbnail( 'theguard_services' );
                            }
                            ?>
                            <div class="thumbhover"><a href="<?php the_permalink(); ?>" class="more-link"><?php theguard_portfolio_rmore(); ?></a></div>
                        </div>
                        <div class="c_block">
                            <header class="entry-header">
                                <div class="entry-meta">
                                    <?php theguard_entry_meta_short(); ?>
                                </div>
                                <h3 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
                            </header><!-- .entry-header -->
                            <div class="entry-content"><?php the_excerpt(); ?></div>
                        </div>
                    </div>
                </div>
            <?php endwhile; ?>

            <?php theguard_paging_nav(); ?>

        <?php else : ?>
            <?php get_template_part( 'content', 'none' ); ?>
        <?php endif; ?>

    </div><!-- #content -->
</div><!-- #primary -->

<?php get_footer(); ?>
