Beispiel #1
0
function accommodationdetails_reviews($merchant_name)
{
    if (isset($_POST) && !empty($_POST)) {
        $_SESSION['ratings']['filters']['typologyid'] = $_POST['filters']['typologyid'];
    }
    $parts = explode('-', $merchant_name);
    $merchant_id = $parts[0];
    $model = new BookingForConnectorModelMerchantDetails();
    $merchant = $model->getItem($merchant_id);
    $summaryRatings = $model->getMerchantRatingAverageFromService($merchant_id);
    $ratings = $model->getItemsRating($merchant_id);
    if (false !== ($temp_message = get_transient('temporary_message'))) {
        echo $temp_message;
        delete_transient('temporary_message');
    }
    include 'templates/merchantreviews.php';
}