<?php $options = get_option('maestro'); ?>

<?php

    if (has_post_thumbnail()) {
        $thumb = get_post_thumbnail_id();
        $img_url = wp_get_attachment_url($thumb, 'full'); //get img URL
    } else {
        $img_url = get_template_directory_uri() . '/img/no-image-large.jpg';
    }
    $article_image = aq_resize($img_url, 780, 320, true); //resize & crop img
?>


<div class="project one-photo clearfix">
    <div class="eight columns">
        <div class="entry-thumb">
            <img src="<?php echo $article_image ?>" alt="<?php the_title(); ?>"/>
                                    <span class="hover-box">
                                        <a href="<?php the_permalink(); ?>" class="more-link"> </a>

										<?php if ( get_post_meta( get_the_ID(), 'folio_embed', true ) ) :
											$img_url = get_post_meta( get_the_ID(), 'folio_embed', true );
										endif; ?>
										<a href="<?php echo $img_url; ?>" class="zoom-link"> </a>
                                    </span>
        </div>
    </div>
    <div class="four columns">
        <h4 class="box-name"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>

        <span class="dopinfo"><?php get_template_part('templates/folio', 'terms'); ?></span>

        <div class="entry-content">
            <?php the_excerpt();?>
        </div>

        <a href="<?php the_permalink();?>" class="button"><?php echo __('Read details', 'crum'); ?></a>
    </div>
</div>
