send telegram
This commit is contained in:
BIN
2026-04-18_18-42-04.png
Normal file
BIN
2026-04-18_18-42-04.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
@@ -22,7 +22,6 @@ const mobileToggle = document.getElementById('mobileToggle')
|
||||
const orderSuccess = document.getElementById('orderSuccess')
|
||||
const contactSuccess = document.getElementById('contactSuccess')
|
||||
const wooCommerceConfig = window.test1WooCommerce || null
|
||||
const leadFormConfig = window.test1LeadForm || null
|
||||
const cartPageUrl = (wooCommerceConfig && wooCommerceConfig.cartUrl) ? wooCommerceConfig.cartUrl : '/cart/'
|
||||
const checkoutPageUrl = (wooCommerceConfig && wooCommerceConfig.checkoutUrl) ? wooCommerceConfig.checkoutUrl : '/checkout/'
|
||||
const cartPanel = cartDrawer?.querySelector('.cart-panel')
|
||||
@@ -147,6 +146,8 @@ const mobileToggle = document.getElementById('mobileToggle')
|
||||
formElement.addEventListener('submit', async event => {
|
||||
event.preventDefault()
|
||||
|
||||
const leadFormConfig = window.test1LeadForm || null
|
||||
|
||||
if (!leadFormConfig?.ajaxUrl || !leadFormConfig?.action || !leadFormConfig?.nonce) {
|
||||
window.alert('Форма временно недоступна. Обновите страницу и попробуйте снова.')
|
||||
return
|
||||
|
||||
@@ -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