diff --git a/wp-config.php b/wp-config.php index df844e0..ab6aec5 100644 --- a/wp-config.php +++ b/wp-config.php @@ -92,7 +92,6 @@ define( 'WP_DEBUG', false ); define( 'SEV_TORT_TELEGRAM_BOT_TOKEN', '8607238298:AAH_dZ-EgzFOpT0LtmYuiy4ifcsvLZxXwPk' ); define( 'SEV_TORT_TELEGRAM_CHAT_ID', '-1003995055932' ); - /* That's all, stop editing! Happy publishing. */ /** Absolute path to the WordPress directory. */ diff --git a/wp-content/themes/sevastopol-tort-child/front-page.php b/wp-content/themes/sevastopol-tort-child/front-page.php index cd0df65..9d16e79 100644 --- a/wp-content/themes/sevastopol-tort-child/front-page.php +++ b/wp-content/themes/sevastopol-tort-child/front-page.php @@ -83,7 +83,7 @@ get_header();
  • Передаем торт курьером или на самовывоз.
  • - 'Обсудить торт', 'page' => 'Главная' ) ); ?> + 'Обсудить торт', '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 41529f2..4011079 100644 --- a/wp-content/themes/sevastopol-tort-child/inc/theme-data.php +++ b/wp-content/themes/sevastopol-tort-child/inc/theme-data.php @@ -5,11 +5,11 @@ if ( ! defined( 'ABSPATH' ) ) { } function sev_tort_site_phone() { - return '+7 (978) 000-00-00'; + return '+7 (911) 774-89-23'; } function sev_tort_site_phone_href() { - return 'tel:+79780000000'; + return 'tel:+7 (911) 774-8923'; } function sev_tort_whatsapp_url() { diff --git a/wp-content/themes/sevastopol-tort-child/page-templates/page-portfolio.php b/wp-content/themes/sevastopol-tort-child/page-templates/page-portfolio.php index 903b100..c9e9ef7 100644 --- a/wp-content/themes/sevastopol-tort-child/page-templates/page-portfolio.php +++ b/wp-content/themes/sevastopol-tort-child/page-templates/page-portfolio.php @@ -117,7 +117,7 @@ get_header();

    Понравился стиль из портфолио?

    Отправьте пример, дату и пожелания по весу. Подскажем начинку, стоимость и ближайший свободный срок.

    - 'portfolio' ) ); ?> + 'Оставить заявку', 'page' => 'Портфолио', 'source' => 'Встроенная форма: портфолио' ) ); ?>
    diff --git a/wp-content/themes/sevastopol-tort-child/page-templates/page-service.php b/wp-content/themes/sevastopol-tort-child/page-templates/page-service.php index 46556e6..303591b 100644 --- a/wp-content/themes/sevastopol-tort-child/page-templates/page-service.php +++ b/wp-content/themes/sevastopol-tort-child/page-templates/page-service.php @@ -115,7 +115,7 @@ get_header();

    Расскажите, какой торт нужен

    Укажите дату, повод, примерный вес и пожелания по декору. Если пока нет точной идеи, поможем подобрать варианты.

    - 'Получить расчет', 'page' => $page['title'] ) ); ?> + 'Получить расчет', 'page' => $page['title'], 'source' => 'Встроенная форма: страница ' . $page['label'] ) ); ?> 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 a75ddd0..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,12 +3,16 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } -$form_title = isset( $args['title'] ) ? $args['title'] : 'Оставить заявку'; -$form_page = isset( $args['page'] ) ? $args['page'] : ''; +$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'] : 'Встроенная форма'; ?>
    + +
    @@ -20,7 +24,11 @@ $form_page = isset( $args['page'] ) ? $args['page'] : ''; +