function largePreviewContainer($element, $name, $artistUrl) { $largePreviewHTML = ""; if (imageIsSet($element)) { $largePreviewHTML .= '<div class="container" itemscope itemtype="http://schema.org/Painting">'; // if($artWork["work_id"] == $urlWorkId){ // // if work id passed in url matches the id of the contaner add class selected // echo "selected "; // } $largePreviewHTML .= largeImage($element, $name); $largePreviewHTML .= '<div id="infoHolder">'; $largePreviewHTML .= workInfo($element, $name); $largePreviewHTML .= returnLink($artistUrl, $name); $largePreviewHTML .= '</div></div>'; } return $largePreviewHTML; }
?> </a></li> </ol> <div> <!-- Post description--> <?php echo "<h2>" . $posts['Title'] . "</h2></br>"; ?> </div> <div class="well"> <div class="row"> <?php $pdo = databaseConnection(); $sql = "SELECT * FROM TravelImage \n" . "INNER JOIN TravelImageDetails \n" . "ON TravelImageDetails.ImageID = TravelImage.ImageID \n" . "WHERE TravelImage.ImageID = " . $_GET['id']; $result = $pdo->query($sql); largeImage($result); $pdo = null; ?> </div> </div> <div> <?php echo "<p>" . $posts['Description'] . "</p>"; ?> </div> </div> <!-- end main content column --> <div class="col-md-2"> <?php include "includes/travel-right-rail-image.inc.php";