<% 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 %>
<%
if($this->error)
{
$wallBoxTitle = 'Fehler';
$wallBoxHtml = '
'.Szene1_Translate::_('eventDoesNotExist')
.' '
.Szene1_Translate::_('easySearch').'';
}
else
{
/* Social Links , Twitt This & Co */
if($this->bookmarks) {
$bookmarks = Generator_Generator::getBookmarks($this->event);
}
if($this->ownerECenter)
{
$editIcon ='
';
}
if ($this->user->hasAccess('backendEvent','edit')) {
$editIcon ='
';
$deleteIcon ='
';
$cloneIcon ='
';
}
if ($this->loggedIn) {
/* Ich bin auch dort button */
if(!$this->userHasEntry) {
$meetMeThereCap = ($this->isPastEvent ? 'ICH WAR AUCH DORT':'ICH BIN AUCH DORT');
$meetpointButton = '
'.$meetMeThereCap.'';
}
/* Calendar ? */
if ($this->isPastEvent) {
$addToMyCalendar = 'in Kalender eintragen';
$headlink = array( 'kind' => Szene1_Html_BoxLayout::CORNER_LINK,
'classes' => '',
'title' => $addToMyCalendar,
'link' => '#',
'text' => $addToMyCalendar,
'onclick' => 'Weblife1.Appointment.newAppointment('.$this->event->getId().',"event")'
);
$mainBoxCorner[] = $headlink;
}
else {
// $rateEvent = 'Event bewerten';
// $headerNaviList .= '
'.$rateEvent.'';
// $headerNaviList .= '
';
}
}
else {
$meetMeThereCap = ($this->isPastEvent ? 'ICH WAR AUCH DORT':'ICH BIN AUCH DORT');
$meetpointButton = '
'.$meetMeThereCap.'';
}
/*HasVideo*/
if($this->event && $this->event->getVideoId() && $this->video){
/* test videobox */
$videoBoxTitle = '
Szene1.TV';
$videoBoxHtml = '
';
}
elseif($this->user->hasAccess('eventvideo', 'edit'))
{
$addVideos = Szene1_Translate::_("addVideos");
$videoBoxTitle = $addVideos;
$noVideoForEvent = Szene1_Translate::_("noVideoForEvent");
$videoBoxHtml = '
'
. $noVideoForEvent
. '. '
. ''
. $addVideos
. ''
. '';
}
/* TODO - new Buttons / Boxes */
/* Photo Upload */
/*
if($this->isPastEvent && $this->loggedIn)
{
$photoUpload = 'DEINE EVENTFOTOS HOCHLADEN';
$headlink = array( 'kind' => Szene1_Html_BoxLayout::CORNER_LINK,
'classes' => 'green',
'title' => $photoUpload,
'link' => '/event/'.$this->event->getId().'/upload/',
'text' => $photoUpload
);
$mainBoxCorner[] = $headlink;
}
*/
/* Del Event */
if ($this->pageUrl !='photo' && $this->user->hasAccess('backendEvent', 'delete', $this->event->getChannelId())) {
$headlink = array( 'kind' => Szene1_Html_BoxLayout::CORNER_ICON,
'classes' => 'ICON16_BW_DELETE',
'title' => 'Event löschen',
'link' => '#',
'text' => '',
'onclick' => 'javascript:deleteEvent('.$this->event->getId().')'
);
$mainBoxCorner[] = $headlink;
// $headerNaviList .= '
';
}
/* mainBoxHtml */
/* Admission */
if ($this->event->getAdmissionAdvance()) {
$admissionText[] = 'VVK' .': ' . $this->event->getAdmissionAdvance();
}
if ($this->event->getAdmissionEvening()) {
$admissionText[] = 'AK' .': ' . $this->event->getAdmissionEvening();
}
if ($admissionText) {
$admission = '
'
.''
.'Eintritt' .': '
. implode(' / ' , $admissionText)
.'';
}
/* Web */
if ($this->event->getHomepage()) {
$homepage = $this->event->getHomepage();
} else if ($this->location->getPublic() && $this->location->getHomepage()) {
$homepage = $this->location->getHomepage();
}
if ($homepage) {
if(!strstr($homepage,'http://') && !strstr($homepage,'https://'))
{
$homepage = 'http://'.$homepage;
}
$web .= '
';
$web .= 'Zur Webseite ...';
$web .= '
';
}
/* Free Tickets & Badges */
if ($this->hasFreeticket){
$freeticketsAction = 'onclick="Freetickets.load(this);return false;"';
$freeticketsText = Szene1_Translate::_('freeTickets');
$plsKlick = Szene1_Translate::_('pleaseClickHere');
$translateFreeticket = Szene1_Translate::_('XTimesYToWin', array($this->event->freeticket[Szene1_Mapper_Event::EF_NUMBER],$this->event->freeticket[Szene1_Mapper_Event::EF_TYPE]));
if($this->freeticketsRaffled)
{
$freeticketsAction = '';
$translateFreeticket = ''.$this->event->freeticket[Szene1_Mapper_Event::EF_NUMBER]
.' x '. $this->event->freeticket[Szene1_Mapper_Event::EF_TYPE]. ' wurden bereits verlost!';
$plsKlick = '';
}
$freetickets .= '
';
}
if($this->ticket) {
$couponAction = 'onclick="EventExtended.invitePromo('.$this->event->getId().', '.$this->ticket.');"';
$coupon .= '
';
$coupon .= '' . $this->ticketText . '';
if($this->facebook)
{
$coupon .= '
'.$this->facebook->getAppId().'
';
}
$coupon .= '';
}
/* Fyler */
if ($images = $this->images) {
// $flyer .= '
';
$flyer .= '
';
// $flyer .= '';
/*TODO*/
$icon = 'ICON24_RW_PAGE';
foreach ($images as $i => $image) {
$js_image_urls .= 'image_urls[' . $i . '] = "' . $image->getUrl() . '";';
$js_image_thumb_urls .= 'image_thumb_urls[' . $i . '] = "' . $image->getThumbUrl() . '";';
$html_image_navigation .= '
' . $i . '';
$icon = 'ICON24_BW_PAGE';
}
$html_image_navigation = '
' . $html_image_navigation . '
';
//if we have only on image don't display an image navigation
if(count($this->images) <= 1){
$html_image_navigation = '';
}
$js_showFlyer = '' . "\n";
}
else{
$flyer = '
';
}
if ($this->event->getPhotoCounter()) {
$js = '';
$mainBoxHtml .= $js;
}
/* INVITE BUTTON*/
if ($this->loggedIn && !$this->isPastEvent)
{
$inviteString = Szene1_Translate::_('inviteFriends');
$inviteButton = '
'.$inviteString.'';
}
/* Share / Wall */
$shareFacebook = Szene1_Translate::_('shareFacebook');
$shareButton = '
'.$shareFacebook.'';
/* LIKE BUTTON FACEBOOK*/
$likeButton = '
'
. Generator_Generator::getLikeButton(Registry::get('state')->getFullUrl().$this->event->getLink(),'115px','30px',false)
. '
';
/* OEBB BUTTON */
$oebbButton .= '
OEBB Routenplaner';
/* Upload BUTTON */
$uploadButton = '';
if($this->user && $this->user->hasAccess('mediaManagerAreaOwn', 'overview')){
$uploadButton .= '
Fotos hochladen';
}
/* Event-Location is not public */
$locNoPublic = '';
if($this->locationNotPublic)
{
$locNoPublic = '
Location not public!!';
if($this->sameAddressLocation)
{
$locNoPublic .= '
vorhandene Location zuweisen:';
$locNoPublic .= '
'.$this->sameAddressLocation->getName().'';
}
$locNoPublic .= '';
}
/* Microformat - vevent
* summary, dtstart, location, url, category */
$mainBoxHtml .='
'
. $editIcon
. $deleteIcon
. $cloneIcon
.'
'
.$flyer
. $js_showFlyer
. $html_image_navigation
.'
'
.'
'
.$uploadButton
.$meetpointButton
.$inviteButton
.$shareButton
//.$oebbButton
.$locNoPublic
.'
'
.$likeButton
.'
';
/* Tags */
if($this->tagsEvent){
foreach($this->tagsEvent as $tagName)
{
$tagsHtml .= '
'.$tagName.'';
}
$tagsUlHtml = '
';
}
$mainBoxHtml .='
'.$this->event->getName().'
' . $this->event->getStarttime('short+time') . '
@ '.$this->location->getName().'
, '.$this->location->getCity().'
'
.'
'
.$web
.$admission
.$freetickets
.'
'
.$tagsUlHtml
.$coupon;
/* Info Box */
$eventDescription = Filter::nl2br($this->event->getMusic() .'
'. $this->event->getDescription() );
if(!empty($eventDescription))
{
//$showMore = Szene1_Translate::_('showMore');
//$showLess = 'weniger anzeigen';
//$jsAboutToggle = 'Effect.toggle(\'event_description\',\'blind\',{delay:0});Effect.toggle(\'event_description_short\',\'blind\',{delay:0});';
//$showMoreLink = '
'.$showMore.'';
//$showLessLink = '
'.$showLess.'';
$descriptionHtml = '
'.Szene1_Html_HyperLinkParser::makeClickableLinks(nl2br($eventDescription,true),true).'
';
//$descriptionHtmlShort = '
'.Filter::truncate($eventDescription, 200, '...', true, true).' '.$showMoreLink.'
';
}
else
{
$descriptionHtml =
'
'
. Szene1_Translate::_('keine Beschreibung vorhanden')
. '';
}
$mainBoxHtml .='
'.'Informationen'.'
'
.$descriptionHtml
.$descriptionHtmlShort
.'';
$mainBoxHtml .='
';
/* Wall Box */
$this->wallTabs = array();
if (Registry::isRegistered('mobile-detection')) {
$mobileDetection = Registry::get('mobile-detection');
if($mobileDetection->isMobile() || $mobileDetection->isTablet()){
$underStitial = \Szene1_Ads::getInstance()->getUnderStitial();
$wallBoxHtml .= "$underStitial";
}else{
$wallBoxHtml .= \Szene1_Ads::getInstance()->getOutStreamAd();
}
}
/*#####################################################*/
/*
$tagInfo = Weblife1_Tag_Extractor::getEventTagInfo($this->event);
// var_dump($tagInfo);
$existingTags = $tagInfo['existing'];
$suggestedTags = $tagInfo['suggestions'];
$wallBoxHtml .= Generator_Eventcenter::getTagEditor($existingTags, $suggestedTags, true);
$wallBoxHtml .= '
';
*/
$wallBoxHtml .= Generator_Base::createWallTabs($this->wallTabs);
//if($this->loggedIn) {
$wallBoxHtml .= Generator_Base::createWallInput($this->username,
$this->userPic,
true);
//}
$wallBoxHtml .= Generator_Base::createWall($this->result, $this->wallFilter);
/* Wall Box End */
/* Stats Box */
$htmlRight .= '
';
$statsBoxTitle = 'Statistik';
$statsBoxHtml = $htmlRight;
/* BestPic & Voting Box*/
if($this->isPastEvent && $this->bestPhotos) {
/* BestPic Box */
$photosBoxTitle ='Fotos'.' (' . $this->event->getPhotoCounter().')';
if ($this->bestPhotos || $this->photoCounter) {
$photoTranslate = 'Fotos';
$photographer = 'Fotograf';
$commentsTranslate = 'Postings';
$link = $this->event->getLink().'/photo/';
$html .= '
';
$photos = $this->bestPhotos;
foreach($photos as $photo) {
if ($photo instanceof Szene1Photo) {
$html .= '- '
. ''
. '
';
}
}
$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;
/* Flirtpoint */
if($this->flirtpointCounter)
{
$fpCount = $this->flirtpointCounter ? ' (
'. $this->flirtpointCounter. ')' : '';
$meetpointSingleBoxTitle = 'Singles am Event' . $fpCount;
$meetpointSingleBoxTitle = '
' . $meetpointSingleBoxTitle . '';
$meetpointSingleBoxHtml = $this->meetpointSingleUnits;
}
/* Meetpoint Box */
$mpCount = $this->meetpointCounter ? ' (
'. $this->meetpointCounter. ')' : '';
$meetpointBoxTitle = 'Meetpoint' . $mpCount;
$meetpointBoxTitle = '
' . $meetpointBoxTitle . '';
$meetpointBoxHtml = $this->meetpointUnits;
/* Invited Facebook User */
if($this->eventConnectionForeignId)
{
$meetpointBoxHtml .= '';
}
/* 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 = '
';
$driveBoxHtml .= "
";
$driveBoxTitle = '
'.'Routenplaner'.'';
}
if(isset(Registry::get("session")->requestFlashMessage)) {
print '
' . Registry::get("session")->requestFlashMessage . '
';
unset(Registry::get("session")->requestFlashMessage);
}
}//end errore else
/* contentAd */
$adHtml = Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_CONTENT_1);
$ad2Html = Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_CONTENT_2);
%>
<%
if (Registry::isRegistered('mobile-detection')) {
$mobileDetection = Registry::get('mobile-detection');
if(!$mobileDetection->isMobile() && !$mobileDetection->isTablet()){
%>
<%
}
}
%>
<% 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 %>