<% 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 %> <% /* Main Box Content */ $mainBoxHtml .=''; $type = $this->type; if($type == 'event') $type ='events'; elseif($type == 'location') $type = 'events/locations'; $mode = 'new'; $mainCountries = array('AT', 'SK', 'CH'); $formname = $type . '_search'; $form .= '
'; //$form .= $tags; $form .= '
  • '; /******************************************************* ************************************** *************** Calendar */ if($this->type != "location") { $form .= '
  • '; } /******************************************************* ****************** Calendar end ***********************/ /************************************* selected Tags ********************/ $tags = '
      '; $tagurl = array(); if(is_array($this->searchtags)){ foreach($this->searchtags as $tag) { $ttags = array(); foreach($this->searchtags as $tag2) { if($tag2 != $tag) $ttags[] = $tag2; } $dellink = implode(",", $ttags); $tags .= '
    • '; $tagurl[] = $tag; $searchString .= $tag.' '; } $tags .= '
    • '; } $tagurl = implode(",",$tagurl); $tags .= '
    '; /*************************** end selected Tags **************************/ $form .= '
  • '.$tags.' '.Szene1_Translate::_('searchCap').' '; if($this->type != "location") { $form .= ' '; } $form .= '
'; $form .= ''; $form .= '
'; // $form .= '
'; $resultBoxHtml .= '
'.$form.'
'; /* Event Results */ //$resultBoxTitle = '' . $tags.''; $resultBoxHtml .= '

'; if(time() < mktime(0,0,0,4,15,2012)){ $resultBoxHtml .= ' 9 Jahre SZENE1 - 13. und 14. April'; } $resultBoxHtml .= '
'; if (Registry::isRegistered('mobile-detection')) { $mobileDetection = Registry::get('mobile-detection'); if($mobileDetection->isMobile() || $mobileDetection->isTablet()){ $underStitial = \Szene1_Ads::getInstance()->getUnderStitial(); $resultBoxHtml .= $underStitial ; }else{ $resultBoxHtml .= \Szene1_Ads::getInstance()->getOutStreamAd(); } } $resultBoxHtml .= '
'; /* include Event-Search Template */ ob_start(); include './application/views/szene1/search/events.phtml'; $resultBoxHtml .= ob_get_contents(); ob_end_clean(); /* end include Event-Search Template */ $resultBoxHtml .= '
'; $more = ''.Szene1_Translate::_('showMore').''; $resultBoxHtml .= $more; if($this->type == 'photo') { $mainBoxTitle = "Da war die Party!"; if($this->taggedFriends) { /* Friends Tagged */ $taggedBoxTitle = 'Neu markierte Freunde'; $more = 'weitere'; $taggedBoxHtml = '
    '; foreach($this->taggedFriends as $tagging) { $userName = $tagging['userName']; $linkHead = ''; $linkTail = ''; $content = Szene1_Translate::_( 'hasBeenTaggedOnX', array( $linkHead . Szene1_Translate::_('photo') . $linkTail ) ); $ago = Generator_Content::sinceDateFormat($this->timeStamp - $tagging['timeStamp']); $taggedBoxHtml .= '
  • '.$userName.' ' .'' .$userName .' ' . $content .'
    '.$ago.'' .'
  • '; } //foreach $taggedBoxHtml .= '
'; // $taggedBoxHtml .= ''.$more.''; }// if(taggedFriends) /* Last Meetpoint */ if($this->lastMeetpoints) { $lastMeetpointBoxTitle = 'Da war ich...'; $lastMeetpointBoxHtml = '
    '; //die(var_dump($this->lastMeetpoints )); foreach($this->lastMeetpoints as $meetpoint) { $eventId = $meetpoint['eventId']; $locationUrl = '/location/'.$meetpoint['eventUrl']; if(strstr($meetpoint['eventUrl'], 'event_')) { $locationUrl = '/event/'.$meetpoint['eventId']; } $lastMeetpointBoxHtml .= '
  • '.$meetpoint['eventName'].'

    '.$meetpoint['eventName'] . '

    '.$meetpoint['eventTime'] . ' @ '.$meetpoint['eventLoc'].', '.$meetpoint['locationCity'].'
  • '; } $lastMeetpointBoxHtml .= '
'; } } // end Photo else if($this->type == 'event') { if(!empty($this->searchtags)){ $mainBoxTitle = implode(', ', $this->searchtags); } else{ $mainBoxTitle = "Wo ist die Party?"; } /* Friends Box */ if($this->friendsNewMeetpoints) { $friendsBoxTitle = 'Wo sind die Freunde?'; $friendsBoxHtml = '
    '; foreach($this->friendsNewMeetpoints as $meetpoint) { $userId = $meetpoint['userId']; $userName = $meetpoint['userName']; $friendsBoxHtml .= '
  • '.$userName.' wird an ' .$meetpoint['eventName'] .' @ '.$meetpoint['eventLoc'].' am '.$meetpoint['eventTime'] .' teilnehmen ' //.'
    vor 1 stunde ' .'
  • '; } $friendsBoxHtml .= '
'; } /* END Friends Events */ /* Top Events */ /* TODO get other relevant entries */ if($this->top3Events && false){ $topEventsBoxTitle = 'Events die dich interessiern könnten...'; $topEventsBoxHtml = '
    '; $channelPath = Registry::get('session')->channelPath; foreach($this->top3Events as $entry) { if($entry['hide'] == 1) { continue; } $link = '/event/'.$entry[Event::E_ID]; // if($entry[Event::E_PRIORITY]){ // $status = '
    '; // $priority = 'priority '; // } $users = $entry['user']; $countUsers = count($users); $friendsText = ''.$countUsers. ' Friend' ; if($countUsers > 1){ $friendsText .='s'; } else if($countUsers === 1){ $friendsText .=''; } else{ $friendsText .='s'; } $friendsText .=''; /*$entry[Event::E_MEETPOINT_COUNTER] */ $tempHtml = '
  • ' .'
    ' .'' .''.$entry[Event::E_NAME].'' .''; $tempHtml .= '
    '; $tempHtml .= '

    '.$entry[Event::E_NAME] . '

    '.Generator_Content::formatDate($entry['date'],'date') . ' @ '.$entry['l_name'].', '.$entry['l_city'].''; if($countUsers > 0) { $tempHtml .= ' / ' .$friendsText; } $tempHtml .= '
    '; //content $tempHtml .= '
    ' //event // .'' // . $status .'
  • '; $topEventsBoxHtml .= $tempHtml; } $topEventsBoxHtml .= '
'; } /* END Top Events */ /* Map Events incl. GoogleMaps */ /*TODO TESTING with Simon */ $mapBoxHtml = ''; if($this->top3Events){ //$mapBoxTitle = 'Events mit Friends!'; $mapBoxTitle = 'Events die dich interessiern könnten...'; $mapBoxHtml = '
    '; $channelPath = Registry::get('session')->channelPath; foreach($this->top3Events as $entry) { if($entry['hide'] == 1) { continue; } $link = '/event/'.$entry[Event::E_ID]; $users = $entry['user']; $countUsers = count($users); $friendsText = ''.$countUsers. ' Friend' ; if($countUsers > 1){ $friendsText .='s'; } else if($countUsers === 1){ $friendsText .=''; } else{ $friendsText .='s'; } $friendsText .=''; // if($entry[Event::E_PRIORITY]){ // $status = '
    '; // $priority = 'priority '; // } $tempHtml = '
  • ' .'
    ' .'' .''.$entry[Event::E_NAME].'' .''; $tempHtml .= '
    '; $tempHtml .= '

    '.$entry[Event::E_NAME] . '

    '.Generator_Content::formatDate($entry['date'],'date') . ' @ '.$entry['l_name'].', '.$entry['l_city'].''; if($countUsers > 0) { $tempHtml .= ' / ' .$friendsText; } $tempHtml .= '
    '; //content $tempHtml .= '
    ' //event .'
  • '; $mapBoxHtml .= $tempHtml; } $mapBoxHtml .= '
'; /*EvensNear = Generator_Generator @ Controller */ } if($this->eventsNear || $mapBoxHtml) { $mapBoxHtml = $this->eventsNear. $mapBoxHtml; } /* End Map Box*/ }// end elseif type == event else if($this->type == 'location') { $mainBoxTitle = "Location Suche"; /*TODO Top Location*/ /*New Location*/ /*Friendslocation*/ /*Location near*/ } /** * last event-photos from users */ if($this->type == 'photo') { $lastPhotoBoxTitle = 'Neueste Eventfotos von Usern (dev)'; $lastPhotoBoxHtml = '
    '; foreach($this->newUserPhotos as $key => $data) { $lastPhotoBoxHtml .= '
  • '.$data['event']->getName().'
  • '; } $lastPhotoBoxHtml .= '
'; } /*Grid */ $gridBoxHtml = $this->grid; /* contentAd */ $adHtml = Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_CONTENT_1); $ad2Html = Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_CONTENT_2); $adHtml .= ' Eventcenter'; %>

<% 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 %>