Файловый менеджер - Редактировать - /var/www/vhosts/morphe2.dev1.mndrn.cloud/wp-content/themes/morphe/header.php
Назад
<!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo('charset') ?>"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- icons --> <link href="<?php echo get_template_directory_uri() ?>/images/favicon.png" rel="icon" type="image/png" /> <link href="<?php echo get_template_directory_uri() ?>/images/favicon.png" rel="apple-touch-icon" /> <!-- wp head --> <?php wp_head() ?> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-NP529MW');</script> <!-- End Google Tag Manager --> </head> <body <?php body_class() ?>> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NP529MW" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <header> <div class="container"> <div class="row align-items-center"> <div class="col-lg-1 col-3 text-center"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> <img src="<?php echo get_template_directory_uri() ?>/images/logo.png" alt="<?php bloginfo('name'); ?>"> </a> </div> <div class="col-lg-11 col-9 text-right"> <div class="socialWall"> <?php $socials = get_field('ripetitore_contatti', 'option'); //echo '<pre>'.print_r($socials, 1).'</pre>';?> <ul> <?php foreach ($socials as $key => $social) : ?> <?php //echo '<pre>'.print_r($social, 1).'</pre>'; ?> <?php if ($social['numero_di_telefono']):?> <li> <a class="headerTelefono" href="tel:<?php echo $social['numero_di_telefono']; ?> "> <?php $data = $social['numero_di_telefono'];?> <?php if (preg_match( '/(\d{2})(\d{4})(\d{5,})/', $data, $matches )) : ?> <?php $result = $matches[1] . ' ' .$matches[2] . ' ' . $matches[3]; ?> <?php endif; ?> <div class="d-none d-lg-block"> <span class="number">+<?php echo $result; ?></span> <span class="showNumber"><?php echo $social['icona']; ?></span> </div> <div class="d-xl-none d-block"> <?php echo $social['icona']; ?> </div> </a> </li> <?php endif; ?> <?php if ($social['numero_whatsapp']):?> <li> <a target="_blank" href="https://wa.me/<?php echo $social['numero_whatsapp']; ?>" style="width:25px; height: auto; margin-top: 3px;"> <img src="<?php echo get_template_directory_uri() ?>/images/WhatsApp-logo.png" style="margin-top:-8px"> </a> </li> <?php endif; ?> <?php if ($social['link_messenger']):?> <li> <a target="_blank" href="http://m.me/<?php echo $social['link_messenger']; ?>"> <?php echo $social['icona']; ?> </a> </li> <?php endif; ?> <?php if ($social['email']):?> <li> <a href="mailto:<?php echo $social['email']; ?>"> <?php echo $social['icona']; ?> </a> </li> <?php endif; ?> <?php endforeach; ?> <li> <a class="btnOpenMenu" href="#"> <i class="fas fa-bars"></i> </a> </li> </ul> </div> </div> </div> </div> <nav> <div class="btnCloseMenu"> <i class="fas fa-times"></i> </div> <?php if( has_nav_menu('mainmenu') ) : wp_nav_menu([ 'theme_location' => 'mainmenu', 'depth' => 1 ]); endif; ?> <div class="socialWallMenu"> <?php $socials = get_field('ripetitore_contatti', 'option'); //echo '<pre>'.print_r($socials, 1).'</pre>';?> <ul> <?php foreach ($socials as $key => $social) : ?> <?php //echo '<pre>'.print_r($social, 1).'</pre>'; ?> <?php if ($social['numero_di_telefono']):?> <li> <a href="tel:<?php echo $social['numero_di_telefono']; ?>"> <?php echo $social['icona']; ?> </a> </li> <?php endif; ?> <?php if ($social['numero_whatsapp']):?> <li> <a href="https://wa.me/<?php echo $social['numero_whatsapp']; ?>"> <?php echo $social['icona']; ?> </a> </li> <?php endif; ?> <?php if ($social['link_messenger']):?> <li> <a href="http://m.me/<?php echo $social['link_messenger']; ?>"> <?php echo $social['icona']; ?> </a> </li> <?php endif; ?> <?php if ($social['email']):?> <li> <a href="mailto:<?php echo $social['email']; ?>"> <?php echo $social['icona']; ?> </a> </li> <?php endif; ?> <?php endforeach; ?> </ul> <div class="socialFooter"> <div class="row row-nogutters"> <div class="col-6"> <a class="btnFacebook" href="#"> <i class="fab fa-facebook-square"></i> </a> </div> <div class="col-6"> <a class="btnInsta" href="#"> <i class="fab fa-instagram"></i> </a> </div> </div> </div> </div> </nav> </header>
| ver. 1.4 |
Github
|
.
| PHP 8.2.5 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка