<?php
/**
 * Building the logo element for the theme
 * based on selected schema or user configuration.
 *
 * @author jason.xie@victheme.com
 */
?>
<div id="logo"
     class="region vertical-target <?php echo VTCore_Zeus_Utility::getColumnSize('logo'); ?>"
     data-vertical-offset="0">

  <?php extract(VTCore_Zeus_Utility::getLogo()); ?>

  <?php if (!empty($image)) : ?>
    <a class="home-link" href="<?php echo esc_url(home_url('/')); ?>"
       title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>"
       rel="home">

      <img class="main-logo" src="<?php echo esc_url($image); ?>"
           alt="<?php echo __('Logo for ', BASE_THEME) . esc_attr(get_bloginfo('name', 'display')); ?>"
        <?php if (!empty($width)) : ?> width="<?php echo esc_attr($width); ?>"<?php endif; ?>
        <?php if (!empty($height)) : ?> height="<?php echo esc_attr($height); ?>"<?php endif; ?>
        />

    </a>
  <?php endif ?>

  <?php if (!empty($text)) : ?>
    <div class="branding">
      <h1 class="site-title">

        <a class="home-link" href="<?php echo esc_url(home_url('/')); ?>"
           title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>"
           rel="home"><?php echo wp_kses_post($text); ?></a>

      </h1>
      <?php if (!empty($slogan)) : ?>
        <div class="site-description">
          <a class="home-link" href="<?php echo esc_url(home_url('/')); ?>"
             title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>"
             rel="home">

            <?php echo wp_kses_post($slogan); ?>

          </a>
        </div>
      <?php endif; ?>
    </div>
  <?php endif; ?>

</div>
