= ".$whichModifiedOn." AND alb_id != ".$whichId." AND alb_status = 'P' "; $queryRel .= "ORDER BY alb_modified_on ASC, alb_published_on ASC "; $queryRel .= "LIMIT 1)"; if ( $mysql_result = mysqli_query($DBLink, $queryRel) ) { while ( $row = mysqli_fetch_assoc($mysql_result) ) { switch ( $row["alb_rel"] ) { case "prev": $metaRelPrev = STP_FULL_URL.$row["col_slug"]."/".$row["alb_slug"]."/"; $prev_rel = "prev"; $prev_url = $metaRelPrev; $prev_alb_title = $row["alb_title"]; $prev_alb_excerpt = $row["alb_excerpt"]; $prev_alb_modified_on =$row["alb_modified_on"]; break; case "next": $metaRelNext = STP_FULL_URL.$row["col_slug"]."/".$row["alb_slug"]."/"; $next_rel = "next"; $next_url = $metaRelNext; $next_alb_title = $row["alb_title"]; $next_alb_excerpt = $row["alb_excerpt"]; $next_alb_modified_on =$row["alb_modified_on"]; break; } } } } else { $error404 = true; } } if ($error404 == true ) { header($_SERVER["SERVER_PROTOCOL"].' 404 Not Found'); include("err404.php"); exit; } $row = getCover( $whichId, $whichSort ); if ( isset($row) AND !empty($row) ) { // -- FB meta tags... $metaFile = STP_URL_CACHE_PHOTOS.preg_replace ("/.(jpe?g|png)/i", "_w_".STP_SOCIAL_IMG_SIZE.".$1", $row["photo_filename"]); $metaOGImage = "\n"; $metaOGImageWidth = "\n"; $metaOGImageHeight = "\n"; $metaPublishedOn = $whichPublishedOn; $metaModifiedOn = $whichModifiedOn; // -- Twitter meta tags... $metaTwitterImage = "\n"; // -- Pinterest image path... $metaFile = STP_URL_CACHE_PHOTOS.preg_replace ("/.(jpe?g|png)/i", "_w_800.$1", $row["photo_filename"]); $pathPinterestImage = $metaFile; $widthPinterestImage = 800; $heightPinterestImage = round(800/$row["photo_aspect_ratio"]); $schemaImg = $metaFile; $schemaImgWidth = $widthPinterestImage; $schemaImgHeight = $heightPinterestImage; } // -- Fancy ... fancyLogo(); ?> " /> " />

...