$customPath = '/'.'backlight/custom'; $customStylesheetEnabled = (bool) '1'; $customStylesheetFilename = $customStylesheetEnabled ? 'somethingchanged.css' : ''; $phpluginsFilename = ''; $noindex = false || (isset($album) && isset($enablePassword) && $enablePassword); if ($noindex) { echo ''; } <thp>echo NameHelper::formatPageTitle("PAGE_TITLE - COMPANY_NAME");</thp> $childType = 'album'; $siteUrl = URLHelper::siteURL(); $imageUrl = null; $imageWidth = null; $imageHeight = null; if (isset($photo)) { $imageUrl = $photo->getUrl('photos'); list($imageWidth, $imageHeight) = getimagesize($photo->getLocalPath('photos')); } elseif (isset($album) && $album->getPath()) { $webImageHelper = new WebImageHelper(); $webImageHelper->setRenditionPath('photos'); $coverImage = $webImageHelper->createCoverImageForAlbum($album); $imageUrl = $coverImage->getAbsoluteUrl(); if ($imageUrl) { $imageWidth = $coverImage->getWidth(); $imageHeight = $coverImage->getHeight(); } } $pageTitle = defined('PAGE_TITLE') ? PAGE_TITLE : ''; if (isset($photo)) { $pageTitle = $photo->hasMetadata(Photo::$PHOTO_TITLE) ? $photo->getMetadata(Photo::$PHOTO_TITLE) : $photo->getFilename(); } elseif ((isset($album) && $album->getType() === 'topLevel') && defined('PAGE_TITLE')) { $pageTitle = PAGE_TITLE; } elseif (isset($album)) { $pageTitle = $album->getTitle(); } elseif (isset($child)) { $pageTitle = preg_replace('/\'/', "\'", $child->getTemplate()->getTitle()); } $description = ''; if (isset($photo)) { $description = $photo->hasMetadata(Photo::$PHOTO_CAPTION) ? $photo->getMetadata(Photo::$PHOTO_CAPTION) : ''; } elseif (isset($album)) { $description = $album->getDescription(); } $description = $description ? preg_replace('/"/', '"', $description) : ''; $siteName = preg_replace('/"/', '"', __c('COMPANY_NAME')); $url = URLHelper::absoluteCurrentPageURL(); // RSS $siteTitle = __c('TITLE'); $siteTitle = preg_replace('/\[COMPANY_NAME\]/', __c('COMPANY_NAME'), $siteTitle); if ($childType == GenericEngine::$ENGINE_TYPE_ALBUM && isset($album) && __c('ALBUM_RSS_ENABLED') == 'yes') { echo "\t".''."\n"; } else if (__c('SITE_RSS_ENABLED') == 'yes') { echo "\t".''."\n"; } if (__c('GOOGLE_RECAPTCHA_V3_TERMS_MODE') == 'text') { } /** Hide share commands when crg or protected */ $crg = (bool) ''; $protected = isset($enablePassword) && $enablePassword; if (isset($album) && $album instanceof Album && ($crg || $protected)) { echo "\t".''."\n"; } if (isset($cssIncludes) && is_array($cssIncludes)) { foreach ($cssIncludes as $cssInclude) { echo "\t".''."\n"; } } if ($customStylesheetFilename) { echo "\t".''."\n"; } // PHPlugins Insert $void = !isset($phplugins) || $phplugins->dispatch('head'); $slug = ''; $type = 'album'; if (isset($album) && $album instanceof Album) { if ($album->getType() == 'album' || $album->getType() == 'set') { $slug = $album->getSlug(); } else if ($album->getType() == 'topLevel') { $slug = $album->getTopLevelGalleriesDirectory(); } }
$add_mode = !isset($phplugins) || $phplugins->dispatch('header_top'); if ( $add_mode ) { $add_mode = !isset($phplugins) || $phplugins->dispatch('masthead_primary_top'); if ( $add_mode ) { } // ttg_masthead_primary_top $void = !isset($phplugins) || $phplugins->dispatch('masthead_primary_bottom'); } // ttg_header_top $void = !isset($phplugins) || $phplugins->dispatch('header_bottom');
$void = !isset($phplugins) || $phplugins->dispatch('main_top'); // Password if (isset($album) && (!isset($enablePassword) || $enablePassword) && !$logged_in) { if ($enablePasswordForProtectedPhotos) { if( (!isset($embedded) || !$embedded) && $album->showBreadcrumbs() ){ echo $album->getBreadcrumbs( array( 'container' => 'ul.breadcrumbs' , 'child_container' => 'li.fa_pseudo' ) ); } $has_copy = false; if((!isset($embedded) || !$embedded) && (($album->replacePageCopy() && $album->getPageCopy()) || ($album->getPageCopy() || $has_copy && !$album->replacePageCopy()))){
$add_mode = !isset($phplugins) || $phplugins->dispatch('copy_top'); if ( $add_mode ) { echo isset($album) && ( $album->placePageCopyAbove() || $album->replacePageCopy() ) ? $album->getPageCopy() : ''; if( !$album || !$album->replacePageCopy() ){ } echo isset($album) && $album->placePageCopyBelow() ? $album->getPageCopy() : ''; } // ttg_copy_top $void = !isset($phplugins) || $phplugins->dispatch('copy_bottom');
} if ($enablePasswordForProtectedPhotos && $hasAdditionalPhotos && !$logged_in) {
}