1<?php 2// force UTF-8 Ø 3if (!defined('WEBPATH')) 4 die(); 5if (class_exists('favorites')) { 6 ?> 7 <!DOCTYPE html> 8 <html<?php printLangAttribute(); ?>> 9 <head> 10 <meta charset="<?php echo LOCAL_CHARSET; ?>"> 11 <?php zp_apply_filter('theme_head'); ?> 12 <?php printHeadTitle(); ?> 13 <meta name="viewport" content="width=device-width, initial-scale=1"> 14 <link rel="stylesheet" href="<?php echo $_zp_themeroot; ?>/style.css" /> 15 <?php jqm_loadScripts(); ?> 16 </head> 17 18 <body> 19 <?php zp_apply_filter('theme_body_open'); ?> 20 21 22 <div data-role="page" id="mainpage"> 23 24 <?php jqm_printMainHeaderNav(); ?> 25 26 <div class="ui-content" role="main"> 27 <div class="content-primary"> 28 <h2 class="breadcrumb"><a href="<?php echo getGalleryIndexURL(); ?>"><?php echo gettext('Gallery'); ?></a> <?php printParentBreadcrumb('', '', ''); ?> <?php printAlbumTitle(); ?></h2> 29 <?php printAlbumDesc(); ?> 30 <?php if (hasPrevPage() || hasNextPage()) printPageListWithNav(gettext("prev"), gettext("next"), false, true, 'pagelist', NULL, true, 7); ?> 31 <ul data-role="listview" data-inset="true" data-theme="a" class="ui-listview ui-group-theme-a"> 32 <?php while (next_album()): ?> 33 <li> 34 <a href="<?php echo html_encode(getAlbumURL()); ?>" title="<?php echo gettext('View album:'); ?>"> 35 <?php printCustomAlbumThumbImage(getAnnotatedAlbumTitle(), null, 79, 79, 79, 79, NULL, null, NULL, NULL); ?> 36 <?php printAlbumTitle(); ?><small> (<?php printAlbumDate(''); ?>)</small> 37 <div class="albumdesc"><?php echo shortenContent(getAlbumDesc(), 100, '(...)', false); ?></div> 38 <small class="ui-li-count"><?php jqm_printImageAlbumCount() ?></small> 39 </a> 40 <?php printAddToFavorites($_zp_current_album, '', gettext('Remove')); ?> 41 </li> 42 <?php endwhile; ?> 43 </ul> 44 <ul data-role="listview" data-inset="true" data-theme="a" class="ui-listview ui-group-theme-a"> 45 <?php while (next_image()): ?> 46 <li> 47 <a href="<?php echo html_encode(getImageURL()); ?>" title="<?php printBareImageTitle(); ?>"> 48 <?php printCustomSizedImage(getAnnotatedImageTitle(), NULL, 79, 79, 79, 79, NULL, NULL, NULL, NULL, true, NULL); ?> 49 <?php printImageTitle(); ?><small> (<?php printImageDate(''); ?>)</small> 50 <div class="albumdesc"><?php echo $_zp_current_image->getAlbum()->getTitle(); ?></div> 51 </a> 52 <?php printAddToFavorites($_zp_current_image, '', gettext('Remove')); ?> 53 </li> 54 <?php endwhile; ?> 55 </ul> 56 <br class="clearall" /> 57 <?php if (hasPrevPage() || hasNextPage()) printPageListWithNav(gettext("prev"), gettext("next"), false, true, 'pagelist', NULL, true, 7); ?> 58 <?php 59 if (function_exists('printCommentForm')) { 60 printCommentForm(); 61 } 62 ?> 63 </div> 64 <div class="content-secondary"> 65 <?php jqm_printMenusLinks(); ?> 66 </div> 67 </div><!-- /content --> 68 <?php jqm_printBacktoTopLink(); ?> 69 <?php jqm_printFooterNav(); ?> 70 </div><!-- /page --> 71 72 <?php zp_apply_filter('theme_body_close'); ?> 73 74 </body> 75 </html> 76 <?php 77} else { 78 include(SERVERPATH . '/' . ZENFOLDER . '/404.php'); 79} 80?>