<% 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 %> <% /* Social Links , Twitt This & Co */ if($this->bookmarks) { $mainBoxFooter = Generator_Generator::getBookmarks($this->event); } /* if ($this->user->hasAccess('backendEvent','edit')) { $editIcon ='E'; } */ /*HasVideo*/ if($this->event && $this->event->getVideoId() && $this->video){ $videoBoxTitle = 'Szene1.TV'; $videoBoxHtml = ' '.$this->video->getName().' '; } /* Photo Upload */ if(($this->event->getStarttime('timestamp') < $this->timeStamp) && $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; } /* mainBoxHtml */ /* Fyler */ if ($images = $this->images) { $flyer .= ''; $flyer .= ' '.$this->event->getName().'@'.$this->location->getName().''; $flyer .= ''; } else{ $flyer = ''.$this->event->getName().' No Flyer Pic'; } 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->getName().'

' . $this->event->getStarttime('short+time') . ' @ '.$this->location->getName().' , '.$this->location->getCity().'

'; $mainBoxHtml .='
'; /* Meetpoint Box */ $meetpointBoxTitle = 'Meetpoint' . ' ('. $this->meetpointCounter .')'; $meetpointBoxHtml = ''; $meetpointBoxHtml .= '
'.$this->meetpointUnits.'
'; $meetpointBoxHtml .= ''; $mpScript = ''; $meetpointBoxHtml .= $mpScript; /* Stats Box */ $htmlRight .= ''; $statsBoxTitle = 'Statistik'; $statsBoxHtml = $htmlRight; /* BestPic & Voting Box*/ if($this->event->getStarttime('timestamp') < time()) { /* 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 .='
'; /* $html .= '' . ''.$this->event->getPhotoCounter() . ' ' . $photographer .'-'. $photoTranslate . ' / ' . ''.'Fotos mit Aktivität' .'' . ''; */ // $html .= '
 
'; $html .= '
    '; $photos = $this->bestPhotos; foreach($photos as $photo) { if ($photo instanceof Szene1Photo) { $html .= '
  • ' . '' . ''.$this->event->getName().'
  • '; } } $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; /* 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(); // $old = 'https://maps.google.com/maps/api/staticmap?center='.$this->location->getName().'&zoom=10&size=300x200&maptype=roadmap // &markers=color:red|label:S|'.$this->location->getLatitude().','.$this->location->getLongitude().'&sensor=false'; $driveBoxHtml = ' '.$this->location->getName().''; $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 %>
<% 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 %>