<?php
/**
 * @file
 * Returns the HTML for a node.
 *
 * Complete documentation for this file is available online.
 * @see https://drupal.org/node/1728164
 */

$img_path = isset($node->field_hero_image['und'][0]['uri']) ? $node->field_hero_image['und'][0]['uri'] : NULL;
$img_url = file_create_url($img_path);
//dpm($content);
?>

<article class="<?php print $classes; ?> clearfix node-<?php print $node->nid; ?>"<?php print $attributes; ?>>

  <?php if ($title_prefix || $title_suffix || $display_submitted || $unpublished || $preview || !$page && $title): ?>
    <header>
      <?php print render($title_prefix); ?>
      <?php if (!$page && $title): ?>
        <h2<?php print $title_attributes; ?>><a class="" href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
      <?php endif; ?>
      <?php print render($title_suffix); ?>

      <?php if ($display_submitted): ?>
        <p class="submitted">
          <?php print $user_picture; ?>
          <?php print $submitted; ?>
        </p>
      <?php endif; ?>

      <?php if ($unpublished): ?>
        <mark class="watermark"><?php print t('Unpublished'); ?></mark>
      <?php elseif ($preview): ?>
        <mark class="watermark"><?php print t('Preview'); ?></mark>
      <?php endif; ?>
    </header>
  <?php endif; ?>
    <div class="hero-wrapper clearfix">
        <div class="hero-left">
            <div class="hero-title">
                <?php print isset($node->field_hero_title['und'][0]['value']) ? $node->field_hero_title['und'][0]['value'] : ""; ?>
            </div>
            <div class="hero-body">
                <?php print isset($node->field_hero_body['und'][0]['value']) ? $node->field_hero_body['und'][0]['value'] : ""; ?>
            </div>
        </div>
        <img src="<?php print $img_url;?>">

    </div>

    <?php print render($content['field_event_callout']); ?>


</article>
