<% 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 %>
<%
try
{
/* Main Box Content */
$mainBoxHtml = Generator_Base::buildUserSubPageHeader(
$this->ownerName, $this->ownerFullName,
$this->fullNameInfoText, $this->ownerPic,
$this->ownerGender, $this->ownerIsOnline,
$this->meetMeText, $this->editMode);
// mainPage html end
/* Media Box*/
/* Breadcrumbs */
//usertype = 1
if ($this->galleryType == 1) {
$goToAlbumsOverview = Szene1_Translate::_('goToAlbumsOverview');
$photoAlbums = Szene1_Translate::_('photoAlbums');
$breadcrumb .= ' » ';
$breadcrumb .= '
'.$photoAlbums.' » ';
$breadcrumb .= '
'.$this->folderName .'';
}
$mediaBoxTitle = 'Medien' . $breadcrumb;
$buttons = '';
/* NEW Album & Edit Album Buttons */
$alben = $this->userFolders;
$ownername = $this->ownerName;
$ownerid = $this->ownerId;
$mode = $this->mode;
$modeName = $this->modeName;
$editMode = $this->editMode;
$videoMode = $this->videos;
$eventPhotoAlbums = $this->eventPhotoAlbums == 1?true:false;
if($editMode && !$eventPhotoAlbums) {
$createNewAlbum = Szene1_Translate::_('createNewAlbum');
if($videoMode) {
//neues Album anlegen soll jetzt rechts oben stehen
$type = Szene1_Mapper_Video::FOLDER_TYPE_OWN;
$mediaBoxTitle .= strtoupper($modeName.' '.$albumTitle);
$mediaBoxTitle .= '';
$buttons .= '
'.$createNewAlbum.'';
}
else if(!$videoMode) {
$link = 'Weblife1UserAlbum.editFolder(';
$link .= '0, ';
$link .= $ownerid.', ';
$link .= '\''.$modeName.'\', ';
$link .= '\''.$mode.'\'';
$link .= ');return false;';
$buttons .= '
'.$createNewAlbum.'';
}
}
$buttonBar = trim($buttons) ? '
'.$buttons.'
' : '';
$mediaBoxHtml = '';
if (Registry::isRegistered('mobile-detection')) {
$mobileDetection = Registry::get('mobile-detection');
if($mobileDetection->isMobile() || $mobileDetection->isTablet()){
$underStitial = \Szene1_Ads::getInstance()->getUnderStitial();
$mediaBoxHtml .= "$underStitial
";
}
}
$mediaBoxHtml .= '
';
$mediaBoxHtml .= $buttonBar;
$mediaBoxHtml .= '
';
if($this->userFolders && !$this->hasNoAlbum) {
if($this->videos) {
$viewLinkBase = '/' . $this->mode . '/' . $this->ownerName. '/videoalbum/';
$uploadLinkBase = '/'.$this->mode.'/'.$this->ownerName.'/video/upload/';
}
else
{
$viewLinkBase = '/' . $this->mode . '/' .$this->ownerName . '/album/';
$uploadLinkBase = '/'.$this->mode.'/'.$this->ownerName.'/album';
}
ob_start();
include './application/views/szene1/photo/albums.phtml';
$mediaBoxHtml .= ob_get_contents();
ob_end_clean();
}
else if($this->myPics){
ob_start();
include './application/views/szene1/photo/gallery.phtml';
$mediaBoxHtml .= ob_get_contents();
ob_end_clean();
}
else if($this->uploadUrl && $this->editMode && $this->hasAccess) {
if($this->videos) {
$mediaBoxHtml .= Generator_UserMedia::getVideoUploadForm(
$this->data,
$this->overViewLink
)
.$msg
;;
}
else {
$path = './application/views/szene1/photo/uploader.phtml';
ob_start();
include $path;
$mediaBoxHtml .= ob_get_contents();
ob_end_clean();
}
}
else {
if($this->mode == Szene1_Mapper_UserFoto::MODE_USER) {
if($this->eventPhotoAlbums == 1)
{
$message = 'Der User hat noch keine Fotos zu Events hochgeladen. Du kannst beim jeweiligen Event über den Button "Fotos hochladen" deine eigenen Partyfotos beisteuern. Diese werden dann von Szene1 geprüft und freigeschaltet.';
}
else
{
$message = 'Der User hat noch kein Album.';
}
}
else {
$message = 'Die Gruppe hat noch kein Album.';
}
$mediaBoxHtml .= '
'.$message.'';
}
} catch(Exception $e) // should catch the interrupt exceptions //TODO: change it!
//TODO: display limitedInfo-Info
{
}
/* Init Albums */
if(!$this->videos)
{
if($editMode)
{
if(!$eventPhotoAlbums)
{
$mediaBoxHtml .= '
';
$mediaBoxHtml .= Szene1_Translate::_('moveYourAlbumsToChangeOrder').'';
}
$mediaBoxHtml .='';
}
}
else {
$mediaBoxHtml .='';
}
/* END Init Albums */
/* Friends Box */
if($this->ownerFriends)
{
$fBox = Generator_Base::buildFriendsBox( $this->ownerFriends,
$this->ownerName,
$this->ownerFriendsCount);
$friendsBoxTitle = $fBox['boxTitle'];
$friendsBoxHtml = $fBox['boxHtml'];
}// if ownerFriends
/* End Friends Box */
/* contentAd */
$adHtml = Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_CONTENT_1);
$ad2Html = Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_CONTENT_2);
/* Webradio */
$radioBoxTitle = '
NEU: Szene1 - Webradio';
$radioBoxHtml .= '

';
/*
$radioBoxHtml .= '

';
*/
/* Like Box*/
$likeBoxTitle = 'Facebook';
$likeBoxHtml = '
';
/* End Like Box*/
%>
<% 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 %>