if ($content['upcoming_events']) {
    ?>
        <?php 
    print render($content['upcoming_events']);
    ?>
      <?php 
}
?>
    </div>

    <?php 
if ($content['key_documents']['docs']) {
    ?>
      <h3 data-collapsible="key-information">
        <?php 
    print _svg('icons/key-information', array('id' => 'key-information-icon', 'alt' => t('An icon representing a key with the letter "I" in it.')));
    ?>
        Key Information
      </h3>
      <section id="key-information">
        <?php 
    print render($content['key_documents']);
    ?>
      </section>
    <?php 
}
?>

  </div>

</section>
 <?php 
    print $doc['is_file_class'];
    ?>
">
      <div class="image-card">
        <?php 
    if ($doc['is_link']) {
        ?>
          <?php 
        print l(_svg('icons/external', array('class' => 'document-external', 'alt' => 'Icon for an external resource')), $doc['link_url'], array('html' => TRUE, 'attributes' => array('target' => '_blank')));
        ?>
        <?php 
    } elseif ($doc['is_file']) {
        ?>
          <?php 
        print l(_svg('icons/file', array('class' => 'document-external', 'alt' => 'Icon for an external resource')), $doc['link_url'], array('html' => TRUE, 'attributes' => array('target' => '_blank')));
        ?>
        <?php 
    }
    ?>
      </div>

      <div class="information-card">
        <?php 
    print $doc['link'];
    ?>
        <?php 
    print $doc['description'];
    ?>
      </div>
<?php

/**
 * Template file for the "no upcoming event" block.
 */
?>

<section id="shelter-calendar">
  <div id="box-calendar">
    <?php 
print _svg('icons/pin', array('id' => 'calendar-pin-icon', 'alt' => t('An icon representing a calendar with a pin on it.')));
?>
    <div id="date-calendar">No upcoming event</div>
    <div class="information-card">
      <a class="event" href="<?php 
print $all_events_link;
?>
">See past events</a>
    </div>
  </div>
  <a class="see-all" href="<?php 
print $all_events_link;
?>
">All calendar events</a>
</section>
        </div>
        <?php 
/* print partial('bandwidth_selector'); */
?>
      </div>
    </section>

    <section id="site-branding" class="clearfix">
      <div class="page-margin clearfix">

        <a id="logo-shelter-cluster" href="<?php 
print $base_url;
?>
">
          <?php 
print _svg('logo-global-shelter-cluster', array('id' => 'shelter-cluster', 'alt' => 'Global Shelter Cluster - ShelterCluster.org - Coordinating Humanitarian Shelter'));
?>
        </a>

        <?php 
if (isset($user_login) && FALSE) {
    /* Do not use login block for now */
    ?>
          <?php 
    print partial('compact_user_login', array('user_login' => $user_login));
    ?>
        <?php 
}
?>

        <div id="user-profile-container" class="clearfix">
<?php

/**
 * @file
 * Template file for hot responses list.
 */
?>

<section id="active-responses" class="clearfix">
  <h1><?php 
print t('Featured Responses');
?>
</h1>
  <ul class="hot-responses">
    <?php 
foreach ($responses as $id => $response) {
    ?>
      <li class="hot-responses-link">
        <?php 
    print $response['link'];
    ?>
        <?php 
    print _svg('icons/' . $response['type']->icon_name, array('class' => $response['type']->icon_class, 'alt' => $response['type']->name . ' icon'));
    ?>
      </li>
    <?php 
}
?>
  </ul>
</section>
<div id="bandwidth-selector">
  <?php 
print _svg('icons/signal', array('id' => 'bandwidth-selector-icon', 'alt' => 'Bandwidth indication icon'));
?>
  <a href="" class="active">Low bandwidth environment</a>
  <span>/</span>
  <a href="">Switch to high</a>
</div>
/**
 * Implements hook_preprocess_user_profile().
 */
function shelter_preprocess_user_profile(&$variables)
{
    if (isset($variables['elements']['#view_mode'])) {
        $view_mode = $variables['elements']['#view_mode'];
        $variables['theme_hook_suggestions'][] = 'user_profile__' . $view_mode;
        $account = $variables['elements']['#account'];
        $variables['user_profile']['name']['#prefix'] = '<span class="name">';
        $variables['user_profile']['name']['#markup'] = $account->name;
        $variables['user_profile']['name']['#suffix'] = '</span>';
        $variables['user_profile']['email']['#markup'] = l($account->mail, 'mailto:' . $account->mail, array('class' => array('email'), 'absolute' => TRUE));
        if (empty($account->picture)) {
            $variables['user_profile']['user_picture']['#markup'] = _svg('icons/person', array('class' => 'person-avatar', 'alt' => 'Team member\'s people picture missing.'));
        } else {
            $variables['user_profile']['user_picture']['#markup'] = theme('image_style', array('style_name' => 'thumbnail', 'path' => $account->picture->uri, 'width' => 100, 'height' => 100, 'alt' => t('@name\'s picture', array('@name' => $account->name))));
        }
    }
}