} else { $metatitle = getBareAlbumTitle(); } $zpfocus_metatitle = $metatitle . getTitleBreadcrumb() . ' | ' . getBareGalleryTitle(); $zpfocus_metadesc = shortenContent(getBareAlbumDesc(), 150, '...'); $galleryactive = true; if (getOption('RSS_album_image')) { printRSSHeaderLink('Collection', getBareAlbumTitle() . ' - ' . gettext('Latest Images'), $lang = '') . "\n"; } if (function_exists('printCommentForm') && getOption('RSS_comments')) { printRSSHeaderLink('Comments-album', getBareAlbumTitle() . ' - ' . gettext('Latest Comments'), $lang = '') . "\n"; } break; case 'image.php': if (!$_zp_current_album->isDynamic()) { $titlebreadcrumb = getTitleBreadcrumb(); } else { $titlebreadcrumb = ''; } $zpfocus_metatitle = getBareImageTitle() . ' | ' . getBareAlbumTitle() . $titlebreadcrumb . ' | ' . getBareGalleryTitle(); $zpfocus_metadesc = shortenContent(getBareImageDesc(), 150, '...'); $galleryactive = true; if (function_exists('printCommentForm') && getOption('RSS_comments')) { printRSSHeaderLink('Comments-image', getBareImageTitle() . ' - ' . gettext('Latest Comments'), $lang = '') . "\n"; } break; case 'archive.php': $zpfocus_metatitle = gettext("Archive View") . ' | ' . getBareGalleryTitle(); $zpfocus_metadesc = shortenContent(getBareGalleryDesc(), 150, '...'); break; case 'search.php':
$metatitle = getBareAlbumTitle() . " ({$_zp_page})"; } else { $metatitle = getBareAlbumTitle(); } $zpskel_metatitle = $metatitle . getTitleBreadcrumb() . ' | ' . getBareGalleryTitle(); $zpskel_metadesc = truncate_string(getBareAlbumDesc(), 150, '...'); $galleryactive = true; if (getOption('RSS_album_image')) { printRSSHeaderLink('Collection', getBareAlbumTitle() . ' - ' . gettext('Latest Images'), $lang = '') . "\n"; } if (function_exists('printCommentForm') && getOption('RSS_comments')) { printRSSHeaderLink('Comments-album', getBareAlbumTitle() . ' - ' . gettext('Latest Comments'), $lang = '') . "\n"; } break; case 'image.php': $zpskel_metatitle = getBareImageTitle() . ' | ' . getBareAlbumTitle() . getTitleBreadcrumb() . ' | ' . getBareGalleryTitle(); $zpskel_metadesc = truncate_string(getBareImageDesc(), 150, '...'); $galleryactive = true; if (function_exists('printCommentForm') && getOption('RSS_comments')) { printRSSHeaderLink('Comments-image', getBareImageTitle() . ' - ' . gettext('Latest Comments'), $lang = '') . "\n"; } break; case 'archive.php': $zpskel_metatitle = gettext("Archive View") . ' | ' . getBareGalleryTitle(); $zpskel_metadesc = truncate_string(getBareGalleryDesc(), 150, '...'); $galleryactive = true; break; case 'search.php': $zpskel_metatitle = gettext('Search') . ' | ' . html_encode(getSearchWords()) . ' | ' . getBareGalleryTitle(); $zpskel_metadesc = truncate_string(getBareGalleryDesc(), 150, '...'); break;