<?php include dirname(__FILE__) . '/core/partials/pageCheck.php'; include_once Config::$root_path . '/classes/productCollection.php'; $thisPage = "collection"; $id = Utility::getRequestVariable('id', 0); $errorMsg = ""; if ($id == 0) { $errorMsg = "You must specify a valid collection id."; } else { try { $class = new ProductCollection($userID, $tenantID); $collection = $class->getEntity($id); $title = $collection["name"]; Log::logPageView('collection', $id, ''); } catch (Exception $ex) { $errorMsg = "Unable to load requested collection: " . $ex->getMessage(); $title = "Not Found"; } } ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title><?php echo Utility::getTenantProperty($applicationID, $_SESSION['tenantID'], $userID, 'title') . ': ' . $title; ?> </title> <?php
" /> <input id="coreServiceUrl" type="hidden" value="<?php echo Config::getCoreServiceRoot(); ?> " /> <div id="mapwrapper" class="mapWrapper"> <div id="mapcanvas"></div> <div id="loading" class="modal"><!-- Place inside div to cover --></div> </div> </div> <?php } $productListId = $propertyBag->getProperty($bagName, 'productListId', 0); if ($productListId > 0) { $class = new ProductCollection($userID, $tenantID); $collection = $class->getEntity($productListId); ?> <div class="container featureContainer condensed"> <h3><?php echo Utility::renderContent('region:productListTitle' . $region, $_SESSION['tenantID'], $user); ?> </h3> <p><?php echo Utility::renderContent('region:productListDescription' . $region, $_SESSION['tenantID'], $user); ?> </p> <input id="queryParams" type="hidden" value="<?php echo $collection["queryParams"]; ?> " /> <div id="collectionAnchor" class="collectionAnchor"></div>