<% 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 = '
';
$editIcon .='
';
if ( $this->isAdmin) {
$editIcon .='
Admin ';
}
$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 .= '
';
$flyer .= '';
}
else{
$flyer = '
';
}
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 . '
'
.$flyer
.'
'
.'
'
.$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 .= '
'.$tagName.' ';
}
$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 .= $loc->getCategoryName();
$wallBoxHtml .= ' ';
$wallBoxHtml .= '
'.$loc->getCity().'
'.$loc->getLatitude().'
'.$loc->getLongitude().'
';
$wallBoxHtml .= ' ';
}
else
{
$wallBoxHtml .= 'An dieser Adresse gibt es momentan keine andere Location';
}
}
/* Stats Box */
$htmlRight .= '
';
if ($this->isOwner || Registry::get('session')->user->hasAccess('location','viewStatistic') || Registry::get('session')->user->hasAccess(null, 'admin')) {
$htmlRight .= '' . number_format($this->location->getViewCounter(), 0, ',', '.') . ' '.'Aufrufe'.' ' ;
}else{
$htmlRight .= '' . number_format($this->location->getViewCounter(), 0, ',', '.') . ' '.'Aufrufe'.' ' ;
}
$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 = ''
.''
.'
'
.' '
.' ';
$tempHtml .= '
';
$tempHtml .= '
'.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 = ''
.''
.'
'
.' '
.' ';
$tempHtml .= '
'.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 = '
VIDEO
';
}
/**
* Image Gallery
*/
$imagesBoxHtml = '
Previous
';
$imagesBoxHtml .= '
';
$imagesBoxHtml .= '
next
';
$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 %>