Skip to content

Instantly share code, notes, and snippets.

@philipusis
Created April 25, 2017 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipusis/723e725598ba0dde04395e2b96a5b1bf to your computer and use it in GitHub Desktop.
Save philipusis/723e725598ba0dde04395e2b96a5b1bf to your computer and use it in GitHub Desktop.
switch ($serviceClass) {
case 'must_to_buy':
show_like_must_to_buy($arParams, $arResult, $serviceArray, $h2 = 'Обязательно к покупке', $serviceClass);
break;
case 2:
case 4:
default:
if($serviceClass == 2) {
$h2 = "Трансферы";
} elseif($serviceClass == 4) {
$h2 = "Экскурсии";
} elseif($serviceClass == 'must_to_buy') {
$h2 = "Обязательно к покупке";
} else {
$h2 = "Другие услуги";
}
show_like_others($arParams, $arResult, $serviceArray, $h2, $serviceClass);
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment