Файловый менеджер - Редактировать - /var/www/gravitycm.com/wp-content/themes/gravity/header.php
Назад
<?php /** * The header for our theme * * This is the template that displays all of the <head> section and everything up until <div id="content"> * * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * * @package gravity */ ?> <!doctype html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="https://gmpg.org/xfn/11"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php wp_body_open(); ?> <div id="page" class="site"> <a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e( 'Skip to content', 'gravity' ); ?></a> <header id="masthead" class="site-header"> <div class="container"> <div class="header-main-row"> <?php $conatct_number = get_field('conatct_number','option'); if($conatct_number){ ?> <div class="only-mobile"> <a href="tel:<?php echo $conatct_number; ?>"> <img src="<?php echo home_url(); ?>/wp-content/uploads/2023/02/Gravity-Icons-Phone.png" alt="phone"> </a> </div> <?php } ?> <div class="header-left"> <div class="header-logo"> <div class="only-desktop"> <div class="site-branding"> <?php the_custom_logo(); if ( is_front_page() && is_home() ) : ?> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <?php else : ?> <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> <?php endif; $gravity_description = get_bloginfo( 'description', 'display' ); if ( $gravity_description || is_customize_preview() ) : ?> <p class="site-description"><?php echo $gravity_description; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p> <?php endif; ?> </div><!-- .site-branding --> </div> <?php $mobile_header_logo = get_field('mobile_header_logo','option'); $logo_img = wp_get_attachment_image($mobile_header_logo['ID'],'full'); if($mobile_header_logo){ ?> <div class="only-mobile"> <a href="<?php echo site_url(); ?>"> <?php echo $logo_img; ?> </a> </div> <?php } ?> </div> </div> <div class="header-right"> <div class="header-left-wrap"> <?php $other_link = get_field('other_link','option'); if($other_link){ ?> <div class="get-link-btn"> <a href="<?php echo $other_link['url']; ?>" class="get-link btn"><?php echo $other_link['title']; ?></a> </div> <?php } ?> <div class="main-menu-toggle-wrap"> <a href="javascript:void(0)" class="mobile-menu-button" id="mobile-menu-button"> <span></span> <span></span> <span></span> <span></span> </a> </div> </div> <div class="sidebar-menu"> <div class="sidebar-top-wrap"> <div class="site-logo"> <div class="site-branding"> <?php the_custom_logo(); if ( is_front_page() && is_home() ) : ?> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <?php else : ?> <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> <?php endif; $gravity_description = get_bloginfo( 'description', 'display' ); if ( $gravity_description || is_customize_preview() ) : ?> <p class="site-description"><?php echo $gravity_description; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p> <?php endif; ?> </div><!-- .site-branding --> </div> <div class="site-colse"> <div class="main-menu-toggle-wrap"> <a href="javascript:void(0)" class="mobile-menu-button" id="mobile-menu-button"> <span></span> <span></span> <span></span> <span></span> </a> </div> </div> </div> <div class="sidebar-bottom-wrap"> <div class="site-nav"> <nav id="site-navigation" class="main-navigation"> <?php wp_nav_menu( array( 'theme_location' => 'menu-1', 'menu_id' => 'primary-menu', ) ); ?> </nav><!-- #site-navigation --> </div> <div class="get-link-btn"> <a href="<?php echo $other_link['url']; ?>" class="get-link btn"><?php echo $other_link['title']; ?></a> </div> </div> </div> </div> </div> </div> </header><!-- #masthead -->
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.29 | Генерация страницы: 0.02 |
proxy
|
phpinfo
|
Настройка