文件操作 - header_save.php
返回文件管理
返回主菜单
删除本文件
文件: /home/tecnoht/public_html/studiolegalebelloni--it/wp-content/themes/belloni/header_save.php
编辑文件内容
<!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <title><?php bloginfo( 'name' ); ?></title> <meta charset="utf-8"> <link rel="stylesheet" href="<?php echo get_template_directory_uri().'/style.css'; ?>" type="text/css" media="screen"> <link rel="icon" href="<?php echo get_template_directory_uri().'/images/logo/icona3.png'; ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <!-- <link rel="stylesheet" href="css/grid.css"> <link rel="stylesheet" href="css/style.css"> <link rel="stylesheet" href="css/camera.css"/> <link rel="stylesheet" href="css/owl-carousel.css"/> <link rel="stylesheet" href="css/jquery.fancybox.css"/> <link rel="stylesheet" href="<?php echo get_template_directory_uri().'/css/grid.css'; ?>" type="text/css" media="screen"> <link rel="stylesheet" href="<?php echo get_template_directory_uri().'/style.css'; ?>" type="text/css" media="screen"> <link rel="stylesheet" href="<?php echo get_template_directory_uri().'/css/camera.css'; ?>" type="text/css" media="screen"> <link rel="stylesheet" href="<?php echo get_template_directory_uri().'/css/owl-carousel.css'; ?>" type="text/css" media="screen"> <link rel="stylesheet" href="<?php echo get_template_directory_uri().'/css/jquery.fancybox.css'; ?>" type="text/css" media="screen"> --> <!-- rem it if dont use <link rel="stylesheet" href="<?php echo get_template_directory_uri().'/css/font-awesome/fontawesome-4.2.0.min.css'; ?>" /> --> <link href="https://fonts.googleapis.com/css?family=Poppins:100,100i,200,400&display=swap" rel="stylesheet"> <?php wp_head(); ?> <script src="<?php echo get_template_directory_uri().'/js/jquery.simplr.smoothscroll.min.js'; ?>" ></script> <script src="<?php echo get_template_directory_uri().'/js/jquery.transit.min.js'; ?>" ></script> <style> /* Remove meta data in pages and articles ( data and author ) */ .entry-meta .byline, .entry-meta .cat-links { display: none; } .entry-meta{ display: none; } .entry-title{ display: none; } .nocomments{ display: none } .entry-meta .posted-on { display: none; } </style> <style> .elementor_ html { scroll-behavior: smooth; } .header{ position: fixed; width: 100%; z-index: 3000; } .first_header{ width: 100%; background-color: #1D7071; height: 46px; line-height:46px; color: #f0f0f0; transition: background .25s ease-in-out; overflow: hidden; /*text-align: center;*/ /* position: fixed; z-index: 1000; */ } .inner_first_header{ position: relative; width: 1080px; /*70%;*/ margin: 0 auto; 1px solid rgba(0,0,0,.15) } .inner_first_header_right{ float: right; width: 60%; } .second_header{ background-color: #fff; height: 100px; border-bottom: solid 1px #bbb; } .img_logo{ height: 48px; width: 48px; /*margin-left: -4px;*/ margin: 14px 4px 0 -4px; /*line-height: 78px;*/ } .header_title{ position: absolute; top: 18px; left: 86px; font-size: 27px; font-weight: 600; color: #444; } .header_slogan{ position: absolute; top: 48px; left: 86px; font-size: 13px; } .header-social-list{ color: #f0f0f0; list-style: none; float: right; vertical-align: middle; } .header-social-list li{ display: inline-block; line-height: 46px; font-size: 20px; vertical-align: middle; } .social_top{ float: right; display: inline-block; line-height: 46px; font-size: 21px; margin: 0 14px; font-weight: 400; } .nav1{ /*float:right;*/ } .sf-menu1 { display: inline-block; text-transform: uppercase; line-height: 78px; font-size: 0.8em; font-weight: 800; } .sf-menu1 li{ display: inline-block; margin-right: 20px; color: #444; height: 76px; cursor: pointer; } .sf-menu1 li:hover{ border-bottom: solid 3px #1D7071; } .sf-menu1 li a{ height: 78px; } .divisorio{ display: inline-block; height: 100%; width: 2px; border-right: solid 1px #1b6465; float: right; } .search{ height: 32px; width: 180px; position: absolute; right: 2px; top: 21px; padding-left: 8px; border: solid 1px #444; } .search_icon{ position: absolute; right: 10px; top: 26px; /*line-height: 78px;*/ font-size: 25px; color: #444; /*margin-right: 10px; */ /*float: right */ } #wrap_social{ color: #fff; /* transition: background 2s linear; -webkit-transition: background 2s linear; -moz-transition: background 2s linear; */ } .content{ margin-top: 146px; } .sub_menu{ } .btn_mnu_mobile{ display: none; float: right; margin: 22px 10px 0 0; line-height: 78px; font-size: 26px; cursor: pointer; } @media screen and (min-width:180px) and (max-width:1000px) { .header_title, .header_slogan{ left: 2px; } } @media screen and (min-width:180px) and (max-width:1120px) { .header_title, .header_slogan{ left: 6px; } .search, search_icon{ display: none; } .img_logo{ display: none; } #search_icon{ display:none; } .sf-menu1{ display: none; } .first_header{ display: none; } .inner_first_header{ width: 100%; } .content{ margin-top: 78px; } .btn_mnu_mobile{ display: block; } } </style> </head> <body> <!--======================================================== HEADER =========================================================--> <header id="header" class="header"> <div class="first_header" id="first_header"> <div class="inner_first_header"> <i class="fa fa-phone-square" style="font-size: 22px;margin-right: 10px; line-height:46px;"></i> <b style="margin-right:9px">+39 02 965 06 28</b> <div class="divisorio" style="float:none"></div> <i class="fa fa-envelope" style="font-size: 22px;margin:0 6px 0 9px; line-height:46px;"></i> <b><a href="mailto:info@asso-italia.it">Contattaci</a></b> <div id="wrap_social" style="float:right"> <i class="fa fa-cogs" style="font-size: 22px;margin-right: 10px; line-height:46px;"></i> <a href="/schede-tecniche">Schede tecniche</a> <!-- <div class="divisorio" style="height: 100%"></div> <a class="fab fa-facebook social_top" style="line-height: 46px;" target="_blank" href="" ></a> <div class="divisorio"></div> <a class="fab fa-instagram social_top" style="line-height: 46px;" target="_blank" href="" ></a> <div class="divisorio"></div> <a class="fab fa-linkedin social_top" style="line-height: 46px;" target="_blank" href="" ></a> <div class="divisorio" style="height: 100%"></div> --> </div> </div> </div> <div class="second_header"> <div class="inner_first_header"> <a href="https://www.asso-italia.it/"> <img class="img_logo" src="<?php echo get_template_directory_uri().'/images/logo/logo6.png'; ?>" title="Asso Italia Logo" alt="Asso Italia Logo" /> <div class="header_title"> Asso Italia Srl </div> <div class="header_slogan"> Macchine, attrezzature, prodotti per la pulizia <br>e igiene della persona </div> </a> <div class="inner_first_header_right"> <div class="nav1"> <?php /* wp_nav_menu( array( 'menu' => 'top', 'theme_location' => 'primary', 'container' => false, 'menu_class' => 'sf-menu' )); */ ?> <ul class="sf-menu1"> <li class="active"> <!-- <a class="fa fa-home" href="./"></a> --> <a href="<?php get_site_url() ?>/" >Home</a> </li> <!-- <li> <a href="index-1.html">Our business</a> <ul> <li> <a href="#">Quisque nulla</a> </li> <li> <a href="#">Vestibulum libero</a> <ul> <li> <a href="#">Lorem</a> </li> <li> <a href="#">Dolor</a> </li> <li> <a href="#">Sit amet</a> </li> </ul> </li> <li> <a href="#">Vivamus eget nibh</a> </li> </ul> </li> --> <li> <a href='<?php get_site_url() ?>/azienda/' >Azienda</a> </li> <li> <a href="<?php get_site_url() ?>/servizi" >Servizi</a> </li> <li> <a href="<?php get_site_url() ?>/prodotti" >Prodotti</a> </li> <li> <a href="<?php get_site_url() ?>/contatti" >Contatti</a> </li> </ul> </div> <input type="text" class="search" placeholder="Cerca..." /> <i id="search_icon" class="fa fa-search search_icon" style=""></i> </div> <span class="btn_mnu_mobile"> <i class="fa fa-bars" ></i> </span> </div> </div> <div class="sub_menu"> </div> </header> <script> (function($) { window.onload = function(){ //$( document ).ready( function(){ hide_header_footer_underconstr(); //adjust_menu(); hide_top_header(); /* if ( ! $.browser.mozilla ){ //smooth_scroll_window(); } */ adjust_menu(); }; function hide_header_footer_underconstr(){ var divunder = $("#div_underconstruction"); if ( divunder ){ console.log("divunder "+divunder.length); if ( divunder.length>0 ){ $("#header").hide(); $("#footer").hide(); } } } function hide_top_header(){ jQuery( document ).scroll( function(){ vscroll=$( document ).scrollTop(); //console.log("scroll "+vscroll); if ( vscroll<2 ){ //console.log("show fh "+vscroll); jQuery("#first_header").animate({ height: "46px" }, 200, function(){ console.log("color ff"); $("#wrap_social").css({ color: "#ffffff"}); }); }else{ //console.log("first_header h "+$("#first_header").height() ); if ( jQuery("#first_header").height()==46 ){ jQuery("#first_header").transition({ height: "-=46px" }, 200, "ease"); }; jQuery("#wrap_social").css({ color: "#888"}); /* console.log("actual color "+$("#wrap_social").css("color") ); if ( actual_color <> "rgb(136, 136, 136)"){ var t=setTimeout( function(){ console.log("color 88"); $("#wrap_social").css({ color: "#888"}); }, 1000); } */ } }); } function adjust_menu(){ // Home console.log("li "+$("#menu-top li").first().length); var objli = $(".adjust_menu li").first(); //objli.find("a").html(""); //objli.find("a").addClass("fa fa-home"); // Selected console.log("page "+window.location.href); var v_pg = window.location.href.split("/"); var pg = v_pg[ v_pg.length-2 ]; console.log("pg "+pg); $(".sf-menu1 li").css({ color: "#222"}) switch( pg ){ case "servizi": console.log("color "); $(".sf-menu1 > li:eq(2)").find("a").css({ color: "#1D7071" }); break; case "prodotti": console.log("color "); $(".sf-menu1 > li:eq(3)").find("a").css({ color: "#1D7071" }); break; case "azienda": console.log("color "); $(".sf-menu1 > li:eq(1)").find("a").css({ color: "#1D7071" }); break; case "news": console.log("color "); $(".sf-menu1 > li:eq(4)").find("a").css({ color: "#1D7071" }); break; case "contatti": console.log("color "); $(".sf-menu1 > li:eq(4)").find("a").css({ color: "#1D7071" }); break; default: $(".sf-menu1 > li:eq(0)").find("a").css({ color: "#1D7071" }); break; } } function smooth_scroll_window(){ //if (window.addEventListener) window.addEventListener('DOMMouseScroll', wheel, false); //window.onmousewheel = document.onmousewheel = wheel; $( ".page" ).bind('mousewheel', function(e){ var event = e.originalEvent; if (event.preventDefault) event.preventDefault(); var delta = 0; if (event.wheelDelta) delta = event.wheelDelta / 20; // 40 controls the scroll wheel range/speed else if (event.detail) delta = -event.detail / 20; // era 40 handle(delta); event.returnValue = false; console.log("wheel event"); }); var goUp = true; var end = null; var interval = null; function handle(delta) { var animationInterval = 8; //controls the scroll animation after scroll is done (20) var scrollSpeed = 2; //controls the scroll animation after scroll is done (20) if (end == null) { end = $(window).scrollTop(); } end -= 20 * delta; goUp = delta > 0; if (interval == null) { interval = setInterval(function () { var scrollTop = $(window).scrollTop(); var step = Math.round((end - scrollTop) / scrollSpeed); if (scrollTop <= 0 || scrollTop >= $(window).prop("scrollHeight") - $(window).height() || goUp && step > -1 || !goUp && step < 1 ) { clearInterval(interval); interval = null; end = null; } $(window).scrollTop(scrollTop + step ); }, animationInterval); } } } })( jQuery ); </script> <div class="page" style="" > <div id="content" class="site-content">
修改文件时间
将文件时间修改为当前时间的前一年
删除文件