<?php

global $newsArticle;
?>
<article class="entry">
    <div class="entry-header">
        <?php the_title( '<h1 class="news_title entry-title">', '</h1>' );?>
        <h2><?php echo $newsArticle->get_sub_title()?></h2>
        <div class="entry-meta">
            <span class="posted-on">
                <time><?php echo get_the_date()?></time>
            </span>
        </div>
    </div>
    <div class="entry-content">
        <div class="entry-content zbr-media-container">
            <?php foreach($newsArticle->get_media() as $media): ?>
                <figure>
                    <img src="<?php echo $media->getThumbnail()?>" data-width="<?php echo $media->getWidth()?>" data-height="<?php echo $media->getHeight()?>" data-title="<?php echo $media->getDescription()?>"/>
                </figure>
            <?php endforeach; ?>
        </div>

        <?php the_content()?>

        <?php the_taxonomies()?>
    </div>

<?php do_action('zbr_after_single_news');?>
</article>
