Пример #1
0
                     <a class="admidio-icon-link" data-toggle="modal" data-target="#admidio_modal"
                         href="' . $g_root_path . '/adm_program/system/popup_message.php?type=pho_album&amp;element_id=panel_pho_' . $childPhotoAlbum->getValue('pho_id') . '&amp;name=' . urlencode($childPhotoAlbum->getValue('pho_name')) . '&amp;database_id=' . $childPhotoAlbum->getValue('pho_id') . '"><img
                         src="' . THEME_PATH . '/icons/delete.png" alt="' . $gL10n->get('SYS_DELETE') . '" title="' . $gL10n->get('SYS_DELETE') . '" /></a>');
 }
 $page->addHtml('</div>
         </div>
         <div class="panel-body">
             <div class="row">
                 <div class="col-xs-12 col-sm-12 col-md-6">
                     <a href="' . $g_root_path . '/adm_program/modules/photos/photos.php?pho_id=' . $childPhotoAlbum->getValue('pho_id') . '"><img
                         class="thumbnail" src="' . $g_root_path . '/adm_program/modules/photos/photo_show.php?pho_id=' . $shuffle_image['shuffle_pho_id'] . '&amp;photo_nr=' . $shuffle_image['shuffle_img_nr'] . '&amp;thumb=1" alt="' . $gL10n->get('PHO_PHOTOS') . '" /></a>
                 </div>
                 <div class="col-xs-12 col-sm-12 col-md-6">');
 $form = new HtmlForm('form_album_' . $childPhotoAlbum->getValue('pho_id'), null, $page, array('type' => 'vertical'));
 $form->addStaticControl('pho_date', $gL10n->get('SYS_DATE'), $albumDate);
 $form->addStaticControl('pho_count', $gL10n->get('SYS_PHOTOS'), $childPhotoAlbum->countImages());
 if (strlen($childPhotoAlbum->getValue('pho_photographers')) > 0) {
     $form->addStaticControl('pho_photographer', $gL10n->get('PHO_PHOTOGRAPHER'), $childPhotoAlbum->getValue('pho_photographers'));
 }
 $page->addHtml($form->show(false));
 $page->addHtml('</div>
             </div>');
 // Notice for users with foto edit rights that the folder of the album doesn't exists
 if (file_exists($ordner) == false && $childPhotoAlbum->hasChildAlbums() == false && $gCurrentUser->editPhotoRight()) {
     $page->addHtml('<div class="alert alert-warning alert-small" role="alert"><span class="glyphicon glyphicon-warning-sign"></span>' . $gL10n->get('PHO_FOLDER_NOT_FOUND') . '</div>');
 }
 // Notice for users with foto edit right that this album is locked
 if ($adm_photo_list['pho_locked'] == 1 && file_exists($ordner)) {
     $page->addHtml('<div class="alert alert-warning alert-small" role="alert"><span class="glyphicon glyphicon-warning-sign"></span>' . $gL10n->get('PHO_ALBUM_NOT_APPROVED') . '</div>');
 }
 // if user has admin rights for photo module then show some functions
Пример #2
0
     // Link zusammensetzen
     $parents = $adm_photo_parent['pho_name'] . ' > ' . $parents;
     // Elternveranst
     $pho_parent_id = $adm_photo_parent['pho_pho_id_parent'];
 }
 $title = $parents . $photo_album->getValue('pho_name');
 $link = $g_root_path . '/adm_program/modules/photos/photos.php?pho_id=' . $photo_album->getValue('pho_id');
 $author = $row['create_name'];
 $pubDate = date('r', strtotime($photo_album->getValue('pho_timestamp_create')));
 // Inhalt zusammensetzen
 $description = $gL10n->get('SYS_DATE') . ': ' . $photo_album->getValue('pho_begin', $gPreferences['system_date']);
 // Enddatum nur wenn anders als startdatum
 if ($photo_album->getValue('pho_end') != $photo_album->getValue('pho_begin')) {
     $description = $gL10n->get('SYS_DATE_FROM_TO', $description, $photo_album->getValue('pho_end', $gPreferences['system_date']));
 }
 $description = $description . '<br /> ' . $gL10n->get('PHO_PHOTOS') . ': ' . $photo_album->countImages();
 $description = $description . '<br />' . $gL10n->get('PHO_PHOTOGRAPHER') . ': ' . $photo_album->getValue('pho_photographers');
 // show the last five photos as examples
 if ($photo_album->getValue('pho_quantity') > 0) {
     $description = $description . '<br /><br />' . $gL10n->get('SYS_PREVIEW') . ':<br />';
     for ($photoNr = $photo_album->getValue('pho_quantity'); $photoNr >= $photo_album->getValue('pho_quantity') - 4 && $photoNr > 0; --$photoNr) {
         $photoPath = SERVER_PATH . '/adm_my_files/photos/' . $photo_album->getValue('pho_begin', 'Y-m-d') . '_' . $photo_album->getValue('pho_id') . '/' . $photoNr . '.jpg';
         // show only photo if that photo exists
         if (file_exists($photoPath)) {
             $description = $description . '<a href="' . $g_root_path . '/adm_program/modules/photos/photo_presenter.php?pho_id=' . $photo_album->getValue('pho_id') . '&amp;photo_nr=' . $photoNr . '"><img
                  src="' . $g_root_path . '/adm_program/modules/photos/photo_show.php?pho_id=' . $photo_album->getValue('pho_id') . '&amp;photo_nr=' . $photoNr . '&amp;pho_begin=' . $photo_album->getValue('pho_begin', 'Y-m-d') . '&amp;thumb=1" border="0" /></a>&nbsp;';
         }
     }
 }
 // add entry to RSS feed
 $rss->addItem($title, $description, $link, $author, $pubDate);