<article class="cf">
    <div class="image-holder">
        <?php if(get_the_post_thumbnail($post->ID,'course-thumba')){
            echo get_the_post_thumbnail($post->ID,'course-thumba');
        } else{
            echo'<img src="http://placehold.it/122x100/ece6d9/8d7a65&amp;text=No+image" alt>';
        }?>
        <div class="course-tag">
            <?php $tags_terms = get_the_terms($post->ID, 'course-category');
                if($tags_terms){
                    foreach($tags_terms as $tag){
                        echo esc_attr($tag->name);
                    }
                }
            ?>
        </div>
    </div>

    <h3><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3>
    <span class="time"><?php echo "<strong>".__('Duration:','aletheme')."</strong> ".esc_attr(ale_get_meta('courseadditionalduration')); ?></span><br />
    <span class="time"><strong><?php _e('Cost:','aletheme'); ?></strong></span> <span class="course-price"><strong><?php echo esc_attr(ale_get_meta('courseadditionalprice')) ?></strong> <?php _e('pet','aletheme'); ?> <?php echo esc_attr(ale_get_meta('courseadditionaldate')) ?></span>
    <?php echo ale_trim_excerpt(40); ?>
    <a href="<?php the_permalink(); ?>"><?php _e('Attend a course', 'aletheme'); ?></a>
</article>