<% echo $this->placeholder('notifications'); %>
<% if(Registry::isRegistered('fallbackactive')) { %>
Fallback-Hack aktiv! Diese Seite wurde noch nicht überarbeitet und funktioniert womöglich nicht richtig!
<% } %>
<% if(Registry::isRegistered('session') && (Registry::get('session')->obSeen < 1)) { %>
<% } %>
<% if ($this->detection->isMobile() || $this->detection->isTablet()): %>
<% endif %>
<%
/*HasVideo*/
if($this->event && $this->event->getVideoId() && $this->video){
$videoBoxTitle = '
Szene1.TV';
$videoBoxHtml = '
';
}
/* mainBoxHtml */
/* Fyler */
if ($images = $this->images) {
$flyer .= '
';
$flyer .= '
';
$flyer .= '';
}
else{
$flyer = '
';
}
if ($this->event->getPhotoCounter()) {
$js = '';
$mainBoxHtml = $js;
}
/* Microformat - vevent - subpage
* summary, dtstart, location, url, category */
$mainBoxHtml ='
'
. $editIcon
.'
'.$flyer.'
'
. $js_showFlyer
. $html_image_navigation
.'
';
$mainBoxHtml .='
' . $this->event->getStarttime('short+time') . '
@ '.$this->location->getName().'
, '.$this->location->getCity().'
';
$mainBoxHtml .='
';
/* Meetpoint Box */
$meetpointBoxTitle = 'Meetpoint' . ' ('
. $this->meetpointCounter
. ')';
$meetpointBoxTitle = '
' . $meetpointBoxTitle . '';
$meetpointBoxHtml = $this->meetpointUnits;
/* Stats Box */
$statsBoxTitle = 'Statistik';
if ($this->hasAccess) {
if($this->homepage) {
$eventUrls = array();
$url = $this->homepage->getUrl(true);
$currentUrl = $url . '/' . $this->event->getId() . '/statistic';
foreach ($this->events as $event) {
$eventUrls[$url . '/' . $event->getId() . '/statistic'] = $event->getStarttime('date') . ' ' . $event->getName();
}
$eventSwitcher = Szene1_Html_Form_Element::create('select', 'event_switcher', $currentUrl, null,
array('style' => 'width:350px;','onchange' => 'location.href=this.options[this.selectedIndex].value;'));
$eventSwitcher->setOptions($eventUrls);
$statsBoxHtml = '
'
. '
' . 'Statistik von' . ' '
. $eventSwitcher->render(false)
. '
'
. '';
}
$flashVars = array(
"settings_file" => '/ajax/stat/settings/' . $this->type . 'one',
"data_file" => '/ajax/stat/data/' . $this->startDate . '/' . $this->type . 'one/' . $this->id,
"preloader_color" => "#999999"
);
$flashOne = new Szene1_Html_Flash(array(
"file_url" => "/flash/statistic.swf",
"width" => 600,
"height" => 370,
"required_version" => "8",
"flash_vars" => $flashVars,
"element" => 'szene1_flash_statistic_' . $this->type . 'one_' . $this->id
));
$html_event_views = '
'
. 'Besucher gesamt' . ': ' . $this->stats['visitors'] . ' / '
. 'Aufrufe gesamt' . ': ' . $this->stats['views'] . ''
. ''
. ''
. '' . "\n"
. $flashOne
. ' |
';
// meetpoint
if (!$this->meetpointUsers) {
$html_event_comments ='
';
$html_event_comments .= $this->type == 'event' ? 'Noch keine User im Meetpoint eingetragen.': 'Noch keine User als Fans eingetragen.';
$html_event_comments .= '
';
}
else {
// ages
$html_meetpoint_ages = '
';
ksort($this->ages);
$unknown_ages = count($this->meetpointUsers);
foreach ($this->ages as $age => $count) {
if ($age >= 10 && $age <= 60 && $count >= 3) {
$html_meetpoint_ages .= '' . $this->age . ' '.'Jahre'.': | '
. '' . $count . ' '.'User'.' |
';
$unknown_ages -= $count;
}
}
if ($unknown_ages) {
$html_meetpoint_ages .= '' . 'Unbekannt' . ': | '
. ' ' . $unknown_ages . ' '.'User'.' |
';
}
$html_meetpoint_ages .= '
';
// districts
$html_meetpoint_districts = '
';
arsort($this->districts);
$unknown_districts = count($this->meetpointUsers);
foreach ($this->districts as $district => $count) {
if ($district && $count >= 3) {
$html_meetpoint_districts .= '' . $this->districtNames[$district] . ': | '
. ' ' . $count . ' '.'User'.' |
';
$unknown_districts -= $count;
}
}
if ($unknown_districts) {
$html_meetpoint_districts .= '' . 'Unbekannt' . ': | '
. ' ' . $unknown_districts . ' '.'User'.' |
';
}
$html_meetpoint_districts .= '
';
// distances
$html_meetpoint_distances = '
';
ksort($this->distances);
$unknown_distances = count($this->meetpointUsers);
foreach ($this->distances as $distance => $count) {
if ($distance > 0 && $distance < 100 && $count >= 3) {
$html_meetpoint_distances .= '' . ($distance-1) . '0km - ' . $distance . '0km: | '
. ' ' . $count . ' User |
';
$unknown_distances -= $count;
}
}
if ($unknown_distances) {
$html_meetpoint_distances .= '' . 'Unbekannt'.': | '
. ' ' . $unknown_distances . ' '.'User'.' |
';
}
$html_meetpoint_distances .= '
';
// complete table
$html_event_meetpoint = '
'
. '' . ($this->type == 'event' ? 'Meetpoint': 'Fans') . ''
. ' '
. ' ' . 'Alter' . ' | '
. ' ' . 'Bezirke' . ' | '
. ' ' . 'Entfernung' . ' |
'
. ' '
. ' ' . $html_meetpoint_ages . ' | '
. ' ' . $html_meetpoint_districts . ' | '
. ' ' . $html_meetpoint_distances . ' |
';
}
$flashVars = array(
"settings_file" => '/ajax/stat/settings/' . $this->type . 'two',
"data_file" => '/ajax/stat/data/' . $this->startDate . '/' . $this->type . 'two/' . $this->id,
"preloader_color" => "#999999"
);
$flashTwo = new Szene1_Html_Flash(array(
"file_url" => "/flash/statistic.swf",
"width" => 600,
"height" => 370,
"required_version" => "8",
"flash_vars" => $flashVars,
"element" => 'szene1_flash_statistic_' . $this->type . 'two_' . $this->id
));
$html_event_comments = '
'. ($this->type == 'event' ? 'Meetpointeinträge gesamt' : 'Fans gesamt') . ': ' . count($this->meetpointUsers) . ' / '
. 'Kommentare gesamt' . ': ' . $this->comments .''
. ''
. ''
. '' . "\n"
. $flashTwo
. ' |
';
$statsBoxHtml .= $html_event_views . $html_event_meetpoint . $html_event_comments;
}
else {
$html = '
'.Szene1_Translate::_('onlyRegisteredUsers') .'. Hier ein Beispiel:'
. ''
. '
';
$statsBoxHtml = $html;
}
/* BestPic & Voting Box*/
if($this->event->getStarttime('timestamp') < time() && $this->bestPhotos) {
/* BestPic Box */
$photosBoxTitle ='Fotos'.' (' . $this->event->getPhotoCounter().')';
if ($this->bestPhotos || $this->event->getPhotoCounter()) {
$photoTranslate = 'Fotos';
$photographer = 'Fotograf';
$commentsTranslate = 'Postings';
$link = '/event/'.$this->event->getId().'/photo/';
$link_fotos = '/event/'.$this->event->getId().'/photos';
$link_filter = '/event/'.$this->event->getId().'/photos#1&-1';
// $html .='
';
}
else{
// $html = '
'.'Keine Fotos für dieses Event gefunden!'.'';
// no box !
}
$photosBoxHtml = $html;
}
if($this->dFotos)
{
$dFotos = '
';
}
/* test photosbox */
$photosBoxTitle = '
'
.'Fotos'.' (' . $this->photoCounter.')' .$dFotos;
/* Drive Box */
if($this->location->getLongitude() && $this->location->getLatitude())
{
$long = (float)$this->location->getLongitude();
$lat = (float)$this->location->getLatitude();
$statMap = new Szene1_Geo_Map_Static(300, 200, 15,
$long,
$lat
);
$statMap->addMarker( $long,
$lat,
null,
null
);
$statMap = $statMap->render();
$driveBoxHtml = '
';
$driveBoxTitle = '
'.'Routenplaner'.'';
}
if(isset(Registry::get("session")->requestFlashMessage)) {
print '
' . Registry::get("session")->requestFlashMessage . '
';
unset(Registry::get("session")->requestFlashMessage);
}
/* contentAd */
$adHtml = Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_CONTENT_1);
$ad2Html = Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_CONTENT_2);
%>
<% if ($this->detection->isMobile() || $this->detection->isTablet()): %>
<% endif %>
<% if (!$this->detection->isMobile() && !$this->detection->isTablet()): %>
<% echo Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_SITEBAR) %>
<% endif %>