send telegram
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
(() => {
|
||||
const contactForm = document.getElementById('contactForm')
|
||||
const contactSuccess = document.getElementById('contactSuccess')
|
||||
const formConfig = window.test1ContactsForm || null
|
||||
|
||||
if (!contactForm || !contactSuccess) {
|
||||
return
|
||||
@@ -10,6 +9,8 @@
|
||||
contactForm.addEventListener('submit', async event => {
|
||||
event.preventDefault()
|
||||
|
||||
const formConfig = window.test1ContactsForm || null
|
||||
|
||||
if (!formConfig?.ajaxUrl || !formConfig?.action || !formConfig?.nonce) {
|
||||
window.alert('Форма временно недоступна. Обновите страницу и попробуйте снова.')
|
||||
return
|
||||
|
||||
@@ -167,6 +167,7 @@ HTML;
|
||||
|
||||
$landing_html = preg_replace( '/<header class="site-header">.*?<\/header>/is', $shared_header_markup, $landing_html, 1 );
|
||||
$landing_html = preg_replace( '/<footer class="footer">.*?<\/footer>/is', $shared_footer_markup, $landing_html, 1 );
|
||||
$landing_html = preg_replace( '/<script[^>]+src=["\'](?:\.\/)?index3\.js["\'][^>]*><\/script>/i', '', $landing_html );
|
||||
}
|
||||
?><!DOCTYPE html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
|
||||
Reference in New Issue
Block a user