<% 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 .= '
';
$resultBoxHtml .= '
';
/* Event Results */
//$resultBoxTitle = '
' . $tags.'';
$resultBoxHtml .= '
';
if(time() < mktime(0,0,0,4,15,2012)){
$resultBoxHtml .= '
';
}
$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 .= '-
';
} //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 .= '-
';
}
$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 .= '-
';
}
$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 = '- '
.'
'
.'
'
.''
.'';
$tempHtml .= '
';
$tempHtml .= '
'.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 = '- '
.'
'
.'
'
.''
.'';
$tempHtml .= '
';
$tempHtml .= '
'.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 .= '-
';
}
$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 .= '
';
%>
<% 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 %>