<% if (Environment::doDebugOutput(true)) { %> <% } %> <% echo $this->headTitle(); %> <% echo $this->openGraph; %> <% echo $this->headMeta(); %> <% echo $this->headLink(); %> <% echo $this->buildStyleSheets(); %> <% echo $this->headScript(); %> <% echo $this->buildJavaScripts(); %> <% echo $this->inlineScript() %> <% echo $this->additionalHeaders; %> <% switch (Registry::get('state')->getCode()) { case 'SK': $account = 'UA-200716-3'; break; case 'AT': default: $account = 'UA-200716-1'; break; } %> <% if (!isset($_COOKIE['disableResponsive']) || !$_COOKIE['disableResponsive']): %> <% if ($this->detection->is('android') && floatval($this->detection->version('Android')) < 3): %> ' /> ' /> ' /> ' /> ' /> ' /> ' /> ' /> ' /> <% else: %> ' /> <% endif; %> <% endif; %> <% if (time() >= mktime(0,0,0, 4, 1, 2016) && time() < mktime(0,0,0, 4, 25, 2016)) { %> <% } %> <% $user = Registry::get('session')->user; %> getBodyTagAttributes() as $name => $value) { echo $name . '="' . $value . '" '; } %> > <% $zip = ''; $province = ''; $location = ''; $age = ''; $gender = ''; if (!function_exists('lowerNoUmlauts')) { function lowerNoUmlauts($str) { $str = strtolower($str); $replacePairs = array( ' ' => '_', 'ä' => 'ae', 'ö' => 'oe', 'ü' => 'ue', 'ß' => 'ss' ); $str = strtr($str, $replacePairs); return $str; } } if ($user) { $userData = $user->getUserData(); $userCharacter = $user->getUserCharacter(); $userPageAddOn = new \Weblife1_User_Page_Addon_Main(0); $userInfos = $userPageAddOn->build($user ); $zip = urlencode($userData->getZipCode()); $province = urlencode(lowerNoUmlauts($userData->getProvinceName())); $location = urlencode(lowerNoUmlauts($userData->getCity())); $age = urlencode($userCharacter->getAge()); $gender = $userData->getGender() == 'm' ? 'male' : 'female'; } %> <% if ($user && Registry::get('session')->isFreshRegistration) : %> <% Registry::get('session')->isFreshRegistration = FALSE; %> <% endif %>
. . . <% if (!$this->detection->isMobile() && !$this->detection->isTablet()): %> <% echo Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_SITEBAR_LEFT) %> <% endif %>
<% 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 = ' '.$this->video->getName().' '; } 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 .= '

'; } $coupon .= '

'; } /* Fyler */ if ($images = $this->images) { // $flyer .= ''; $flyer .= ' '.$this->event->getName().'@'.$this->location->getName().''; // $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 = ''.$this->event->getName().' No Flyer Pic'; } 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 .= '
  • '; } $tagsUlHtml = '
    • Tags:
    • '.$tagsHtml.'
    '; } $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 .= '
    • ' . '' . ''.$this->event->getName().'
    • '; } } $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 %>
    <% if (Environment::doDebugOutput(true)): %>
    <% // echo $this->debugInfo; echo "

    BASE-TIME total secs " . BaseConnect::$totalMs; echo "

    SHAREDANCE(SESSION)-TIME total secs " . Szene1_Session_SaveHandler_ShareDance::$totalMs; echo "

    TIMELINER-TIME total secs " . Notification::$totalMs; echo "

    MEMORYCACHE-TIME total secs " . Szene1_MemoryCache::$totalMs; echo "

    davon MEMCACHE(zentral)-TIME total secs " . Szene1_Cache_Memcache::$totalMs; echo "
    BASE-CALLS total " . BaseConnect::$totalCalls . "

    "; echo 'BaseConnect cache-access : ' . BaseConnect::$cacheAccess . ' - times
    '; foreach (BaseConnect::$cache as $id => $uid) { echo "$id ==> $uid
    "; } echo '

     

    '; %> <% echo '

     

    '; echo "
    TIMELINER-CALLS total " . Notification::$totalCalls . "

    "; echo "
    MEMORYCACHE-CALLS total " . Szene1_MemoryCache::$totalCalls . "

    "; echo "
    MEMCACHE(zentral)-CALLS total " . Szene1_Cache_Memcache::$totalCalls . "

    "; echo '

     

    '; %> <% echo "Mem Usage: " . round(memory_get_usage() / 1024 / 1024, 2) . "mb (" . round(memory_get_usage(true) / 1024 / 1024, 2) . "mb); Max: " . round(memory_get_peak_usage() / 1024 / 1024, 2) . "mb
    \n"; // echo Thrift_UserCache::getDebugInfo(); $sqlHigh = new Weblife1_Debug_SQLHighlight(); echo "
    SQL - SUM UP:"; $totaltime = 0; foreach (Szene1_DB_MysqliConn::$debugQuerieTime as $host => $time) { $totaltime += $time; echo "

    [" . $host . "] " . round($time, 5) . " seconds needed (" . Szene1_DB_MysqliConn::$debugQuerieCounter[$host] . " Queries)

    "; } echo "

    Total Time needed for DB: " . $totaltime . "

    "; echo $sqlHigh->highlight(Szene1_Db_MySQLiConn::$debugQueries); %>
    <% endif; %>
    <% if (!$this->detection->isMobile() && !$this->detection->isTablet()): %> <% endif; %>
    <% if ($this->detection->isMobile() || $this->detection->isTablet()): %>
    <% endif %> <% if (!$this->detection->isMobile() && !$this->detection->isTablet()): %> <% endif %> <% if (!$this->detection->isMobile() && !$this->detection->isTablet()): %> <% endif %>