<?php
/**
 * Shows a simple single post
 *
 * @package Omega
 * @subpackage Frontend
 * @since 1.0
 *
 * @copyright (c) 2014 Oxygenna.com
 * @license http://wiki.envato.com/support/legal-terms/licensing-terms/
 * @version 1.12.1
 */
$src = '';
if( has_post_thumbnail() ) {
    $attachment = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'medium' );
    if ( isset( $attachment[0] ) ) {
        $src = 'style="background-image: url(' . $attachment[0] . ')"';
    }
}
?>
<article id="post-<?php the_ID(); ?>" class="post-related-post" <?php echo $src; ?>)>
    <h4>
        <a href="<?php echo esc_url( strip_tags( $post->post_content ) ); ?>" target="_blank">
            <?php the_title(); ?>
        </a>
        <small>
            <?php _e('by', 'omega-td' ); ?>
            <?php the_author(); ?>
        </small>
    </h4>
</article>