Centro Comercial Dolce Vita

Error compiling template "eCom/Product/Product.cshtml"
Line 454: The name 'i2' does not exist in the current context
Line 454: The name 'i2' does not exist in the current context
Line 454: The name 'i2' does not exist in the current context
Line 456: The name 'i2' does not exist in the current context
Line 458: The name 'i2' does not exist in the current context
Line 458: The name 'i2' does not exist in the current context
Line 460: The name 'i2' does not exist in the current context
Line 462: The name 'i2' does not exist in the current context
Line 462: The name 'i2' does not exist in the current context
Line 464: The name 'i2' does not exist in the current context
Line 466: The name 'i2' does not exist in the current context
Line 466: The name 'i2' does not exist in the current context
Line 470: The name 'i2' does not exist in the current context
Line 476: The name 'i2' does not exist in the current context
Line 479: The name 'i2' does not exist in the current context
Line 480: The name 'i2' does not exist in the current context
Line 485: The name 'i2' does not exist in the current context
Line 486: The name 'i2' does not exist in the current context
Line 491: The name 'i2' does not exist in the current context
Line 492: The name 'i2' does not exist in the current context

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using System; 3 @using System.Linq; 4 @using System.Data; 5 @using Dynamicweb.Rendering; 6 7 @{ 8 @* Translates *@ 9 var str_translateKnowMore = "Saber mais"; 10 var str_translateAppleStore = "App Store"; 11 var str_translateGoogleStore = "Google Play"; 12 var str_translateWindowsStore = "Windows Store"; 13 var str_translateContacts = "Contactos"; 14 var str_translateGoToLocation = "Ver Localização"; 15 var str_translatePhotos = "Fotografias"; 16 var str_translateLocation = "Localização"; 17 var str_translateVideo = "Video"; 18 var str_translatePhone = "Telefone"; 19 var str_translateFax = "Fax"; 20 var str_translateEmail = "E-mail"; 21 var str_translateOtherInfo = "Mais informação"; 22 var str_translateRoomsInfo = "Quartos"; 23 var str_translateEnvironmentFriend = "Amigo do Ambiente"; 24 var str_translateAffordable = "Acessibilidades"; 25 var str_translatePetFriendly = "Aceita animais"; 26 var str_translateNotToBeMissed = " "; 27 var str_translateCultureTranslateRight = "Programa Resumido"; 28 var str_translateAddedToYourTrip = "Adicionado à sua viagem com sucesso!"; 29 var str_translateContinue = "Continuar"; 30 var str_translateDownloadYourTrip = "Download da sua viagem"; 31 var str_translateDistanceTRP = "Distância"; 32 var str_translateStartTRP = "Inicio"; 33 var str_translateEndTRP = "Fim"; 34 var str_translateDurationTRP = "Duração"; 35 var str_translateRightFAD = "Especialidade"; 36 var str_translateRightAuthorFAD = "Autor"; 37 var str_translatePrice = "Preço"; 38 var str_translateRightColumnCollectionsMUS = "Colecções"; 39 var str_translateOpenWebsiteList = "Abrir website"; 40 var str_translateSendEmailList = "Enviar email"; 41 var str_translateCheckTimeTables = "Check the time tables"; 42 var str_translateBusLine = "Line"; 43 var str_translateWalkingToursDetail = "Detalhe"; 44 var str_translateWalkingToursDistance = "Distância"; 45 var str_translateWalkingToursDifficulty = "Dificuldade"; 46 var str_translateWalkingToursDuration = "Duração"; 47 var str_translateWalkingToursStartEnd = "Início/Fim"; 48 var str_translateWalkingToursAltitudeMaxMin = "Altitude min/máx"; 49 var str_translateViewRelatedEvent = "Ver evento"; 50 var str_translateTemporaryClosed = "Fechado temporáriamente"; 51 var str_translateRightBrands = "Brands"; 52 53 var str_translateUpcomingEventsTitle = "Upcoming Events"; 54 var str_translateBrochureAndMapsTitle = "Downloads"; 55 56 @* Variables *@ 57 string str_firstGroup = @GetValue("Ecom:Product.PrimaryOrFirstGroupID").ToString(); 58 59 var str_imageSrc = "/admin/public/getimage.ashx?Image="; 60 var str_imageSrcParams = "&amp;Width=700&amp;Height=365&amp;Compression=80"; 61 var str_imageSrcFinal = ""; 62 var str_productName = GetString("Ecom:Product.Name"); 63 var str_productLink = GetString("Ecom:Product.Link.Clean"); 64 65 var arr_items = Dynamicweb.Content.Items.ItemManager.Storage.GetById(Pageview.Area.get_Value("areaItemType").ToString(), Pageview.Area.get_Value("areaItemId").ToString()); 66 var num_cartPageId = arr_items["CartPageId"]; 67 var str_visitOficcialSite1 = arr_items["VisitOficcialSite1"]; 68 var str_visitOficcialSite2 = arr_items["VisitOficcialSite2"]; 69 var str_addTrip1 = arr_items["AddTrip1"]; 70 var str_addTrip2 = arr_items["AddTrip2"]; 71 var str_latitude = arr_items["Latitude"]; 72 var str_longitude = arr_items["Longitude"]; 73 var str_downloadPrograma2 = arr_items["DownloadDoPrograma2"]; 74 var str_downloadTryp1 = arr_items["DownloadTrip1"]; 75 var str_pageViewAllEvents = arr_items["ID_PageViewEvents"]; 76 77 var str_sql = "SELECT TOP 1 ProductCategoryID FROM EcomGroups where GroupId='" + str_firstGroup + "'"; 78 var obj_dataSet = Dynamicweb.Database.CreateDataSet(str_sql); 79 var str_groupCategory = obj_dataSet.Tables[0].Rows[0]["ProductCategoryID"].ToString(); 80 81 82 <div id="productDetails" class="@str_groupCategory"> 83 <div class="eComMultimediaContainer"> 84 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageLarge.Clean")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageMedium.Clean")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageSmall.Clean"))) 85 { 86 <div class="eComMultimediaMask"> 87 <ul id="eComMultimediaGallery"> 88 89 @if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageLarge.Clean"))){ 90 str_imageSrcFinal = str_imageSrc + GetValue("Ecom:Product.ImageLarge.Clean") + str_imageSrcParams; 91 <li> 92 <figure> 93 <img src="@str_imageSrcFinal" alt="@str_productName" /> 94 </figure> 95 </li> 96 } 97 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageMedium.Clean"))){ 98 str_imageSrcFinal = str_imageSrc + GetValue("Ecom:Product.ImageMedium.Clean") + str_imageSrcParams; 99 <li> 100 <figure> 101 <img src="@str_imageSrcFinal" alt="@str_productName" /> 102 </figure> 103 </li> 104 } 105 </ul> 106 </div> 107 } 108 @if (!string.IsNullOrWhiteSpace(GetString(("Ecom:Product.CategoryField."+str_groupCategory+".Longitude.Value.Clean"))) && !string.IsNullOrWhiteSpace(GetString(("Ecom:Product.CategoryField."+str_groupCategory+".Latitude.Value.Clean")))) 109 { 110 <div class="location"> 111 <div id="map" class="map"></div> 112 </div> 113 } 114 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Video.Value.Clean"))) 115 { 116 <div class="video"> 117 <iframe width="700" height="365" src="@GetValue("Ecom:Product:Field.Video.Value.Clean"))?autohide=1" frameborder="0"></iframe> 118 </div> 119 } 120 <ul class="eComMultimediaNav"> 121 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageLarge.Clean")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageMedium.Clean")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageSmall.Clean"))) 122 { 123 <li data-href="eComMultimediaMask"> 124 @str_translatePhotos 125 </li> 126 } 127 @if (!string.IsNullOrWhiteSpace(GetString(("Ecom:Product.CategoryField."+str_groupCategory+".Longitude.Value.Clean"))) && !string.IsNullOrWhiteSpace(GetString(("Ecom:Product.CategoryField."+str_groupCategory+".Latitude.Value.Clean")))) 128 { 129 <li data-href="location"> 130 @str_translateLocation 131 </li> 132 } 133 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Video.Value.Clean"))) { 134 <li data-href="video"> 135 @str_translateVideo 136 </li> 137 } 138 </ul> 139 </div> 140 141 <div class="moreInfo"> 142 @* Column left general content *@ 143 <div class="columnLeft"> 144 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.HTL.accommodationType.OptionLabel"))) 145 { 146 <span class="hotelType"> 147 @GetValue("Ecom:Product.CategoryField.HTL.accommodationType.OptionLabel") 148 </span> 149 } 150 151 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.HTL.accommodationType.OptionLabel")) && GetInteger("Ecom:Product.CategoryField.HTL.accommodationStars.Value.Clean") > 0) 152 { 153 <span class="@GetValue("Ecom:Product.CategoryField.HTL.accommodationStars.Value.Clean") starsRate"> 154 @GetValue("Ecom:Product.CategoryField.HTL.accommodationStars.OptionLabel") 155 </span> 156 } 157 158 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.ShortDescription"))) 159 { 160 <div class="description"> 161 @GetValue("Ecom:Product.ShortDescription.Raw") 162 </div> 163 } 164 165 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.LongDescription"))) 166 { 167 <div class="description"> 168 @GetValue("Ecom:Product.LongDescription") 169 </div> 170 } 171 172 </div> 173 174 @* Column right only specific groups content *@ 175 @if(str_groupCategory=="HTL" || str_groupCategory=="SNL" ||str_groupCategory=="ACT" || str_groupCategory=="FAD" || str_groupCategory=="EVT" || str_groupCategory=="FAD" || str_groupCategory=="MUS"){ 176 <div class="columnRight"> 177 <div class="otherInfo"> 178 179 @* TODO - Passar o swicth para dentro das condições, de modo a não ser carregado o title vazio *@ 180 @switch(str_groupCategory){ 181 case "EVT": 182 <span class="title">@str_translateCultureTranslateRight</span> 183 break; 184 case "FAD": 185 <span class="title">@str_translateRightFAD</span> 186 break; 187 case "MUS": 188 <span class="title">@str_translateRightColumnCollectionsMUS</span> 189 break; 190 case "ACT": 191 if(GetString("Ecom:Product.CategoryField."+str_groupCategory+".ActivityType.Value.Clean") == "walkingTours"){ 192 <span class="title">@str_translateWalkingToursDetail</span> 193 } 194 break; 195 case "SNL": 196 <span class="title">@str_translateRightBrands</span> 197 break; 198 default: 199 <span class="title">@str_translateOtherInfo</span> 200 break; 201 } 202 203 @if(str_groupCategory=="ACT" && GetString("Ecom:Product.CategoryField."+str_groupCategory+".ActivityType.Value.Clean") == "walkingTours"){ 204 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.ACT.Distance.Value"))){ 205 <span class="roomsNumber"> 206 <b>@str_translateWalkingToursDistance:</b> @GetValue("Ecom:Product.CategoryField.ACT.Distance.Value") 207 </span> 208 } 209 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.ACT.Difficulty.Value"))){ 210 <span class="roomsNumber"> 211 <b>@str_translateWalkingToursDifficulty:</b> @GetValue("Ecom:Product.CategoryField.ACT.Difficulty.OptionLabel") 212 </span> 213 } 214 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.ACT.Duration.Value"))){ 215 <span class="roomsNumber"> 216 <b>@str_translateWalkingToursDuration:</b> @GetValue("Ecom:Product.CategoryField.ACT.Duration.Value") 217 </span> 218 } 219 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.ACT.StartTime.Value")) && !string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.ACT.EndTime.Value"))){ 220 <span class="roomsNumber"> 221 <b>@str_translateWalkingToursStartEnd:</b> @GetValue("Ecom:Product.CategoryField.ACT.StartTime.Value") / @GetValue("Ecom:Product.CategoryField.ACT.EndTime.Value") 222 </span> 223 } 224 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.ACT.maxAltitude.Value")) && !string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.ACT.minAltitude.Value"))){ 225 <span class="roomsNumber"> 226 <b>@str_translateWalkingToursAltitudeMaxMin:</b> @GetValue("Ecom:Product.CategoryField.ACT.maxAltitude.Value") / @GetValue("Ecom:Product.CategoryField.ACT.minAltitude.Value") 227 </span> 228 } 229 if (GetString("Ecom:Product.CategoryField.ACT.Encerrado.Value")=="True"){ 230 <span class="temporaryClosed"> 231 @str_translateTemporaryClosed 232 </span> 233 } 234 } 235 236 @if(str_groupCategory=="EVT"){ 237 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.EVT.Plan.Value"))) 238 { 239 <div class="otherIcons"> 240 @GetValue("Ecom:Product.CategoryField.EVT.Plan.Value.Clean") 241 </div> 242 } 243 } 244 245 @if(str_groupCategory=="FAD"){ 246 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.FAD.GastronomicSpecialty.Value"))) 247 { 248 <div class="otherIcons"> 249 @GetValue("Ecom:Product.CategoryField.FAD.GastronomicSpecialty.Value.Clean") 250 </div> 251 } 252 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.FAD.Author.Value"))) 253 { 254 <span class="title"> 255 @str_translateRightAuthorFAD 256 </span> 257 <div class="otherIcons"> 258 @GetValue("Ecom:Product.CategoryField.FAD.Author.Value.Clean") 259 </div> 260 } 261 } 262 263 @if(str_groupCategory=="MUS"){ 264 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.MUS.Collections.Value"))) 265 { 266 <div class="otherIcons"> 267 @GetValue("Ecom:Product.CategoryField.MUS.Collections.Value.Clean") 268 </div> 269 } 270 } 271 272 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.HTL.roomsNumber.Value"))) 273 { 274 <span class="roomsNumber"> 275 @GetValue("Ecom:Product.CategoryField.HTL.roomsNumber.Value") @str_translateRoomsInfo 276 </span> 277 } 278 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.SNL.Shopping_List.Value"))) 279 { 280 <div class="shoppingList roomsNumber"> 281 @GetValue("Ecom:Product.CategoryField.SNL.Shopping_List.Value") 282 </div> 283 } 284 285 @if (GetString("Ecom:Product.CategoryField.HTL.Logo_Pet_Friendly.Value.Clean") == "True" || GetString("Ecom:Product.CategoryField.HTL.Logo_Amigo_Ambiente.Value.Clean") == "True" || GetString("Ecom:Product.CategoryField.HTL.Logo_Acessivel.Value.Clean") == "True" || GetString("Ecom:Product.CategoryField.HTL.Logo_SRTT_Award.Value.Clean") == "True") 286 { 287 <div class="otherIcons"> 288 @if (GetString("Ecom:Product.CategoryField.HTL.Logo_Pet_Friendly.Value.Clean") == "True"){ 289 <img src="/Files/Templates/Designs/visitMadeira/images/ecoIcon.png" title="@str_translateEnvironmentFriend" alt="@str_translateEnvironmentFriend" /> 290 } 291 @if (GetString("Ecom:Product.CategoryField.HTL.Logo_Amigo_Ambiente.Value.Clean") == "True"){ 292 <img src="/Files/Templates/Designs/visitMadeira/images/accessIcon.png" title="@str_translateAffordable" alt="@str_translateAffordable" /> 293 } 294 @if (GetString("Ecom:Product.CategoryField.HTL.Logo_Acessivel.Value.Clean") == "True"){ 295 <img src="/Files/Templates/Designs/visitMadeira/images/petIcon.png" title="@str_translatePetFriendly" alt="@str_translatePetFriendly" /> 296 } 297 @if (GetString("Ecom:Product.CategoryField.HTL.Logo_SRTT_Award.Value.Clean") == "True"){ 298 <img class="srttAward" src="/Files/Templates/Designs/visitMadeira/images/excellenceIcon.png" title="" alt="" /> 299 } 300 </div> 301 } 302 </div> 303 304 </div> 305 } 306 307 @* Loop Related Products *@ 308 @if(GetLoop("ProductRelatedGroups").Count > 0){ 309 foreach (LoopItem i in GetLoop("ProductRelatedGroups")){ 310 string str_relatedGroupID = i.GetString("Ecom:Product:RelatedGroup.GroupID"); 311 312 <div id="relatedGroup_@str_relatedGroupID"> 313 @* Eventos *@ 314 @if(str_relatedGroupID=="RELGRP5"){ 315 <h2>@str_translateUpcomingEventsTitle</h2> 316 } 317 318 @* Brochure & Apps *@ 319 @if(str_relatedGroupID=="RELGRP7" || str_relatedGroupID=="RELGRP2"){ 320 <h2>@str_translateBrochureAndMapsTitle</h2> 321 } 322 323 @foreach (LoopItem i2 in i.GetLoop("RelatedProducts")){ 324 325 @* Promotores *@ 326 if(str_relatedGroupID=="RELGRP4"){ 327 <div class="miniInfo activitiesPromotor"> 328 <h2> 329 <a href="@i2.GetValue("Ecom:Product.Link.Clean")"> 330 @i2.GetValue("Ecom:Product.Name") 331 </a> 332 </h2> 333 334 <div class="columnLeft"> 335 <figure> 336 <a href="@i2.GetValue("Ecom:Product.Link.Clean")" title="@i2.GetValue("Ecom:Product.Name")"> 337 @if(!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ImageSmall.Clean"))) 338 { 339 <img src="/admin/public/getimage.ashx?Image=@i2.GetValue("Ecom:Product.ImageSmall.Clean")&amp;altFmImage_path=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=120&amp;Height=80&amp;Compression=90" alt="@i2.GetValue("Ecom:Product.Name")"> 340 } 341 else if(!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ImageMedium.Clean"))) 342 { 343 <img src="/admin/public/getimage.ashx?Image=@i2.GetValue("Ecom:Product.ImageMedium.Clean")&amp;altFmImage_path=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=120&amp;Height=80&amp;Compression=90" alt="@i2.GetValue("Ecom:Product.Name")"> 344 } 345 else if(!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ImageLarge.Clean"))) 346 { 347 <img src="/admin/public/getimage.ashx?Image=@i2.GetValue("Ecom:Product.ImageLarge.Clean")&amp;altFmImage_path=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=120&amp;Height=80&amp;Compression=90" alt="@i2.GetValue("Ecom:Product.Name")"> 348 } 349 else 350 { 351 <img src="/admin/public/getimage.ashx?Image=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=120&amp;Height=80&amp;Compression=90" alt="@i2.GetValue("Ecom:Product.Name")"> 352 } 353 </a> 354 </figure> 355 356 357 @if (!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ShortDescription"))) 358 { 359 <div class="hotelShortDescription"> 360 @i2.GetString("Ecom:Product.ShortDescription") 361 </div> 362 } 363 364 </div> 365 366 <div class="columnRight"> 367 <span class="titleContacts">@str_translateContacts</span> 368 369 @if (!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product:Field.Address.Value.Clean"))){ 370 <div class="address">@i2.GetValue("Ecom:Product:Field.Address.Value.Clean")</div> 371 } 372 @if (!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product:Field.Phone.Value.Clean"))){ 373 <div class="phone">@i2.GetValue("Ecom:Product:Field.Phone.Value.Clean")</div> 374 } 375 376 @if (!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product:Field.email.Value.Clean"))){ 377 <div class="email"> 378 <a href="mailto:@i2.GetValue("Ecom:Product:Field.email.Value.Clean")">@str_translateSendEmailList</a> 379 </div> 380 } 381 382 @if (!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product:Field.website.Value.Clean"))){ 383 <div class="website"> 384 <a target="_blank" href="@(i2.GetString("Ecom:Product:Field.website.Value.Clean").StartsWith("http") ? i2.GetString("Ecom:Product:Field.website.Value.Clean") : "http://"+i2.GetString("Ecom:Product:Field.website.Value.Clean"))">@str_translateOpenWebsiteList</a> 385 </div> 386 } 387 </div> 388 </div> 389 }else if(str_relatedGroupID=="RELGRP5"){ 390 @* Eventos *@ 391 <div class="eventsGroupRelation"> 392 <span class="title"> 393 @i2.GetValue("Ecom:Product.CategoryField.EVT.EventType.OptionLabel") 394 </span> 395 <div> 396 <span class="eventName">@i2.GetValue("Ecom:Product.Name")</span> 397 <span class="eventDate">@i2.GetValue("Ecom:Product.CategoryField.EVT.Date.Value.Clean")</span> 398 <span class="eventLocation">@i2.GetValue("Ecom:Product:Field.Location.Value.Clean")</span> 399 <a href="/Default.aspx?ID=@str_pageViewAllEvents&ProductID=@i2.GetValue("Ecom:Product.ID")">@str_translateViewRelatedEvent</a> 400 </div> 401 </div> 402 }else if(str_relatedGroupID=="RELGRP2"){ 403 404 @* Apps *@ 405 <div> 406 @if(!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ImageLarge.Clean")) || !string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ImageSmall.Clean")) || !string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ImageMedium.Clean"))){ 407 <div class="appsRelation"> 408 @if(!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ImageSmall.Clean"))) 409 { 410 <img src="/admin/public/getimage.ashx?Image=@i2.GetValue("Ecom:Product.ImageSmall.Clean")&amp;altFmImage_path=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=61&amp;Height=50&amp;Compression=90" alt="@i2.GetValue("Ecom:Product.Name")"> 411 } 412 else if(!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ImageMedium.Clean"))) 413 { 414 <img src="/admin/public/getimage.ashx?Image=@i2.GetValue("Ecom:Product.ImageMedium.Clean")&amp;altFmImage_path=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=61&amp;Height=50&amp;Compression=90" alt="@i2.GetValue("Ecom:Product.Name")"> 415 } 416 else if(!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ImageLarge.Clean"))) 417 { 418 <img src="/admin/public/getimage.ashx?Image=@i2.GetValue("Ecom:Product.ImageLarge.Clean")&amp;altFmImage_path=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=61&amp;Height=50&amp;Compression=90" alt="@i2.GetValue("Ecom:Product.Name")"> 419 } 420 else 421 { 422 <img src="/admin/public/getimage.ashx?Image=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=61&amp;Height=50&amp;Compression=90" alt="@i2.GetValue("Ecom:Product.Name")"> 423 } 424 </div> 425 } 426 427 <span> 428 <b>@i2.GetValue("Ecom:Product.Name")</b> 429 </span> 430 431 @if (!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.CategoryField.APP.AppleStore.Value.Clean"))){ 432 <a target="_blank" href="@i2.GetString("Ecom:Product.CategoryField.APP.AppleStore.Value.Clean")"> 433 @str_translateAppleStore 434 </a> 435 } 436 437 @if (!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.CategoryField.APP.GoogleStore.Value.Clean"))){ 438 <a target="_blank" href="@i2.GetString("Ecom:Product.CategoryField.APP.GoogleStore.Value.Clean")"> 439 @str_translateGoogleStore 440 </a> 441 } 442 443 @if (!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.CategoryField.APP.WindowsStore.Value.Clean"))){ 444 <a target="_blank" href="@i2.GetString("Ecom:Product.CategoryField.APP.WindowsStore.Value.Clean")"> 445 @str_translateWindowsStore 446 </a> 447 } 448 </div> 449 } 450 }else if(str_relatedGroupID=="RELGRP7"){ 451 452 @* Apps *@ 453 <div> 454 @if(!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ImageLarge.Clean")) || !string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ImageSmall.Clean")) || !string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ImageMedium.Clean"))){ 455 <div class="appsRelation"> 456 @if(!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ImageSmall.Clean"))) 457 { 458 <img src="/admin/public/getimage.ashx?Image=@i2.GetValue("Ecom:Product.ImageSmall.Clean")&amp;altFmImage_path=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=61&amp;Height=50&amp;Compression=90" alt="@i2.GetValue("Ecom:Product.Name")"> 459 } 460 else if(!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ImageMedium.Clean"))) 461 { 462 <img src="/admin/public/getimage.ashx?Image=@i2.GetValue("Ecom:Product.ImageMedium.Clean")&amp;altFmImage_path=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=61&amp;Height=50&amp;Compression=90" alt="@i2.GetValue("Ecom:Product.Name")"> 463 } 464 else if(!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.ImageLarge.Clean"))) 465 { 466 <img src="/admin/public/getimage.ashx?Image=@i2.GetValue("Ecom:Product.ImageLarge.Clean")&amp;altFmImage_path=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=61&amp;Height=50&amp;Compression=90" alt="@i2.GetValue("Ecom:Product.Name")"> 467 } 468 else 469 { 470 <img src="/admin/public/getimage.ashx?Image=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=61&amp;Height=50&amp;Compression=90" alt="@i2.GetValue("Ecom:Product.Name")"> 471 } 472 </div> 473 } 474 475 <span> 476 <b>@i2.GetValue("Ecom:Product.Name")</b> 477 </span> 478 479 @if (!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.CategoryField.APP.AppleStore.Value.Clean"))){ 480 <a target="_blank" href="@i2.GetString("Ecom:Product.CategoryField.APP.AppleStore.Value.Clean")"> 481 @str_translateAppleStore 482 </a> 483 } 484 485 @if (!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.CategoryField.APP.GoogleStore.Value.Clean"))){ 486 <a target="_blank" href="@i2.GetString("Ecom:Product.CategoryField.APP.GoogleStore.Value.Clean")"> 487 @str_translateGoogleStore 488 </a> 489 } 490 491 @if (!string.IsNullOrWhiteSpace(i2.GetString("Ecom:Product.CategoryField.APP.WindowsStore.Value.Clean"))){ 492 <a target="_blank" href="@i2.GetString("Ecom:Product.CategoryField.APP.WindowsStore.Value.Clean")"> 493 @str_translateWindowsStore 494 </a> 495 } 496 </div> 497 } 498 } 499 500 </div> 501 } 502 } 503 504 @* More info bar at bottom on the detail *@ 505 @if(str_groupCategory!="ACT" && str_groupCategory!="OFF" && str_groupCategory!="FAD"){ 506 <div class="miniInfo"> 507 <h2> 508 <a href="@str_productLink"> 509 @str_productName 510 </a> 511 </h2> 512 513 <div class="columnLeft"> 514 <figure> 515 <a href="@str_productLink" title="@str_productName"> 516 @if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageSmall.Clean"))) 517 { 518 <img src="/admin/public/getimage.ashx?Image=@GetValue("Ecom:Product.ImageSmall.Clean")&amp;altFmImage_path=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=120&amp;Height=80&amp;Compression=90" alt="@str_productName"> 519 } 520 else if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageMedium.Clean"))) 521 { 522 <img src="/admin/public/getimage.ashx?Image=@GetValue("Ecom:Product.ImageMedium.Clean")&amp;altFmImage_path=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=120&amp;Height=80&amp;Compression=90" alt="@str_productName"> 523 } 524 else if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageLarge.Clean"))) 525 { 526 <img src="/admin/public/getimage.ashx?Image=@GetValue("Ecom:Product.ImageLarge.Clean")&amp;altFmImage_path=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=120&amp;Height=80&amp;Compression=90" alt="@str_productName"> 527 } 528 else 529 { 530 <img src="/admin/public/getimage.ashx?Image=/Files/Templates/Designs/visitMadeira/images/alternativeImage.jpg&amp;Width=120&amp;Height=80&amp;Compression=90" alt="@str_productName"> 531 } 532 </a> 533 </figure> 534 535 @if(str_groupCategory!="HTL" && str_groupCategory!="TVL" && str_groupCategory!="RAC" && str_groupCategory!="EAT" && str_groupCategory!="TRP"){ 536 @*if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.ShortDescription"))) 537 { 538 <div class="hotelShortDescription"> 539 @GetString("Ecom:Product.ShortDescription") 540 </div> 541 }*@ 542 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.scheduleTime.Value.Clean"))){ 543 <div class="openingHours"> 544 <b>@GetString("Ecom:Product:Field.scheduleTime.Name"):</b> 545 <br /> 546 @GetString("Ecom:Product:Field.scheduleTime.Value.Clean") 547 </div><br /> 548 } 549 550 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.schedulePause.Value.Clean"))){ 551 <div class="pauseHours"> 552 <b>@GetString("Ecom:Product:Field.schedulePause.Name"):</b> 553 <br /> 554 @GetString("Ecom:Product:Field.schedulePause.Value.Clean") 555 </div> 556 } 557 558 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField."+str_groupCategory+".Price.Value"))){ 559 <div class="pauseHours"> 560 <b>@str_translatePrice:</b> 561 @GetString("Ecom:Product.CategoryField."+str_groupCategory+".Price.Value.Clean") 562 </div> 563 } 564 } 565 566 @if(str_groupCategory=="TRP"){ 567 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.TRP.Distance.Value")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.TRP.Duration.Value")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.TRP.StartTime.Value")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.TRP.EndTime.Value")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.scheduleTime.Value.Clean")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.schedulePause.Value.Clean")) ) 568 { 569 <div class="hotelShortDescription"> 570 571 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.TRP.Distance.Value"))){ 572 <b>@str_translateDistanceTRP:</b>@GetString("Ecom:Product.CategoryField.TRP.Distance.Value")<br /><br /> 573 } 574 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.TRP.Duration.Value"))){ 575 <b>@str_translateDurationTRP:</b> @GetString("Ecom:Product.CategoryField.TRP.Duration.Value")<br /><br /> 576 } 577 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.TRP.StartTime.Value"))){ 578 <b>@str_translateStartTRP:</b> @GetString("Ecom:Product.CategoryField.TRP.StartTime.Value")<br /> <br /> 579 } 580 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.TRP.EndTime.Value"))){ 581 <b>@str_translateEndTRP:</b> @GetString("Ecom:Product.CategoryField.TRP.EndTime.Value") 582 } 583 </div> 584 585 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.scheduleTime.Value.Clean"))){ 586 <div class="openingHours"> 587 <b>@GetString("Ecom:Product:Field.scheduleTime.Name"):</b> 588 <br /> 589 @GetString("Ecom:Product:Field.scheduleTime.Value.Clean") 590 </div><br /> 591 } 592 593 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.schedulePause.Value.Clean"))){ 594 <div class="pauseHours"> 595 <b>@GetString("Ecom:Product:Field.schedulePause.Name"):</b> 596 <br /> 597 @GetString("Ecom:Product:Field.schedulePause.Value.Clean") 598 </div> 599 } 600 }else{ 601 <div class="hotelShortDescription"> 602 <span class="titleContacts">@str_translateContacts</span> 603 604 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Address.Value.Clean"))){ 605 <div class="address">@GetValue("Ecom:Product:Field.Address.Value.Clean")</div> 606 } 607 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Phone.Value.Clean"))){ 608 <div class="phone">@GetValue("Ecom:Product:Field.Phone.Value.Clean")</div> 609 } 610 611 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.email.Value.Clean"))){ 612 <div class="email"> 613 <a href="mailto:@GetValue("Ecom:Product:Field.email.Value.Clean")">@str_translateSendEmailList</a> 614 </div> 615 } 616 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.website.Value.Clean"))){ 617 <div class="website"> 618 <a target="_blank" href="@(GetString("Ecom:Product:Field.website.Value.Clean").StartsWith("http") ? GetString("Ecom:Product:Field.website.Value.Clean") : "http://"+GetString("Ecom:Product:Field.website.Value.Clean"))">@str_translateOpenWebsiteList</a> 619 </div> 620 } 621 </div> 622 } 623 } 624 625 @if(str_groupCategory=="HTL" || str_groupCategory=="TVL" || str_groupCategory=="RAC" || str_groupCategory=="EAT"){ 626 <div class="hotelShortDescription"> 627 <span class="titleContacts">@str_translateContacts</span> 628 629 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Address.Value.Clean"))){ 630 <div class="address">@GetValue("Ecom:Product:Field.Address.Value.Clean")</div> 631 } 632 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Phone.Value.Clean"))){ 633 <div class="phone">@GetValue("Ecom:Product:Field.Phone.Value.Clean")</div> 634 } 635 636 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.email.Value.Clean"))){ 637 <div class="email"> 638 <a href="mailto:@GetValue("Ecom:Product:Field.email.Value.Clean")">@str_translateSendEmailList</a> 639 </div> 640 } 641 642 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.website.Value.Clean"))){ 643 <div class="website"> 644 <a target="_blank" href="@(GetString("Ecom:Product:Field.website.Value.Clean").StartsWith("http") ? GetString("Ecom:Product:Field.website.Value.Clean") : "http://"+GetString("Ecom:Product:Field.website.Value.Clean"))">@str_translateOpenWebsiteList</a> 645 </div> 646 } 647 </div> 648 } 649 </div> 650 651 <div class="columnRight"> 652 @if(str_groupCategory!="HTL" && str_groupCategory!="RAC" && str_groupCategory!="TVL" && str_groupCategory!="EAT"){ 653 if(str_groupCategory=="TRP"){ 654 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.TRP.Distance.Value")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.TRP.Duration.Value")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.TRP.StartTime.Value")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.TRP.EndTime.Value")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.scheduleTime.Value.Clean")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.schedulePause.Value.Clean")) ){ 655 <span class="titleContacts">@str_translateContacts</span> 656 657 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Address.Value.Clean"))){ 658 <div class="address">@GetValue("Ecom:Product:Field.Address.Value.Clean")</div> 659 } 660 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Phone.Value.Clean"))){ 661 <div class="phone">@GetValue("Ecom:Product:Field.Phone.Value.Clean")</div> 662 } 663 664 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.email.Value.Clean"))){ 665 <div class="email"> 666 <a href="mailto:@GetValue("Ecom:Product:Field.email.Value.Clean")">@str_translateSendEmailList</a> 667 </div> 668 } 669 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.website.Value.Clean"))){ 670 <div class="website"> 671 <a target="_blank" href="@(GetString("Ecom:Product:Field.website.Value.Clean").StartsWith("http") ? GetString("Ecom:Product:Field.website.Value.Clean") : "http://"+GetString("Ecom:Product:Field.website.Value.Clean"))">@str_translateOpenWebsiteList</a> 672 </div> 673 } 674 } 675 }else{ 676 <span class="titleContacts">@str_translateContacts</span> 677 678 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Address.Value.Clean"))){ 679 <div class="address">@GetValue("Ecom:Product:Field.Address.Value.Clean")</div> 680 } 681 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Phone.Value.Clean"))){ 682 <div class="phone">@GetValue("Ecom:Product:Field.Phone.Value.Clean")</div> 683 } 684 685 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.email.Value.Clean"))){ 686 <div class="email"> 687 <a href="mailto:@GetValue("Ecom:Product:Field.email.Value.Clean")">@str_translateSendEmailList</a> 688 </div> 689 } 690 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.website.Value.Clean"))){ 691 <div class="website"> 692 <a target="_blank" href="@(GetString("Ecom:Product:Field.website.Value.Clean").StartsWith("http") ? GetString("Ecom:Product:Field.website.Value.Clean") : "http://"+GetString("Ecom:Product:Field.website.Value.Clean"))">@str_translateOpenWebsiteList</a> 693 </div> 694 } 695 } 696 } 697 698 @* New Fields (GPS Coordinates & Bus Lines) *@ 699 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField."+str_groupCategory+".Coordenadas_Latitude.Value.Clean"))){ 700 <div class="address">GPS: @GetValue("Ecom:Product.CategoryField."+str_groupCategory+".Coordenadas_Latitude.Value.Clean") / @GetValue("Ecom:Product.CategoryField."+str_groupCategory+".Coordenadas_Longitude.Value.Clean")</div> 701 } 702 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.samBus.Value.Clean")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.rodoesteBus.Value.Clean")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.hfBus.Value.Clean")) || !string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.eaclBus.Value.Clean"))){ 703 <span class="titleContacts">@str_translateCheckTimeTables</span> 704 } 705 706 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.samBus.Value.Clean"))){ 707 <div class="address busStop" id="samBus"><b>SAM</b><br />@str_translateBusLine - @GetValue("Ecom:Product:Field.samBus.Value.Clean")</div> 708 } 709 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.rodoesteBus.Value.Clean"))){ 710 <div class="address busStop" id="rodoesteBus"><b>RODOESTE</b><br />@str_translateBusLine - @GetValue("Ecom:Product:Field.rodoesteBus.Value.Clean")</div> 711 } 712 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.hfBus.Value.Clean"))){ 713 <div class="address busStop" id="hfBus"><b>HORÁRIOS DO FUNCHAL</b><br />@str_translateBusLine - @GetValue("Ecom:Product:Field.hfBus.Value.Clean")</div> 714 } 715 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.eaclBus.Value.Clean"))){ 716 <div class="address busStop" id="eaclBus"><b>EACL</b><br />@str_translateBusLine - @GetValue("Ecom:Product:Field.eaclBus.Value.Clean")</div> 717 } 718 </div> 719 </div> 720 } 721 722 </div> 723 </div> 724 725 if(str_groupCategory=="OFF"){ 726 <div id="officeDetail"> 727 <span class="title">@str_productName</span> 728 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Address.Value.Clean"))){ 729 <div>@GetValue("Ecom:Product:Field.Address.Value.Clean")</div> 730 } 731 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Phone.Value.Clean"))){ 732 <div>@str_translatePhone: <strong>@GetValue("Ecom:Product:Field.Phone.Value.Clean")</strong></div> 733 } 734 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Fax.Value.Clean"))){ 735 <div>@str_translateFax: @GetValue("Ecom:Product:Field.Fax.Value.Clean")</div> 736 } 737 <div>@str_translateEmail: <a href="mailto:@GetValue("Ecom:Product:Field.email.Value.Clean")">@GetValue("Ecom:Product:Field.email.Value.Clean")</a></div> 738 <div class="scheduleTime">@GetValue("Ecom:Product:Field.scheduleTime.Value.Clean")</div> 739 </div> 740 } 741 742 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.website.Value.Clean"))){ 743 <a target="_blank" class="visitWebsite" href="@(GetString("Ecom:Product:Field.website.Value.Clean").StartsWith("http") ? GetString("Ecom:Product:Field.website.Value.Clean") : "http://"+GetString("Ecom:Product:Field.website.Value.Clean"))"> 744 @str_visitOficcialSite1&nbsp;<span>@str_visitOficcialSite2</span> 745 </a> 746 } 747 748 if(GetBoolean("Ecom:Product:Field.AddTrip.Value.Clean")) 749 { 750 <a class="@str_groupCategory" rel="nofollow" id="addTrip" href="/Default.aspx?ID=@Dynamicweb.Frontend.PageView.Current().Page.ID&amp;ProductID=@GetValue("Ecom:Product.ID")&amp;cartcmd=add"> 751 @str_addTrip1&nbsp;<span>@str_addTrip2</span> 752 </a> 753 } 754 755 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField.EVT.PlanPDF.Value.Clean"))){ 756 <a class="downloadProgram" href="@GetValue("Ecom:Product.CategoryField.EVT.PlanPDF.Value.Clean")"> 757 @str_downloadTryp1&nbsp;<span>@str_downloadPrograma2</span> 758 </a> 759 } 760 761 <!--@SnippetStart(jsOnLoadVariables)--> 762 763 if(str_groupCategory=="ACT"){ 764 765 switch(GetString("Ecom:Product.CategoryField."+str_groupCategory+".ActivityType.Value.Clean")){ 766 case "gliding": case "paragliding": 767 @:var activitieType = 'Air.png'; 768 break; 769 case "boatCharter": case "coastering": case "diving": case "whaleWatching": case "boating": case "standUpPaddle": case "sportFishing": case "surf": case "windsurf": case "sail": 770 @:var activitieType = 'Sea.png'; 771 break; 772 case "golf": 773 @:var activitieType = 'Golf.png'; 774 break; 775 default: 776 @:var activitieType = 'Land.png'; 777 break; 778 } 779 } 780 781 @:var obj_mapSettings; 782 if (!string.IsNullOrWhiteSpace(GetString(("Ecom:Product.CategoryField."+str_groupCategory+".Longitude.Value.Clean"))) && !string.IsNullOrWhiteSpace(GetString(("Ecom:Product.CategoryField."+str_groupCategory+".Latitude.Value.Clean")))) 783 { 784 @:obj_mapSettings = { 785 @:template_path:'//@System.Web.HttpContext.Current.Request.Url.Host/Files/Templates/Designs/visitMadeira/', 786 @:google_initLatLng:'@str_latitude,@str_longitude', 787 @:google_zoom:12, 788 @:google_mapId:'map', 789 @:google_fitBounds:false, 790 @:bol_scrollWheel:true, 791 @:google_markers:[] 792 @:}; 793 794 @:obj_mapSettings.google_markers.push({ 795 @:marker_title:'@str_productName', 796 @:marker_latlng:'@GetValue(("Ecom:Product.CategoryField."+str_groupCategory+".Latitude.Value.Clean")),@GetValue(("Ecom:Product.CategoryField."+str_groupCategory+".Longitude.Value.Clean"))', 797 @:marker_icon:{ 798 799 if(str_groupCategory=="HTL"){ 800 @:image:obj_mapSettings.template_path + 'images/markers/Accom.png', 801 }else if(str_groupCategory=="ACT"){ 802 @:image:obj_mapSettings.template_path + 'images/markers/activities/'+activitieType, 803 }else if(str_groupCategory=="TVL" || str_groupCategory=="EAT" || str_groupCategory=="TRP"){ 804 @:image:obj_mapSettings.template_path + 'images/markers/TourismAgencies.png', 805 }else if(str_groupCategory=="SNL"){ 806 @:image:obj_mapSettings.template_path + 'images/markers/rentAcar.png', 807 }else if(str_groupCategory=="MUS"){ 808 @:image:obj_mapSettings.template_path + 'images/markers/culture/museums.png', 809 }else if(str_groupCategory=="ICP"){ 810 @:image:obj_mapSettings.template_path + 'images/markers/culture/monuments.png', 811 }else{ 812 @:image:obj_mapSettings.template_path + 'images/markers/events/eventsVM.png', 813 } 814 815 @:width:52, height:65, 816 @:originX:0, originY:0, 817 @:anchorX:26, anchorY:62 818 @:}, 819 if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageSmall.Clean"))) 820 { 821 @:marker_image:"//@System.Web.HttpContext.Current.Request.Url.Host/admin/public/getimage.ashx?Image=@GetValue("Ecom:Product.ImageSmall.Clean")&Format=jpg&Width=75&Height=65", 822 } 823 else if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageMedium.Clean"))) 824 { 825 @:marker_image:"//@System.Web.HttpContext.Current.Request.Url.Host/admin/public/getimage.ashx?Image=@GetValue("Ecom:Product.ImageMedium.Clean")&Format=jpg&Width=75&Height=65", 826 } 827 else if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageLarge.Clean"))) 828 { 829 @:marker_image:"//@System.Web.HttpContext.Current.Request.Url.Host/admin/public/getimage.ashx?Image=@GetValue("Ecom:Product.ImageLarge.Clean")&Format=jpg&Width=75&Height=65", 830 } 831 832 @:marker_infoText:'<span>@GetValue("Ecom:Product:Field.Address.Value.Clean")</span><span class="phone">@GetValue("Ecom:Product:Field.Phone.Value.Clean")</span><span class="scheduleTime">@GetValue("Ecom:Product:Field.scheduleTime.Value.Clean")</span>' 833 @:}); 834 } 835 836 var str_folderGallery = ""; 837 if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.ImageLarge.Clean"))) 838 { 839 @:str_folderGallery = "@GetString("Ecom:Product.ImageLarge.Clean")"; 840 } 841 842 <!--@SnippetEnd(jsOnLoadVariables)--> 843 844 <!--@SnippetStart(jsOnLoad)--> 845 <text> 846 var num_goToLocation = 0; 847 848 onLoadProductDetail('@str_translateAddedToYourTrip', '@str_translateContinue', '@str_translateDownloadYourTrip', '@num_cartPageId'); 849 850 @if(!string.IsNullOrWhiteSpace(System.Web.HttpContext.Current.Request.Params["gotolocation"])){ 851 @:num_goToLocation = 1; 852 } 853 onLoadOfficeDetails(obj_mapSettings,num_goToLocation); 854 </text> 855 <!--@SnippetEnd(jsOnLoad)--> 856 <a id="backBtn" href="javascript:window.history.back();">Voltar atrás</a> 857 } 858 859
Partilhar

Subscreva a nossa Newsletter

Se pretender receber as nossas notícias, queira subscrever a nossa newsletter.
Subscrever

Virtual Visit Photos 360º

virtual.visitmadeira.pt
Visit Now >

Facebook Fan Page

Youtube Flicker RSS ISSUU
Award Madeira Islands SRT Região Madeira