<% 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->isOwner || $this->isAdmin ) { $editIcon = ''; } $premiumBadge = ''; if( $this->location->getPremiumLocationType() == LocationType::PREMIUMLOCATION){ $premiumBadge = "
"; } /*TODO Infos & details*/ // Begin Detail Box with labels: if ($this->location->getCapacity()) { $capacity = ' / '. Szene1_Translate::_('capacity').': '. $this->location->getCapacity(); } if ($this->location->getAdmission()) { $admission = ' / '.Szene1_Translate::_('admission') . ': ' . $this->location->getAdmission() . '
'; } if($this->location->getOpeningHours()){ $openingHours = ' / '.Szene1_Translate::_('openingHours'). ': '. $this->location->getOpeningHours(); } if ($this->location->getHomepage()) { $web = '
'. Szene1_Translate::_('goToWebpage').''; } if($this->statusClosed) { $description = 'Diese Location wurde geschlossen.'; } elseif($this->location->getDescription()){ $description = $this->location->getDescription(); } /* mainBoxHtml */ /* Fyler */ if ($logo = $this->logo) { $flyer .= ''; $flyer .= ' '.$this->location->getName().''; $flyer .= ''; } else{ $flyer = ''.$this->location->getName().' No Flyer Pic'; } if(!$this->statusClosed) { /* LIKE BUTTON FACEBOOK*/ $likeButton = '
' . Generator_Generator::getLikeButton(Registry::get('state')->getFullUrl().'/location/'.$this->location->getUrl(),'115px','30px',false) . '
'; /*Guest*/ if ($this->loggedIn) { if(!$this->userHasEntry) { $meetMeThereCap = 'Fan werden!'; //Stammgast $guestButton = '  '.$meetMeThereCap.''; } }//loggedin } /* Microformat - vcard * fn,n, adr (street-adress, region, postal-code, country-name), url, category, logo */ $mainBoxHtml = $editIcon . '
' .'
' .$guestButton .'
' .$likeButton .'
'; $street = $this->location->getStreet(); $zip = $this->location->getZipCode(); $mainBoxHtml .='
'.$premiumBadge.'

'.$this->location->getName().'

'; if($street) { $mainBoxHtml .= ''.$street.', '; } if($zip) { $mainBoxHtml .= ''.$zip.' - '; } $mainBoxHtml .= ''.$this->location->getCity().'

'; if(!$this->statusClosed) { $mainBoxHtml .= '

'.$web.$admission.$openingHours.'

'; } /* Tags */ if($this->tagsLocation){ foreach($this->tagsLocation as $tagName) { $tagsHtml .= '
  • '; } $tagsUlHtml = ''; } $mainBoxHtml .= $tagsUlHtml; /* Info Box */ if($description){ $mainBoxHtml .='

    '.'Informationen'.'

    '. $description .'

    '; } $mainBoxHtml .='
    '; if(!$this->statusClosed) { /* Wall Box */ $wallBoxTitle ="Newsfeed"; $wallBoxHtml = ''; if($this->loggedIn) { $wallBoxHtml .= Generator_Base::createWallInput($this->username,$this->userPic,true); } $wallBoxHtml .= Generator_Base::createWall($this->result, $this->wallFilter); } else { $wallBoxTitle = "Neue Location an dieser Adresse: " ; if($this->sameAddressLocation) { $flyer = ''; if($this->sameAddressLocationFlyer) { $flyer = $this->sameAddressLocationFlyer->getThumbUrl(); } $loc = $this->sameAddressLocation; $lName = $loc->getName(); $wallBoxHtml .= '
    '; $wallBoxHtml .= '
      '; $wallBoxHtml .= '
      • '; $wallBoxHtml .= '
      • '; $wallBoxHtml .= '

      '.$lName.'

      '.$loc->getCity().' '.$loc->getLatitude().' '.$loc->getLongitude().'

    • '; $wallBoxHtml .= '
    '; } else { $wallBoxHtml .= 'An dieser Adresse gibt es momentan keine andere Location'; } } /* Stats Box */ $htmlRight .= ''; $statsBoxTitle = 'Statisik'; $statsBoxHtml = $htmlRight; /*Events*/ if($this->events){ $translateUpcoming = Szene1_Translate::_('upcomingEvents'); $eventsBoxTitle = ''.$translateUpcoming.''; $eventsBoxHtml = '
      '; $channelPath = Registry::get('session')->channelPath; $count = 0; //var_dump($this->events);die(); foreach($this->events as $event) { $tempHtml = '
    • ' .'
      ' .'' .''.$event->getName().'' .''; $tempHtml .= '
      '; $tempHtml .= '

      '.$event->getName() . '

      '.Generator_Content::formatDate($event->getStartTime(),'date') . ' @ '.$this->location->getName().', '.$this->location->getCity().''; $tempHtml .= '
      '; //content $tempHtml .= '
      ' //event .'
    • '; $eventsBoxHtml .= $tempHtml; if($count >= 3){ break; } $count ++; } $eventsBoxHtml .= '
    '; } /*Photos*/ if($this->photos){ $translatePhotos = Szene1_Translate::_('photos'); $galleryBoxTitle = ''.$translatePhotos.''; $galleryBoxHtml = '
      '; $channelPath = Registry::get('session')->channelPath; $count = 0; //var_dump($this->events);die(); foreach($this->photos as $event) { $tempHtml = '
    • ' .'
      ' .'' .''.$event->getName().'' .''; $tempHtml .= '

      '.$event->getName() . '

      '.Generator_Content::formatDate($event->getStartTime(),'date') . ' @ '.$this->location->getName().', '.$this->location->getCity().''; $tempHtml .= '
      '; //content $tempHtml .= '
      ' //event .'
    • '; $galleryBoxHtml .= $tempHtml; if($count >= 3){ break; } $count ++; } $galleryBoxHtml .= '
    '; } /* test votebox $voteBoxTitle = 'Location bewerten'; //$voteBoxHtml = 'vote box'; */ /* Meetpoint Box */ $meetpointBoxTitle = 'Fans (' . $this->location->getMeetpointCounter() . ')'; $meetpointBoxTitle = '' . $meetpointBoxTitle . ''; $meetpointBoxHtml = $this->meetpointUnits; /* Drive Box */ if($this->location->getLongitude() && $this->location->getLatitude()) { $long = (float)$this->location->getLongitude(); $lat = (float)$this->location->getLatitude(); $driveBoxHtml = '
    '; $driveBoxHtml .= " "; $driveBoxTitle = ''.'Routenplaner'.''; } if(isset(Registry::get("session")->requestFlashMessage)) { print '
    ' . Registry::get("session")->requestFlashMessage . '
    '; unset(Registry::get("session")->requestFlashMessage); } /** * Video Box */ $videoBoxHtml = ''; $videoId = $this->location->getYoutubeVideoId(); if($videoId && $this->location->getPremiumLocationType() == LocationType::PREMIUMLOCATION){ $videoBoxHtml = ' '; } /** * Image Gallery */ $imagesBoxHtml = '
    '; $imagesBoxHtml .= '
      '; $imagesBoxNumberOfImages = 0; if($this->images){ foreach ($this->images as $i => $image) { $thumbUrl = $image->getThumbUrl(); $url = $image->getUrl(); //if we dont have a logo the first image is used as logo, so skip it if(!$this->location->getLogoId() && $i == 1){ continue; }else{ $imagesBoxNumberOfImages++; } $imagesBoxHtml .= "
    • "; } } $imagesBoxHtml .= '
    '; $imagesBoxHtml .= ''; $imagesBoxHtml .= '
    '; if($imagesBoxNumberOfImages <= 0 || $this->location->getPremiumLocationType() == LocationType::SIMPLELOCATION){ $imagesBoxHtml = ""; } /* contentAd */ $adHtml = ""; $ad2Html = ""; if($this->location->getPremiumLocationType() == LocationType::SIMPLELOCATION){ $adHtml = Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_CONTENT_1); $ad2Html = Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_CONTENT_2); } /* test 2 colLayout */ $testBoxTitle = 'Test '; $testBoxHtml = 'test'; %>

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