- @show_page = 1 - @show_page_link_ru = "/ru/мероприятие/#{@activity.id}-#{@activity.title_ru.gsub(/[[:punct:]]/,'').gsub(/\s+/,'-').mb_chars.downcase}" - @show_page_link_en = "/activity/#{@activity.id}-#{@activity.title_en.parameterize}" - @show_page_link_es = "/es/actividad/#{@activity.id}-#{@activity.title_es.parameterize}" - @url = request.original_url - @@url = request.original_url - @show_page_activity = 1 - @locale = I18n.locale.to_s - @li = '' - @hreflang_en = "https://#{request.host}"+@show_page_link_en - @hreflang_es = "https://#{request.host}"+@show_page_link_es - @hreflang_ru = "https://#{request.host}"+@show_page_link_ru -if @activity.gmap == true %script{:async => "", :defer => "defer", :src => "https://maps.googleapis.com/maps/api/js?key=AIzaSyAOdqfgDBSFjqqDfy33foyxNPoqim4HWko&callback=initMap"} - if @activity.hidden == true - @hidden = "?show=TGS-AC"+@activity.id.to_s - else - @hidden = "" - @contact_type = "activity" - @ap_id = @activity.id - @ap_price = @activity.price - @ap_payment_fee = @activity.payment_fee - @ap_iva = @activity.iva - @country_w = "" - @province_w = "" - @region_w = "" - @location_w = "" - @garden_w = "" - @garden_w2 = "" - @location_w2 = "" - @keyswords = "" - @province_description = "" -if I18n.locale.to_s == 'en' - @title_locale = @activity.title_en - if @activity.country_id != nil - @country_w = @country.en - @country_id = @activity.country_id - if @activity.province_id != nil - @province_w = ', ' + @province.en - @province_w2 = @province.en - @province_description = @province.en - @province_id = @activity.province_id - if @activity.region_id != nil - @region_w = ', ' + @region.en - @region_w2 = @region.en - @region_id = @activity.region_id - if @activity.location_id != nil - @location_w = ', ' + @location.en - @location_w2 = @location.en - @location_id = @activity.location_id - if @activity.keys_en != nil - @keyswords = ', ' + @activity.keys_en -if I18n.locale.to_s == 'es' - @title_locale = @activity.title_es - if @activity.country_id != nil - @country_w = @country.es - @country_id = @activity.country_id - if @activity.province_id != nil - @province_w = ', ' + @province.es - @province_w2 = @province.es - @province_description = @province.es - @province_id = @activity.province_id - if @activity.region_id != nil - @region_w = ', ' + @region.es - @region_w2 = @region.es - @region_id = @activity.region_id - if @activity.location_id != nil - @location_w = ', ' + @location.es - @location_w2 = @location.es - @location_id = @activity.location_id - if @activity.keys_es != nil - @keyswords = ', ' + @activity.keys_es -if I18n.locale.to_s == 'ru' - @title_locale = @activity.title_ru - if @activity.country_id != nil - @country_w = @country.ru - @country_id = @activity.country_id - if @activity.province_id != nil - @province_w = ', ' + @province.ru - @province_w2 = @province.ru - @province_description = @province.ru - @province_id = @activity.province_id - if @activity.region_id != nil - @region_w = ', ' + @region.ru - @region_w2 = @region.ru - @region_id = @activity.region_id - if @activity.location_id != nil - @location_w = ', ' + @location.ru - @location_w2 = @location.ru - @location_id = @activity.location_id - if @activity.keys_ru != nil - @keyswords = ', ' + @activity.keys_ru - @direction = @country_w + @province_w + @region_w + @location_w - @direction_title = @region_w + @location_w - @pag_title = @title_locale -if I18n.locale.to_s == 'en' - if @activity_description_en != '' - @pag_description = @activity_description_en - else - @pag_description = @pag_title + '. ' + t('description_show_activity') + ' ' + @location_w2 + @region_w + ' - ' + @province_description + '(' + @country_w + ')' + '.' -if I18n.locale.to_s == 'es' - if @activity_description_es != '' - @pag_description = @activity_description_es - else - @pag_description = @pag_title + '. ' + t('description_show_activity') + ' ' + @location_w2 + @region_w + ' - ' + @province_description + '(' + @country_w + ')' + '.' -if I18n.locale.to_s == 'fr' - if @activity_description_fr != '' - @pag_description = @activity_description_fr - else - @pag_description = @pag_title + '. ' + t('description_show_activity') + ' ' + @location_w2 + @region_w + ' - ' + @province_description + '(' + @country_w + ')' + '.' -if I18n.locale.to_s == 'ru' - if @activity_description_ru != '' - @pag_description = @activity_description_ru - else - @pag_description = @pag_title + '. ' + t('description_show_activity') + ' ' + @location_w2 + @region_w + ' - ' + @province_description + '(' + @country_w + ')' + '.' - @pag_keywords = @pag_title.strip.split(/\s+/).to_sentence(words_connector: ', ', last_word_connector: ', ') + ', ' + t('keywords_show_activity') + ', ' + @country_w + @province_w + @region_w + @location_w - @og_title = @pag_title - @og_type = t('activity') - @og_url = request.original_url - @og_description = @pag_description #w_activities_jquery_start .bg-searcher .container .row .col-lg-12 -if I18n.locale.to_s == 'en' .h2-welcome-text = "Enjoy your vacation to the fullest" -if I18n.locale.to_s == 'es' .h2-welcome-text = "Disfrute sus vacaciones al máximo" -if I18n.locale.to_s == 'ru' .h2-welcome-text-ru = "Насладитесь отдыхом по максимуму" .show-margin - if @activity.hidden == true and @show == nil .container %h1.center.show-title = @pag_title .center = image_tag("web_hotelsultanclub/candado.png", size: '50x50', :alt => @pag_title + '. ' + t('temporarily_unavailable')) - else .container .row - if @activity.ImagesActivity.exists? - @cont_img = 0 .img-principal-page.fix-bug-with-slider .slider-for - @activity.ImagesActivity.order("position").each do |img| %div.zoom-gallery1.zoom-gallery-conf = link_to(image_tag(img.image.slide.url, class: 'img-thumbnail', :alt => @pag_title), img.image.url, target: '_blank', :title => @pag_title, "data-source" => "", :alt => @pag_title) - @cont_img = @cont_img+1 - if @cont_img == 1 - @og_image = img.image.thumbnlg.to_s - if @cont_img > 1 .margin-sub-img.fix-bug-with-slider .slider-nav - @activity.ImagesActivity.order("position").each do |img| %div.margin-on-sub-img .hidden-xs = image_tag(img.image.thumblittle.url, class: 'img-thumbnail fix-pad-img', :alt => @pag_title) .hidden-lg.hidden-md.hidden-sm = image_tag(img.image.thumbxs.url, class: 'img-thumbnail fix-pad-img', :alt => @pag_title) - else .center = image_tag("web_hotelsultanclub/no-foto-big.jpg", class: 'img-thumbnail', size: '820x410', :alt => "no foto") - @og_image = "/assets/web_hotelsultanclub/no-foto-big.jpg" .row .col-lg-8.col-md-12.col-sm-12.col-xs-12 %h1.center.show-title = @pag_title %h2.h2-show %a{:href => hotelsultanclub_w_activities_path, :title => t('activity')} = t('activity') = " - " - if @activity.country_id != nil %a{:href => hotelsultanclub_w_activities_path+"?country="+@country_id.to_s, :title => @country_w} = @country_w - if @activity.province_id != nil = ", " %a{:href => hotelsultanclub_w_activities_path+"?province="+@province_id.to_s, :title => @province_w2} = @province_w2 - if @activity.region_id != nil = ", " %a{:href => hotelsultanclub_w_activities_path+"?region="+@region_id.to_s, :title => @region_w2} = @region_w2 - if @activity.location_id != nil = ", " %a{:href => hotelsultanclub_w_activities_path+"?location="+@location_id.to_s, :title => @location_w2} = @location_w2 .ref-show = "Ref: TGS-AC" + @activity.id.to_s -if current_admintg -if current_admintg.level >= 1 = '(' %a{href: hotelsultanclub_w_activity_path + '.pdf' + @hidden, style: 'text-decoration: none;', :target => "_blank"} %span.link-pdf.hidden-xs = t('pdf') = ')' .row %hr .price-rental-cond-left ="*" + t('reservation_conierge_service_conditions') -if I18n.locale.to_s == 'en' - if @activity.text_en != '' .row %hr .features-titles = t('description') -if @activity.more_less .description-text-n = raw(@activity.text_en) -else .description-text = raw(@activity.text_en) -if I18n.locale.to_s == 'es' - if @activity.text_es != '' .row %hr .features-titles = t('description') -if @activity.more_less .description-text-n = raw(@activity.text_es) -else .description-text = raw(@activity.text_es) -if I18n.locale.to_s == 'ru' - if @activity.text_ru != '' .row %hr .features-titles = t('description') -if @activity.more_less .description-text-n = raw(@activity.text_ru) -else .description-text = raw(@activity.text_ru) - unless @activity.iframe_youtube == nil or @activity.iframe_youtube == "" or @activity.iframe_youtube == " " .row %hr .features-titles = t('video') .iframe-youtube %div{:style => "position:relative;width:100%;height:0;padding-bottom:56.25%"} %iframe{:allow => "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture", :allowfullscreen => "", :frameborder => "0", :src => "https://www.youtube.com/embed/"+@activity.iframe_youtube.to_s+"?rel=0&showinfo=0", :style => "position:absolute;top:0;left:0;width:100%;height:100%"} - if @activity.gmap .row %hr .features-titles = t('location') - if @activity.gmap %input{:name => "glat", :id => "glat", :value => @activity.lat, :class => 'buscador-shadow', :placeholder => '', :type=>"hidden"} %input{:name => "glng", :id => "glng", :value => @activity.lng, :class => 'buscador-shadow', :placeholder => '', :type=>"hidden"} %input{:name => "accommodation_name", :id => "accommodation_name", :value => @pag_title, :class => 'buscador-shadow', :placeholder => '', :type=>"hidden"} %br #map{:style => "width: 100%; height: 300px;"} %br .show-right-part .col-lg-4.col-md-12.col-sm-12.col-xs-12 #online-request - if @activity.auto_pay_form == true and params[:mod] != "request" .online-request .fas.fa-envelope = t('reservation').mb_chars.upcase .online-request-form = render 'auto_payments/auto_pay_form_external' - else .online-request .fas.fa-envelope = t('online_booking').mb_chars.upcase .online-request-form - if params[:mod2] == "specdates" .contact-top-info .reservation_conditions_1 = t('black_list_dates_info') - if params[:mod2] == "per" .contact-top-info .reservation_conditions_1 = t('reservations_6_people_or_more_info') = render 'contacts/formrequest_external' %br .online-request = t('contact').mb_chars.upcase .online-request-form %p %b = t('attention_phones').mb_chars + ":" %ul.list-phones %li %em = t('spain').mb_chars.capitalize + ":" %b +34 951 204 417 %li %em = t('france').mb_chars.capitalize + ":" %b +33 (0) 975 17 08 36 %li %em = t('switzerland').mb_chars.capitalize + ":" %b +41 44 508 33 58 %b = t('email').mb_chars + ":" %a{:href => "mailto:info@hotelsultanclubtgs.com"} info@hotelsultanclubtgs.com .col-lg-12.col-md-12.col-sm-12.col-xs-12 = render 'layouts/hotelsultanclub/partials/index/footer'