$churi) {
if (in_array(preg_replace("/api$/", '', $source), $onboardable_otas)) {
// the room is mapped with the current channel, but we have a pending onboarding
$ch_counter++;
continue;
}
$is_img = (strpos($churi, 'http') !== false);
// build readable channel name
$raw_ch_name = $source;
$lower_name = strtolower($raw_ch_name);
$lower_name = preg_replace("/(hotel|vr)$/", ' $1', $lower_name);
$channel_name = ucwords(preg_replace("/api$/", '', $lower_name));
// build OTA account attributes
$ota_account_attributes = [];
if (!strcasecmp(($room_ota_accounts[$ch_counter]['channel'] ?? ''), $source)) {
$ota_account_attributes = [
'data-ota-name="' . $this->escape($channel_name) . '"',
'data-ota-idroom="' . $this->escape(($room_ota_accounts[$ch_counter]['idroomota'] ?? '')) . '"',
'data-ota-account-name="' . $this->escape(($room_ota_accounts[$ch_counter]['account_name'] ?? '')) . '"',
'data-ota-account-id="' . $this->escape(($room_ota_accounts[$ch_counter]['host_main_id'] ?? '')) . '"',
];
}
?>
$ch_name) {
$ch_logo_url = $vcm_logos ? $vcm_logos->setProvenience($ch_name, $ch_name)->getTinyLogoURL() : '';
if (!$ch_logo_url || strpos($ch_logo_url, 'http') === false) {
continue;
}
?>