function kvarteret_event_detailbox($rawEvent, eventsCalendarClient $client = null)
{
    $event = new DEW_event($rawEvent);
    $startTime = date('H:i', $event->getStartTimestamp());
    $duration = $event->getFormattedDuration();
    $googleCalUrl = DEW_tools::createGoogleCalUrl($rawEvent);
    $arranger = null;
    if (!is_null($client)) {
        $arranger = $client->arranger($rawEvent->arranger_id)->data[0];
    }
    ?>

<div class="kvarteret_event_wrapper">

	<?php 
    if (isset($arranger->logo->id)) {
        ?>
	<img src="<?php 
        echo DEW_tools::getPictureUrl($arranger->logo, 200, 300);
        ?>
" alt="<?php 
        echo $arranger->logo->description;
        ?>
" class="arranger_logo" />
	<?php 
    }
    ?>

	<?php 
    if ($event->hasFestival()) {
        ?>
    <span><?php 
        _e('Part of festival', 'dak_events_wp');
        ?>
</span>
    <a href="<?php 
        echo $event->getFestivalUrl();
        ?>
" class="festival_link"><?php 
        echo $event->getFestivalTitle();
        ?>
</a>
    <p>(<?php 
        echo date('d.m.Y', $event->getFestivalStartTimestamp());
        ?>
 - <?php 
        echo date('d.m.Y', $event->getFestivalEndTimestamp());
        ?>
)</p>
	<?php 
    }
    ?>

    <?php 
    printf(__('%s in %s', 'dak_events_wp'), $event->getCategory(), $event->getLocation());
    ?>
<br />
    <?php 
    echo __('Starts:', 'dak_events_wp') . ' ' . $duration;
    ?>
<br />
    <?php 
    echo __('Arranger:', 'dak_events_wp') . ' ' . $event->getArranger();
    ?>

	<?php 
    if ($event->hasCoverCharge()) {
        ?>
	
    <h2><?php 
        _e('Covercharge', 'dak_events_wp');
        ?>
</h2>
	<?php 
        echo $event->getCoverCharge();
        ?>
<br />
	<?php 
    }
    ?>

	<h2><?php 
    _e('Calendar', 'dak_events_wp');
    ?>
</h2>

    <a href="<?php 
    echo $event->getICalUrl();
    ?>
">
      <?php 
    _e('Add to calendar (iCal)', 'dak_events_wp');
    ?>
    </a><br />

    <a href="<?php 
    echo $googleCalUrl;
    ?>
" target="_blank">
      <?php 
    _e('Add to Google calendar', 'dak_events_wp');
    ?>
    </a>
</div>

	<?php 
}