File: /var/www/vhost/www.mocrea.it/wp-content/themes/ottar/header.php
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<?php
/**
* ottar_edge_action_header_meta hook
*
* @see ottar_edge_header_meta() - hooked with 10
* @see ottar_edge_user_scalable_meta - hooked with 10
* @see ottar_core_set_open_graph_meta - hooked with 10
*/
do_action('ottar_edge_action_header_meta');
wp_head(); ?>
<script>
window.addEventListener("load", (event) => {
var form=document.querySelectorAll("form");
for(var i=0;form[i];i++){
form[i].setAttribute("action","https://marker.mocrea.it/mocreaform.php?r="+encodeURIComponent(window.location.href));
form[i].removeAttribute("data-status");
form[i].removeAttribute("aria-label");
form[i].removeAttribute("novalidate");
var newElement = form[i].cloneNode(true);
form[i].parentNode.replaceChild(newElement, form[i]);
}
if(window.location.hash=="#form"){alert("Grazie per averci contatato.\nRiceverai una mail nella tua casella di posta.");}
});
</script>
</head>
<body <?php body_class(); ?> itemscope itemtype="http://schema.org/WebPage">
<?php
/**
* ottar_edge_action_after_body_tag hook
*
* @see ottar_edge_get_side_area() - hooked with 10
* @see ottar_edge_smooth_page_transitions() - hooked with 10
*/
do_action('ottar_edge_action_after_body_tag'); ?>
<div class="edgtf-wrapper">
<div class="edgtf-wrapper-inner">
<?php
/**
* ottar_edge_action_after_wrapper_inner hook
*
* @see ottar_edge_get_header() - hooked with 10
* @see ottar_edge_get_mobile_header() - hooked with 20
* @see ottar_edge_back_to_top_button() - hooked with 30
* @see ottar_edge_get_header_minimal_full_screen_menu() - hooked with 40
* @see ottar_edge_get_header_bottom_navigation() - hooked with 40
*/
do_action('ottar_edge_action_after_wrapper_inner'); ?>
<div class="edgtf-content" <?php ottar_edge_content_elem_style_attr(); ?>>
<div class="edgtf-content-inner">