Compare commits

..
Author SHA1 Message Date
web_103.2 2cddd87893 Kirill | переделал шаблон, только на страницы + добавил выбор калькулятора 2026-10-28 12:37:57 +03:00
web_103.2 709a6e5ecb Kirill | вернул старые шаблоны страниц 2026-10-28 12:15:28 +03:00
web_55 39e8d5a8e1 task-17075__opdate-blog (#1)
Сделал
1. Сделать пункты в "ТЗ Статья"
2. Сделать пункты в "ТЗ Хабовая страница"
3. Добавить микроразметку для статьи и блога

https://docs.google.com/document/d/1ouFTKIXGk44hKONDDNWFGXBVqG06LWb7Jt28yFxklME/edit?tab=t.f4g9ytbmj2o8#heading=h.91km96rm8vln

Reviewed-on: #1
Co-authored-by: WEB № 55 - Кирилл | Верстка <web_55@good-production.xyz>
2026-10-26 13:36:52 +03:00
web_55 32834090a1 Task-17291 | hotfix: Обновление кода Я.Метрики (#3)
Заменил метрику

---------

Reviewed-on: #3
Co-authored-by: WEB № 55 - Кирилл | Верстка <web_55@good-production.xyz>
2026-10-23 10:51:40 +03:00
web_55 bea6a20a24 Task 17291 seo (#2)
1) регистрация яндекс + google
2) метрика яндекс
3) изменил счётчик яндекса (100213356) и (113689913)

---------

Reviewed-on: #2
Co-authored-by: WEB № 55 - Кирилл | Верстка <web_55@good-production.xyz>
2026-10-21 16:07:00 +03:00
8 changed files with 43 additions and 36 deletions

No files matched your search

+8 -10
View File
@@ -339,18 +339,16 @@ function theme_yandex_metrika() {
?> ?>
<!-- Yandex.Metrika counter --> <!-- Yandex.Metrika counter -->
<script type="text/javascript"> <script type="text/javascript">
(function (m, e, t, r, i, k, a) { (function(m,e,t,r,i,k,a){
m = mfunction(){ (m.a = m.a[]).push(arguments) }; m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m.l = 1 * new Date(); m[i].l=1*new Date();
for (var j = 0; j < document.scripts.length; j++) { if (document.scripts[j].src === r) { return; } } for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
k = e.createElement(t), a = e.getElementsByTagName(t)[0], k.async = 1, k.src = r, a.parentNode.insertBefore(k, a) k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)
})(window, document, 'script', 'https://mc.yandex.ru/metrika/tag.js?id=113689913', 'ym'); })(window, document,'script','https://mc.yandex.ru/metrika/tag.js?id=113689913', 'ym');
ym(113689913, 'init', { ssr: true, webvisor: true, clickmap: true, ecommerce: "dataLayer", referrer: document.referrer, url: location.href, accurateTrackBounce: true, trackLinks: true }); ym(113689913, 'init', {ssr:true, webvisor:true, clickmap:true, ecommerce:"dataLayer", referrer: document.referrer, url: location.href, accurateTrackBounce:true, trackLinks:true});
</script> </script>
<noscript> <noscript><div><img src="https://mc.yandex.ru/watch/113689913" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<div><img src="https://mc.yandex.ru/watch/113689913" style="position:absolute; left:-9999px;" alt="" /></div>
</noscript>
<!-- /Yandex.Metrika counter --> <!-- /Yandex.Metrika counter -->
<?php } <?php }
add_action('wp_head', 'theme_yandex_metrika', 1); add_action('wp_head', 'theme_yandex_metrika', 1);
+1 -1
View File
@@ -1 +1 @@
<?php get_template_part('templates/template-audience'); ?> <?php get_template_part('templates/template-courier'); ?>
+1 -1
View File
@@ -1 +1 @@
<?php get_template_part('templates/template-audience'); ?> <?php get_template_part('templates/template-driver'); ?>
@@ -1,16 +1,11 @@
<?php <?php
if (is_singular('driver')) { $page_id = get_queried_object_id();
$page_id = 76;
} elseif (is_singular('courier')) {
$page_id = 78;
} else {
$page_id = get_the_ID();
}
$audience = get_field('hero_audience'); $audience = get_field('hero_audience', $page_id);
$order_type = get_field('hero_type'); $order_type = get_field('hero_type', $page_id);
$hero_title = get_field('hero_title', $page_id);
$hero_descr = get_field('hero_descr', $page_id);
$hero_img = get_field('hero_img', $page_id);
$hero_features = get_field('hero_features', 'option'); $hero_features = get_field('hero_features', 'option');
$hero_scroller = get_field('hero_scroller', 'option'); $hero_scroller = get_field('hero_scroller', 'option');
$hero_stores = get_field('download', 'option'); $hero_stores = get_field('download', 'option');
@@ -21,8 +16,16 @@
<div class="container"> <div class="container">
<div class="hero-main__body"> <div class="hero-main__body">
<div class="hero-main__left"> <div class="hero-main__left">
<h1 class="hero-title">Приложение для <?php echo esc_html($audience); ?></h1> <h1 class="hero-title"><?php
<div class="hero-descr">Скачай Hantico и начни получать заказы <?php echo esc_html($order_type); ?> уже завтра!</div> echo $audience
? 'Приложение для ' . esc_html($audience)
: wp_kses_post($hero_title);
?></h1>
<div class="hero-descr"><?php
echo $order_type
? 'Скачай Hantico и начни получать заказы ' . esc_html($order_type) . ' уже завтра!'
: wp_kses_post($hero_descr);
?></div>
<div class="hero-buttons"> <div class="hero-buttons">
<a href="<?php echo get_permalink(87); ?>" class="hero-buttons__download-btn btn btn--lg btn--red">Скачать приложение</a> <a href="<?php echo get_permalink(87); ?>" class="hero-buttons__download-btn btn btn--lg btn--red">Скачать приложение</a>
<a href="#specs" class="hero-buttons__info-btn btn btn--lg btn--transp-red">Как это работает</a> <a href="#specs" class="hero-buttons__info-btn btn btn--lg btn--transp-red">Как это работает</a>
@@ -14,6 +14,14 @@
$this_page_id = get_the_ID(); $this_page_id = get_the_ID();
$calculator_type = get_field('calculator_type', $this_page_id);
if (is_array($calculator_type)) {
$calculator_type = $calculator_type['value'] ?? '';
}
if (!in_array($calculator_type, array('taxi', 'courier', 'cargo'), true)) {
$calculator_type = '';
}
$selected_type = $calculator_type ?: ($is_courier ? 'courier' : ($is_cargo ? 'cargo' : 'taxi'));
$calculator_title = get_field('calculator_title', $this_page_id); $calculator_title = get_field('calculator_title', $this_page_id);
$income_title = $calculator_title $income_title = $calculator_title
? 'Калькулятор дохода ' . esc_html($calculator_title) ? 'Калькулятор дохода ' . esc_html($calculator_title)
@@ -27,20 +35,20 @@
<?php if (!$calculator_title && $income_descr) : ?> <?php if (!$calculator_title && $income_descr) : ?>
<div class="income-descr section-descr"><?php echo $income_descr; ?></div> <div class="income-descr section-descr"><?php echo $income_descr; ?></div>
<?php endif; ?> <?php endif; ?>
<form class="income-calc<?php if ($is_driver || $is_courier || $is_cargo) echo ' income-calc--single'; ?>"> <form class="income-calc<?php if ($calculator_type || $is_driver || $is_courier || $is_cargo) echo ' income-calc--single'; ?>">
<div class="income-calc__top"> <div class="income-calc__top">
<fieldset class="income-calc__types"> <fieldset class="income-calc__types">
<legend class="visually-hidden">Тип занятости</legend> <legend class="visually-hidden">Тип занятости</legend>
<label class="income-calc__type income-calc__type--taxi"> <label class="income-calc__type income-calc__type--taxi">
<input class="income-calc__type-input js-calc-type" type="radio" name="work_type" value="taxi"<?php if (!$is_courier && !$is_cargo) echo ' checked'; ?>> <input class="income-calc__type-input js-calc-type" type="radio" name="work_type" value="taxi"<?php if ($selected_type === 'taxi') echo ' checked'; ?>>
<span class="income-calc__type-label">Такси</span> <span class="income-calc__type-label">Такси</span>
</label> </label>
<label class="income-calc__type income-calc__type--courier"> <label class="income-calc__type income-calc__type--courier">
<input class="income-calc__type-input js-calc-type" type="radio" name="work_type" value="courier"<?php if ($is_courier) echo ' checked'; ?>> <input class="income-calc__type-input js-calc-type" type="radio" name="work_type" value="courier"<?php if ($selected_type === 'courier') echo ' checked'; ?>>
<span class="income-calc__type-label">Курьер</span> <span class="income-calc__type-label">Курьер</span>
</label> </label>
<label class="income-calc__type income-calc__type--cargo"> <label class="income-calc__type income-calc__type--cargo">
<input class="income-calc__type-input js-calc-type" type="radio" name="work_type" value="cargo"<?php if ($is_cargo) echo ' checked'; ?>> <input class="income-calc__type-input js-calc-type" type="radio" name="work_type" value="cargo"<?php if ($selected_type === 'cargo') echo ' checked'; ?>>
<span class="income-calc__type-label">Грузоперевозки</span> <span class="income-calc__type-label">Грузоперевозки</span>
</label> </label>
</fieldset> </fieldset>
@@ -1,6 +1,6 @@
<?php <?php
/* /*
Template Name: Аудитория Template Name: {Аудитория}
*/ */
?> ?>
@@ -9,19 +9,17 @@ Template Name: Курьерам
<main class="main"> <main class="main">
<?php get_template_part('template-parts/audience/hero'); ?> <?php get_template_part('template-parts/hero'); ?>
<?php get_template_part('template-parts/courier-services'); ?> <?php get_template_part('template-parts/services'); ?>
<?php get_template_part('template-parts/income'); ?> <?php get_template_part('template-parts/income'); ?>
<?php get_template_part('template-parts/advantages'); ?> <?php get_template_part('template-parts/advantages'); ?>
<?php get_template_part('template-parts/delivery-orders'); ?>
<?php get_template_part('template-parts/payments'); ?>
<?php get_template_part('template-parts/scheme'); ?> <?php get_template_part('template-parts/scheme'); ?>
<?php get_template_part('template-parts/requirements'); ?> <?php get_template_part('template-parts/requirements'); ?>
<?php get_template_part('template-parts/formats'); ?> <?php get_template_part('template-parts/cities'); ?>
<?php get_template_part('template-parts/reviews'); ?> <?php get_template_part('template-parts/reviews'); ?>
<?php get_template_part('template-parts/faq'); ?> <?php get_template_part('template-parts/faq'); ?>
<?php get_template_part('template-parts/jobs'); ?>
<?php get_template_part('template-parts/getapp'); ?> <?php get_template_part('template-parts/getapp'); ?>
<?php get_template_part('template-parts/related'); ?>
<?php get_template_part('template-parts/specs'); ?> <?php get_template_part('template-parts/specs'); ?>
</main> </main>
@@ -9,7 +9,7 @@ Template Name: Аудитория
<main class="main"> <main class="main">
<?php get_template_part('template-parts/hero'); ?> <?php get_template_part('template-parts/audience/hero'); ?>
<?php get_template_part('template-parts/work'); ?> <?php get_template_part('template-parts/work'); ?>
<?php get_template_part('template-parts/advantages'); ?> <?php get_template_part('template-parts/advantages'); ?>
<?php get_template_part('template-parts/scheme'); ?> <?php get_template_part('template-parts/scheme'); ?>