<?php
/**
 * Template for displaying the single content
 *
 * This template must be called from inside the loop.
 *
 * @author jason.xie@victheme.com
 *
 */
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('single clearfix'); ?>>

  <?php if (VTCore_Zeus_Utility::getShow('full', 'title')) : ?>
    <header>
      <h1 class="post-title element-title title-large">
        <?php the_title(); ?>
      </h1>
    </header>
  <?php endif; ?>

  <?php if (VTCore_Zeus_Utility::getShow('full', 'tags')) : ?>
    <?php the_tags('<div class="post-tags"><span class="post-single-category">' . __('Tagged in', BASE_THEME) . ' </span><span class="text-light">', ', ', '</span></div>'); ?>
  <?php endif; ?>

  <?php if (has_post_thumbnail() && !post_password_required() && VTCore_Zeus_Utility::getShow('full', 'image')) : ?>

    <?php list($source, $width, $height) = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full'); ?>

    <figure
      class="post-thumbnail animated in fadeInRight startblank scroll-animated"
      data-animation="animated in fadeInRight startblank"
      data-aspect="true"
      data-aspect-max-width="<?php echo esc_attr($width); ?>"
      data-aspect-max-height="<?php echo esc_attr($height); ?>">

      <?php echo wp_kses_post(get_the_post_thumbnail($post->ID, 'full')); ?>

    </figure>
  <?php endif; ?>


  <?php if (VTCore_Zeus_Utility::getShow('full', 'content')) : ?>
    <div class="post-content">
      <?php the_content(); ?>
    </div>
  <?php endif; ?>


  <?php if (VTCore_Zeus_Utility::getShow('full', 'social')) : ?>
    <div class="post-social text-left">
      <span
        class="post-social-text"><?php echo __('Share this post', BASE_THEME); ?></span>
      <?php $social = new VTCore_Wordpress_Element_WpSocialShare(); ?>
      <?php echo $social->render(); ?>
    </div>
  <?php endif; ?>

</article>
