<?php if (! function_exists('laurent_elated_child_theme_enqueue_scripts')){function laurent_elated_child_theme_enqueue_scripts(){$parent_style='laurent-elated-default-style';$modules_style='laurent-elated-modules';wp_enqueue_style('laurent-elated-child-style',get_stylesheet_directory_uri() . '/style.css',array($parent_style,$modules_style));wp_enqueue_style('laurent-elated-child-responsive',get_stylesheet_directory_uri() . '/responsive.css',array('laurent-elated-child-style'))}add_action('wp_enqueue_scripts','laurent_elated_child_theme_enqueue_scripts');}if (! function_exists('rialto_set_header_logo')){function rialto_set_header_logo($params){$logo_url=home_url('/wp-content/uploads/2026/07/Rialto_Logo_Bruecke_kurz_onur_v2.png');$logo_url_dark=home_url('/wp-content/uploads/2026/07/Rialto_Logo_Bruecke_kurz_onur_v2.png');$params['logo_image']=$logo_url;$params['logo_image_dark']=$logo_url_dark;$params['logo_image_light']=$logo_url;return $params}add_filter('laurent_elated_filter_get_logo_html_parameters','rialto_set_header_logo');}if (! function_exists('rialto_seo_meta_tags')){function rialto_seo_meta_tags(){if (is_admin()){return}$site_name='Restaurant Rialto';$site_url=home_url('/');$og_image=home_url('/wp-content/uploads/2026/07/Rialto-Shoot-Aug23-32.jpg');if (is_front_page()){$title='Restaurant Rialto - Fine Dining & Weinbar Hamburg';$description='Restaurant Rialto am Michaelisplatz in Hamburg: Fine Dining, erlesene Weine und einzigartige Atmosphaere an der Elbe.'}elseif (is_page('dining') || is_page('Dining')){$title='Fine Dining Hamburg | Restaurant Rialto';$description='Exquisite Fine Dining Kueche im Restaurant Rialto, Hamburg. Saisonale Gerichte von ausgewaehlten Kochtalenten am Michaelisplatz.'}elseif (is_page('wein-bar') || is_page('Wein Bar')){$title='Wein Bar Hamburg | Restaurant Rialto';$description='Die Wein Bar im Restaurant Rialto Hamburg - Entdecken Sie unsere handverlesene Weinauswahl im Herzen der Hansestadt.'}elseif (is_page('events') || is_page('Events')){$title='Private Events & Feiern | Restaurant Rialto Hamburg';$description='Feiern Sie im Restaurant Rialto Hamburg. Private Events, Firmenfeiern und besondere Anlaesse in einzigartiger Atmosphaere.'}elseif (is_page('reservierung') || is_page('Reservierung')){$title='Tisch reservieren | Restaurant Rialto Hamburg';$description='Reservieren Sie Ihren Tisch im Restaurant Rialto Hamburg. Fine Dining Erlebnis am Michaelisplatz - online oder telefonisch buchen.'}elseif (is_singular('post')){$title=get_the_title() . ' | ' . $site_name;$description=wp_trim_words(get_the_excerpt(),25,'...')}else{$title=get_the_title() . ' | ' . $site_name;$description=$description ?:$site_name . ' - Fine Dining & Weinbar in Hamburg.'}if (empty($description)){$description=$site_name . ' - Fine Dining & Weinbar in Hamburg. Erlesene Kueche, erlesene Weine und einzigartige Atmosphaere.'}echo '<meta name="description" content="' . esc_attr($description) . '" />' . "\n";echo '<meta property="og:title" content="' . esc_attr($title) . '" />' . "\n";echo '<meta property="og:description" content="' . esc_attr($description) . '" />' . "\n";$current_url=(is_ssl() ? 'https' :'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];echo '<meta property="og:url" content="' . esc_url(//restaurantrialto.de/wp-content/themes/laurent-child/$current_url) . '" />' . "\n";echo '<meta property="og:type" content="website" />' . "\n";echo '<meta property="og:site_name" content="' . esc_attr($site_name) . '" />' . "\n";echo '<meta property="og:image" content="' . esc_url(//restaurantrialto.de/wp-content/themes/laurent-child/$og_image) . '" />' . "\n";echo '<meta property="og:image:width" content="1200" />' . "\n";echo '<meta property="og:image:height" content="630" />' . "\n";echo '<meta name="twitter:card" content="summary_large_image" />' . "\n";echo '<meta name="twitter:title" content="' . esc_attr($title) . '" />' . "\n";echo '<meta name="twitter:description" content="' . esc_attr($description) . '" />' . "\n";echo '<meta name="twitter:image" content="' . esc_url(//restaurantrialto.de/wp-content/themes/laurent-child/$og_image) . '" />' . "\n";}add_action('wp_head','rialto_seo_meta_tags',1);}if (! function_exists('rialto_seo_title_tag')){function rialto_seo_title_tag($title){if (is_admin() || is_customize_preview()){return $title}if (is_front_page()){return 'Restaurant Rialto - Fine Dining & Weinbar Hamburg'}if (is_page('dining') || is_page('Dining')){return 'Fine Dining Hamburg | Restaurant Rialto'}if (is_page('wein-bar') || is_page('Wein Bar')){return 'Wein Bar Hamburg | Restaurant Rialto'}if (is_page('events') || is_page('Events')){return 'Private Events & Feiern | Restaurant Rialto Hamburg'}if (is_page('reservierung') || is_page('Reservierung')){return 'Tisch reservieren | Restaurant Rialto Hamburg'}if (is_singular('post')){return get_the_title() . ' | Restaurant Rialto'}if (is_singular()){return get_the_title() . ' | Restaurant Rialto'}return $title;}add_filter('pre_get_document_title','rialto_seo_title_tag',20);}if (! function_exists('rialto_add_schema_markup')){function rialto_add_schema_markup(){if (! is_front_page()){return}$schema=['@context'=>'https://schema.org','@type'=>'Restaurant','name'=>'Restaurant Rialto GmbH','description'=>'Restaurant Rialto am Michaelisplatz in Hamburg: Fine Dining, erlesene Weine und einzigartige Atmosphaere an der Elbe.','url'=>home_url('/'),'image'=>home_url('/wp-content/uploads/2026/07/Rialto-Shoot-Aug23-32.jpg'),'address'=>['@type'=>'PostalAddress','streetAddress'=>'Michaelisbruecke 3','postalCode'=>'20459','addressLocality'=>'Hamburg','addressCountry'=>'DE',],'servesCuisine'=>'Fine Dining','priceRange'=>'$$$','openingHoursSpecification'=>[['@type'=>'OpeningHoursSpecification','dayOfWeek'=>['Monday','Tuesday','Wednesday','Thursday','Friday'],'opens'=>'12:00','closes'=>'22:00',],],];echo '<script type="application/ld+json">' . wp_json_encode($schema,JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT) . '</script>' . "\n";}add_action('wp_head','rialto_add_schema_markup',5);}if (! function_exists('rialto_get_restaurant_info')){function rialto_get_restaurant_info(){$defaults=array('name'=> 'Restaurant Rialto GmbH','street'=> 'Michaelisbr&#252;cke 3','zip_city'=> '20459 Hamburg','phone'=> '+49 40 307 66093','phone_link'=> '+494030766093','email_info'=> 'info@restaurantrialto.de','email_res'=> 'reservierung@restaurantrialto.de','hours_label'=> '&#214;ffnungszeiten','hours_detail'=> 'Montag bis Freitag<br>Warme K&#252;che 12:00 &#8211; 21:00 Uhr<br>Ge&#246;ffnet bis 22:00 Uhr','hours_short'=> 'Mo &#8211; Fr: 12:00 &#8211; 22:00 Uhr','hours_note'=> 'Reservierung empfohlen.','google_maps'=> 'https://maps.app.goo.gl/qDxwKXqELR9yK7Nh6','maps_embed'=> 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2370.5!2d9.9737!3d53.5461!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47b18f2e2e2e2e2e%3A0x0!2sMichaelisbr%C3BCcke+3%2C+20459+Hamburg!5e0!3m2!1sde!2sde!4v1700000000000!5m2!1sde!2sde','copyright'=> '&copy; Restaurant Rialto GmbH',);$saved=get_option('rialto_restaurant_info',array());return wp_parse_args($saved,$defaults)}}if (! function_exists('rialto_footer_bottom_content')){function rialto_footer_bottom_content(){$i=rialto_get_restaurant_info();$logo_url=home_url('/wp-content/uploads/2026/07/Rialto_Logo_Bruecke_kurz_onur_v2.png');?> <div class="rialto-footer-bar"> <div class="rialto-footer-bar-inner"> <div class="rialto-footer-bar-col rialto-footer-bar-brand"> <img src="<?php echo esc_url(//restaurantrialto.de/wp-content/themes/laurent-child/$logo_url); ?>" alt="Rialto" class="rialto-footer-bar-logo" width="80" height="34"> <div class="rialto-footer-bar-name">Rialto</div> <div class="rialto-footer-bar-tagline">Restaurant &middot;Wein &middot;Kultur</div> </div> <div class="rialto-footer-bar-col rialto-footer-bar-contact"> <div class="rialto-footer-bar-label">Kontakt</div> <address class="rialto-footer-bar-address"> <a href="<?php echo esc_url(//restaurantrialto.de/wp-content/themes/laurent-child/$i['google_maps']); ?>" target="_blank" rel="noopener noreferrer"><?php echo esc_html($i['street']);?><br><?php echo esc_html($i['zip_city']);?></a> </address> <div class="rialto-footer-bar-phones"> <a href="tel:<?php echo esc_attr( $i['phone_link'] ); ?>"><?php echo esc_html($i['phone']);?></a> </div> <div class="rialto-footer-bar-email"> <a href="mailto:<?php echo esc_attr( $i['email_info'] ); ?>"><?php echo esc_html($i['email_info']);?></a> </div> </div> <div class="rialto-footer-bar-col rialto-footer-bar-hours"> <div class="rialto-footer-bar-label"><?php echo wp_kses_post($i['hours_label']);?></div> <div class="rialto-footer-bar-times"> <?php echo wp_kses_post($i['hours_detail']);?> </div> <?php if (!empty($i['hours_note'])):?> <div class="rialto-footer-bar-note"><?php echo esc_html($i['hours_note']);?></div> <?php endif;?> </div> </div> </div> <?php}add_action('laurent_elated_action_after_footer_bottom_container_inner_open','rialto_footer_bottom_content');}if (! function_exists('rialto_burger_menu_content')){function rialto_burger_menu_content(){$i=rialto_get_restaurant_info();?> <div class="rialto-burger-info"> <p class="rialto-burger-name"><?php echo esc_html($i['name']);?></p> <p class="rialto-burger-address"><a href="<?php echo esc_url(//restaurantrialto.de/wp-content/themes/laurent-child/$i['google_maps']); ?>" target="_blank" rel="noopener noreferrer"><?php echo esc_html($i['street'] . ', ' . $i['zip_city']);?></a></p> <p class="rialto-burger-phone"><a href="tel:<?php echo esc_attr( $i['phone_link'] ); ?>"><?php echo esc_html($i['phone']);?></a></p> <p class="rialto-burger-email"><a href="mailto:<?php echo esc_attr( $i['email_res'] ); ?>"><?php echo esc_html($i['email_res']);?></a></p> <p class="rialto-burger-hours-label"><?php echo wp_kses_post($i['hours_label']);?></p> <div class="rialto-burger-hours-detail"><?php echo wp_kses_post($i['hours_detail']);?></div> <?php if (!empty($i['hours_note'])):?> <p class="rialto-burger-hours-note"><?php echo esc_html($i['hours_note']);?></p> <?php endif;?> <div class="rialto-burger-map-wrap"> <iframe src="<?php echo esc_url(//restaurantrialto.de/wp-content/themes/laurent-child/$i['maps_embed']); ?>" width="100%" height="200" style="border:1px solid rgba(184,154,115,0.3); border-radius:0; margin-top:16px;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe> <a href="<?php echo esc_url(//restaurantrialto.de/wp-content/themes/laurent-child/$i['google_maps']); ?>" target="_blank" rel="noopener noreferrer" class="rialto-burger-map-link">Auf Google Maps &ouml;ffnen &rarr;</a> </div> </div> <?php}}if (! function_exists('rialto_filter_side_menu_text')){function rialto_filter_side_menu_text($text,$instance=array(),$widget=null){if (is_admin()){return $text}//Nur im sidearea Widget (text-6) ersetzen if ($widget && isset($widget->id) && strpos($widget->id,'text-6') !==false){ob_start();rialto_burger_menu_content();return ob_get_clean()}return $text;}add_filter('widget_text','rialto_filter_side_menu_text',10,3);}if (! function_exists('rialto_inline_css')){function rialto_inline_css(){?><style>.rialto-footer-bar{width:100%;background:#081116}.rialto-footer-bar-inner{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:48px;max-width:1100px;margin:0 auto;padding:56px 40px 52px;align-items:start}.rialto-footer-bar-brand{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:0}.rialto-footer-bar-contact{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px}.rialto-footer-bar-hours{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px}.rialto-footer-bar-logo{display:block;height:44px;width:auto;margin-bottom:18px;opacity:.85}.rialto-footer-bar-name{font-family:"Rialto Serif",serif;font-size:30px;font-weight:400;line-height:1;letter-spacing:.3px;color:#d8c3a0;margin-bottom:8px}.rialto-footer-bar-tagline{font-family:"Rialto Sans",sans-serif;font-size:10px;font-weight:400;letter-spacing:2.5px;text-transform:uppercase;color:#b89a73}.rialto-footer-bar-label{font-family:"Rialto Sans",sans-serif;font-size:10px;font-weight:400;letter-spacing:2.5px;text-transform:uppercase;color:#b89a73;margin-bottom:0}.rialto-footer-bar-address{font-style:normal;font-family:"Rialto Sans",sans-serif;font-size:14px;font-weight:300;line-height:1.75;color:#cfc6b8;margin:0}.rialto-footer-bar-address a{color:inherit;text-decoration:none;transition:color .25s ease}.rialto-footer-bar-address a:hover{color:#b89a73}.rialto-footer-bar-phones{font-family:"Rialto Sans",sans-serif;font-size:13px;font-weight:300;letter-spacing:.3px;color:#9f9689;margin:0}.rialto-footer-bar-phones a{color:#b89a73;text-decoration:none;transition:color .25s ease}.rialto-footer-bar-phones a:hover{color:#d8c3a0}.rialto-footer-bar-email{font-family:"Rialto Sans",sans-serif;font-size:13px;font-weight:300;letter-spacing:.3px;color:#9f9689;margin:0}.rialto-footer-bar-email a{color:#b89a73;text-decoration:none;transition:color .25s ease}.rialto-footer-bar-email a:hover{color:#d8c3a0}.rialto-footer-bar-times{font-family:"Rialto Sans",sans-serif;font-size:14px;font-weight:300;line-height:1.85;color:#cfc6b8;margin:0}.rialto-footer-bar-note{font-family:"Rialto Sans",sans-serif;font-size:13px;font-weight:300;font-style:italic;color:#7a7068;margin:0}@media (min-width:768px) and (max-width:1024px){.rialto-footer-bar-inner{grid-template-columns:1fr 1fr;gap:40px;padding:48px 32px 44px}.rialto-footer-bar-brand{grid-column:1/-1;align-items:center;text-align:center;padding-bottom:8px;border-bottom:1px solid #1a2224;margin-bottom:4px}.rialto-footer-bar-contact,.rialto-footer-bar-hours{align-items:flex-start}}@media (max-width:767px){.rialto-footer-bar-inner{grid-template-columns:1fr;gap:32px;padding:40px 24px 36px;text-align:center}.rialto-footer-bar-brand{align-items:center}.rialto-footer-bar-contact{align-items:center}.rialto-footer-bar-hours{align-items:center}.rialto-footer-bar-address{text-align:center}.rialto-footer-bar-name{font-size:26px}}.rialto-burger-info{padding:20px 0;font-family:"Rialto Sans",sans-serif;font-weight:300;color:#cfc6b8;line-height:1.7}.rialto-burger-name{font-family:"Rialto Serif",serif;font-size:28px;font-weight:400;color:#d8c3a0;margin-bottom:12px}.rialto-burger-address{margin-bottom:4px}.rialto-burger-address a{color:#b89a73;text-decoration:underline;text-underline-offset:3px}.rialto-burger-address a:hover{color:#d8c3a0}.rialto-burger-phone{margin-bottom:12px}.rialto-burger-phone a{color:#cfc6b8;text-decoration:none}.rialto-burger-phone a:hover{color:#b89a73}.rialto-burger-email{margin-bottom:16px}.rialto-burger-email a{color:#b89a73;text-decoration:none;font-size:13px}.rialto-burger-email a:hover{color:#d8c3a0}.rialto-burger-hours-label{font-size:11px;font-weight:400;letter-spacing:3px;text-transform:uppercase;color:#b89a73;margin-bottom:4px}.rialto-burger-hours-detail{margin-bottom:8px;line-height:1.8}.rialto-burger-hours-note{font-style:italic;color:#8a7e72;font-size:12px;margin-bottom:16px}.rialto-burger-map-wrap{margin-top:16px}.rialto-burger-map-link{display:inline-block;margin-top:10px;font-family:"Rialto Sans",sans-serif;font-size:12px;font-weight:400;letter-spacing:1px;color:#b89a73 !important;text-decoration:none !important;border-bottom:1px solid rgba(184,154,115,.4);padding-bottom:2px;transition:all .2s ease}.rialto-burger-map-link:hover{color:#d8c3a0 !important;border-bottom-color:#d8c3a0}</style><?php}add_action('wp_head','rialto_inline_css',50);}