- @show_page = 1 - @show_page_link_ru = "/ru/ресторан/#{@restaurant.id}-#{@restaurant.title_ru.gsub(/[[:punct:]]/,'').gsub(/\s+/,'-').mb_chars.downcase}" - @show_page_link_en = "/restaurant/#{@restaurant.id}-#{@restaurant.title_en.parameterize}" - @show_page_link_es = "/es/restaurante/#{@restaurant.id}-#{@restaurant.title_es.parameterize}" - @show_page_link_fr = "/fr/restaurant/#{@restaurant.id}-#{@restaurant.title_fr.parameterize}" - @url = request.original_url - @@url = request.original_url - @show_page_restaurant = 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}"+(CGI.unescape(@show_page_link_ru)) - @hreflang_fr = "https://#{request.host}"+@show_page_link_fr -if @restaurant.gmap == true %script{:async => "", :defer => "defer", :src => "https://maps.googleapis.com/maps/api/js?key=AIzaSyAOdqfgDBSFjqqDfy33foyxNPoqim4HWko&callback=initMap"} - if @restaurant.hidden == true - @hidden = "?show=TGS-R"+@restaurant.id.to_s - else - @hidden = "" - @contact_type = "restaurant" - @ap_id = @restaurant.id - @ap_price = @restaurant.price - @ap_payment_fee = @restaurant.payment_fee - @ap_iva = @restaurant.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 = @restaurant.title_en - if @restaurant.country_id != nil - @country_w = @country.en - @country_id = @restaurant.country_id - if @restaurant.province_id != nil - @province_w = ', ' + @province.en - @province_w2 = @province.en - @province_description = @province.en - @province_id = @restaurant.province_id - if @restaurant.region_id != nil - @region_w = ', ' + @region.en - @region_w2 = @region.en - @region_id = @restaurant.region_id - if @restaurant.location_id != nil - @location_w = ', ' + @location.en - @location_w2 = @location.en - @location_id = @restaurant.location_id - if @restaurant.keys_en != nil - @keyswords = ', ' + @restaurant.keys_en -if I18n.locale.to_s == 'es' - @title_locale = @restaurant.title_es - if @restaurant.country_id != nil - @country_w = @country.es - @country_id = @restaurant.country_id - if @restaurant.province_id != nil - @province_w = ', ' + @province.es - @province_w2 = @province.es - @province_description = @province.es - @province_id = @restaurant.province_id - if @restaurant.region_id != nil - @region_w = ', ' + @region.es - @region_w2 = @region.es - @region_id = @restaurant.region_id - if @restaurant.location_id != nil - @location_w = ', ' + @location.es - @location_w2 = @location.es - @location_id = @restaurant.location_id - if @restaurant.keys_es != nil - @keyswords = ', ' + @restaurant.keys_es -if I18n.locale.to_s == 'ru' - @title_locale = @restaurant.title_ru - if @restaurant.country_id != nil - @country_w = @country.ru - @country_id = @restaurant.country_id - if @restaurant.province_id != nil - @province_w = ', ' + @province.ru - @province_w2 = @province.ru - @province_description = @province.ru - @province_id = @restaurant.province_id - if @restaurant.region_id != nil - @region_w = ', ' + @region.ru - @region_w2 = @region.ru - @region_id = @restaurant.region_id - if @restaurant.location_id != nil - @location_w = ', ' + @location.ru - @location_w2 = @location.ru - @location_id = @restaurant.location_id - if @restaurant.keys_ru != nil - @keyswords = ', ' + @restaurant.keys_ru -if I18n.locale.to_s == 'fr' - @title_locale = @restaurant.title_fr - if @restaurant.country_id != nil - @country_w = @country.fr - @country_id = @restaurant.country_id - if @restaurant.province_id != nil - @province_w = ', ' + @province.fr - @province_w2 = @province.fr - @province_description = @province.fr - @province_id = @restaurant.province_id - if @restaurant.region_id != nil - @region_w = ', ' + @region.fr - @region_w2 = @region.fr - @region_id = @restaurant.region_id - if @restaurant.location_id != nil - @location_w = ', ' + @location.fr - @location_w2 = @location.fr - @location_id = @restaurant.location_id - if @restaurant.keys_fr != nil - @keyswords = ', ' + @restaurant.keys_fr - @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 @restaurant_description_en != '' - @pag_description = @restaurant_description_en - else - @pag_description = @pag_title + '. ' + t('description_show_restaurant') + ' ' + @location_w2 + @region_w + ' - ' + @province_description + '(' + @country_w + ')' + '.' -if I18n.locale.to_s == 'es' - if @restaurant_description_es != '' - @pag_description = @restaurant_description_es - else - @pag_description = @pag_title + '. ' + t('description_show_restaurant') + ' ' + @location_w2 + @region_w + ' - ' + @province_description + '(' + @country_w + ')' + '.' -if I18n.locale.to_s == 'fr' - if @restaurant_description_fr != '' - @pag_description = @restaurant_description_fr - else - @pag_description = @pag_title + '. ' + t('description_show_restaurant') + ' ' + @location_w2 + @region_w + ' - ' + @province_description + '(' + @country_w + ')' + '.' -if I18n.locale.to_s == 'ru' - if @restaurant_description_ru != '' - @pag_description = @restaurant_description_ru - else - @pag_description = @pag_title + '. ' + t('description_show_restaurant') + ' ' + @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_restaurant') + ', ' + @country_w + @province_w + @region_w + @location_w - @og_title = @pag_title - @og_type = t('restaurant') - @og_url = request.original_url - @og_description = @pag_description #fb-root %script{:async => "", :crossorigin => "anonymous", :defer => "defer", :nonce => "xhM8Ve9y", :src => "https://connect.facebook.net/es_ES/sdk.js#xfbml=1&version=v8.0&appId=954250338385847&autoLogAppEvents=1"} #w_restaurants_jquery_start .bg-searcher .container .row .col-lg-12.col-md-12.col-sm-12.col-xs-12.bg-searcher-sin-transparency -if I18n.locale.to_s == 'en' .h2-welcome-text = "Haute cuisine restaurants in Marbella" -if I18n.locale.to_s == 'es' .h2-welcome-text = "Restaurantes de alta cocina en Marbella" -if I18n.locale.to_s == 'ru' .h2-welcome-text-ru = "Рестораны высокой кухни в Марбельи" -if I18n.locale.to_s == 'fr' .h2-welcome-text = "Restaurants Haute Cuisine à Marbella" .show-margin - if @restaurant.hidden == true and @show == nil .container %h1.center.show-title = @pag_title .center = image_tag("web/candado.png", size: '50x50', :alt => @pag_title + '. ' + t('temporarily_unavailable')) - else .container .row - if @restaurant.ImagesRestaurant.exists? - @cont_img = 0 .img-principal-page.fix-bug-with-slider .slider-for - @restaurant.ImagesRestaurant.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 - @restaurant.ImagesRestaurant.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/no-foto-big.jpg", class: 'img-thumbnail', size: '820x410', :alt => "no foto") - @og_image = "/assets/web/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 => w_restaurants_path, :title => t('restaurant')} = t('restaurant') = " - " - if @restaurant.country_id != nil %a{:href => w_restaurants_path+"?country="+@country_id.to_s, :title => @country_w} = @country_w - if @restaurant.province_id != nil = ", " %a{:href => w_restaurants_path+"?province="+@province_id.to_s, :title => @province_w2} = @province_w2 - if @restaurant.region_id != nil = ", " %a{:href => w_restaurants_path+"?region="+@region_id.to_s, :title => @region_w2} = @region_w2 - if @restaurant.location_id != nil = ", " %a{:href => w_restaurants_path+"?location="+@location_id.to_s, :title => @location_w2} = @location_w2 .ref-show = "Ref: TGS-R" + @restaurant.id.to_s -if current_admintg -if current_admintg.level >= 1 = '(' %a{href: w_restaurant_path + '.pdf' + @hidden, style: 'text-decoration: none;', :target => "_blank"} %span.link-pdf.hidden-xs = t('pdf') = ')' .fb-btn-left .fb-share-button{"data-href" => @og_url, "data-layout" => "button", "data-size" => "small"} %a.fb-xfbml-parse-ignore{:href => "https://www.facebook.com/sharer/sharer.php?u="+@og_url+"%2F&src=sdkpreparse", :target => "_blank"} = t('share') %a{:href => "https://api.whatsapp.com/send?text=" + @title_locale + "%20" + @og_url, :target => "_blank"} -if I18n.locale.to_s == 'en' = image_tag("web/icons/whatsapp-share-en.png", size: '90x33', :alt => "whatsapp share") -if I18n.locale.to_s == 'es' = image_tag("web/icons/whatsapp-share-es.png", size: '90x33', :alt => "whatsapp Compartir") -if I18n.locale.to_s == 'ru' = image_tag("web/icons/whatsapp-share-ru.png", size: '90x33', :alt => "whatsapp Поделиться") -if I18n.locale.to_s == 'fr' = image_tag("web/icons/whatsapp-share-fr.png", size: '90x33', :alt => "whatsapp Partager") - if !@restaurant.tel.blank? || !@restaurant.web.blank? .row %hr .features-titles = t('restaurant_information') %ul.features-rest-show-100 - if !@restaurant.tel.blank? %li = @li + t('phone_number') + ": " + @restaurant.tel.to_s - if !@restaurant.web.blank? %li = @li + t('web_page') + ": " %a{href: @restaurant.web.to_s, style: 'text-decoration: none;', :target => "_blank", :title => @pag_title.to_s} = @restaurant.web.to_s -if I18n.locale.to_s == 'en' - if @restaurant.text_en != '' .row %hr .features-titles = t('description') .description-text-off = raw(@restaurant.text_en) -if I18n.locale.to_s == 'es' - if @restaurant.text_es != '' .row %hr .features-titles = t('description') .description-text-off = raw(@restaurant.text_es) -if I18n.locale.to_s == 'ru' - if @restaurant.text_ru != '' .row %hr .features-titles = t('description') .description-text-off = raw(@restaurant.text_ru) -if I18n.locale.to_s == 'fr' - if @restaurant.text_fr != '' .row %hr .features-titles = t('description') .description-text-off = raw(@restaurant.text_fr) - unless @restaurant.iframe_youtube == nil or @restaurant.iframe_youtube == "" or @restaurant.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/"+@restaurant.iframe_youtube.to_s+"?rel=0&showinfo=0", :style => "position:absolute;top:0;left:0;width:100%;height:100%"} - if @restaurant.gmap .row %hr .features-titles = t('location') - if @restaurant.gmap %input{:name => "glat", :id => "glat", :value => @restaurant.lat, :class => 'buscador-shadow', :placeholder => '', :type=>"hidden"} %input{:name => "glng", :id => "glng", :value => @restaurant.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 @restaurant.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.center %b = t('whatsapp').mb_chars %p.center %b +34 629 617 976 .center = image_tag("web/img-all/whatsapp_es.jpg", class: 'img-thumbnail', alt: 'whatsapp', width: '200', height: '200') %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@thegrandselection.com"} info@thegrandselection.com .col-lg-12.col-md-12.col-sm-12.col-xs-12 = render 'layouts/partials/index/footer'