diff --git a/wp-content/themes/sevastopol-tort-child/footer.php b/wp-content/themes/sevastopol-tort-child/footer.php
index dace043..ddcea08 100644
--- a/wp-content/themes/sevastopol-tort-child/footer.php
+++ b/wp-content/themes/sevastopol-tort-child/footer.php
@@ -52,7 +52,38 @@ if ( ! defined( 'ABSPATH' ) ) {
- 'Оставить контакты', 'page' => 'Попап заявки', 'source' => 'Попап заявки' ) ); ?>
+
diff --git a/wp-content/themes/sevastopol-tort-child/inc/theme-data.php b/wp-content/themes/sevastopol-tort-child/inc/theme-data.php
index 0f6d48b..4011079 100644
--- a/wp-content/themes/sevastopol-tort-child/inc/theme-data.php
+++ b/wp-content/themes/sevastopol-tort-child/inc/theme-data.php
@@ -12,13 +12,13 @@ function sev_tort_site_phone_href() {
return 'tel:+7 (911) 774-8923';
}
-// function sev_tort_whatsapp_url() {
-// return 'https://wa.me/79780000000';
-// }
+function sev_tort_whatsapp_url() {
+ return 'https://wa.me/79780000000';
+}
-// function sev_tort_telegram_url() {
-// return 'https://t.me/sevastopol_tort';
-// }
+function sev_tort_telegram_url() {
+ return 'https://t.me/sevastopol_tort';
+}
function sev_tort_pages() {
return array(
diff --git a/wp-content/themes/sevastopol-tort-child/template-parts/lead-form.php b/wp-content/themes/sevastopol-tort-child/template-parts/lead-form.php
index 85f770b..969c3d0 100644
--- a/wp-content/themes/sevastopol-tort-child/template-parts/lead-form.php
+++ b/wp-content/themes/sevastopol-tort-child/template-parts/lead-form.php
@@ -3,9 +3,10 @@ if ( ! defined( 'ABSPATH' ) ) {
exit;
}
-$form_title = isset( $args['title'] ) ? $args['title'] : 'Оставить заявку';
-$form_page = isset( $args['page'] ) ? $args['page'] : '';
-$form_source = isset( $args['source'] ) ? $args['source'] : 'Встроенная форма';
+$form_args = isset( $args ) && is_array( $args ) ? $args : array();
+$form_title = isset( $form_args['title'] ) ? $form_args['title'] : 'Оставить заявку';
+$form_page = isset( $form_args['page'] ) ? $form_args['page'] : '';
+$form_source = isset( $form_args['source'] ) ? $form_args['source'] : 'Встроенная форма';
?>