roomrows;
$rows = $this->rows;
$prices = $this->prices;
$allc = $this->allc;
$vbo_app = VikBooking::getVboApplication();
$vbo_app->loadSelect2();
// access room helper to detect LOS rates
$room_helper = VBORoomHelper::getInstance();
$currencysymb = VikBooking::getCurrencySymb(true);
$idroom = $roomrows['id'];
$name = $roomrows['name'];
if (is_file(VBO_SITE_PATH.DIRECTORY_SEPARATOR.'resources'.DIRECTORY_SEPARATOR.'uploads'.DIRECTORY_SEPARATOR.$roomrows['img']) && getimagesize(VBO_SITE_PATH.DIRECTORY_SEPARATOR.'resources'.DIRECTORY_SEPARATOR.'uploads'.DIRECTORY_SEPARATOR.$roomrows['img'])) {
$img = '';
} else {
$img = '';
}
/**
* We add the names of the categories next to the name of the room for better identification.
*
* @since 1.13.5
*/
if (!empty($roomrows['idcat'])) {
$parts = explode(';', rtrim($roomrows['idcat'], ';'));
$cat_names = array();
foreach ($parts as $cat_id) {
if (empty($cat_id)) {
continue;
}
$cat_name = VikBooking::getCategoryName($cat_id);
if (empty($cat_name)) {
continue;
}
array_push($cat_names, $cat_name);
}
$name = count($cat_names) ? $name . ' (' . implode(', ', $cat_names) . ')' : $name;
}
if (!empty($prices)) {
?>