Maks | неизвестные изменения
This commit is contained in:
@@ -50,7 +50,7 @@ if ($trainers) {
|
|||||||
<section class="max-[768px]:py-[40px] max-[768px]:pb-[20px] py-[90px] pb-[45px]">
|
<section class="max-[768px]:py-[40px] max-[768px]:pb-[20px] py-[90px] pb-[45px]">
|
||||||
<div class="container mx-auto">
|
<div class="container mx-auto">
|
||||||
<?php if ($trainers_data): ?>
|
<?php if ($trainers_data): ?>
|
||||||
<div class="max-[768px]:items-center max-[768px]:justify-center flex flex-wrap gap-[24px]">
|
<div class="place-content-center max-[768px]:justify-center grid gap-[24px] grid-cols-[repeat(auto-fit,minmax(312px,312px))]">
|
||||||
<?php foreach ($trainers_data as $trainer_data):
|
<?php foreach ($trainers_data as $trainer_data):
|
||||||
if ($trainer_data['name']) {
|
if ($trainer_data['name']) {
|
||||||
$trainer = $trainer_data['post']; ?>
|
$trainer = $trainer_data['post']; ?>
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ if ($trainings) {
|
|||||||
$training_info['name'] = get_sub_field('name');
|
$training_info['name'] = get_sub_field('name');
|
||||||
$training_info['exp'] = get_sub_field('exp');
|
$training_info['exp'] = get_sub_field('exp');
|
||||||
$training_info['short_desc'] = get_sub_field('short_desc');
|
$training_info['short_desc'] = get_sub_field('short_desc');
|
||||||
|
$training_info['difficulty'] = get_sub_field('dificulty');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -181,8 +182,9 @@ if (have_rows('short_info')) {
|
|||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ($training_difficulty):
|
<?php $difficulty = $training_data['difficulty']; ?>
|
||||||
$difficulty_value = (int)$training_difficulty;
|
<?php if ($difficulty):
|
||||||
|
$difficulty_value = (int)$difficulty;
|
||||||
|
|
||||||
$difficulty_texts = [
|
$difficulty_texts = [
|
||||||
1 => 'лёгкая', 2 => 'лёгкая',
|
1 => 'лёгкая', 2 => 'лёгкая',
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"/js/app.js": "/js/app.js?id=e407125adcc6aae967c27b40d45106cf",
|
"/js/app.js": "/js/app.js?id=e407125adcc6aae967c27b40d45106cf",
|
||||||
"/css/editor-style.css": "/css/editor-style.css?id=969582528231d1131f1471fd134dc7c0",
|
"/css/editor-style.css": "/css/editor-style.css?id=aa5ef96e7b2eee541460f91e89a670b0",
|
||||||
"/css/app.css": "/css/app.css?id=276085105aadfad8906d02e869e0f185"
|
"/css/app.css": "/css/app.css?id=0b4a405e67e75ba2c1fb5191ab4b5d35"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ $gallery_id = 'training-gallery-' . get_the_ID();
|
|||||||
|
|
||||||
<div class="mt-[24px]">
|
<div class="mt-[24px]">
|
||||||
<button data-modal="test-training" class="max-[768px]:text-[16px] max-[768px]:max-w-full max-[768px]:h-[59px] cursor-pointer max-w-[410px] !no-underline transition red-gradient-hover gap-[12px] w-full rounded-[90px] flex items-center justify-center h-[75px]">
|
<button data-modal="test-training" class="max-[768px]:text-[16px] max-[768px]:max-w-full max-[768px]:h-[59px] cursor-pointer max-w-[410px] !no-underline transition red-gradient-hover gap-[12px] w-full rounded-[90px] flex items-center justify-center h-[75px]">
|
||||||
<span class="max-[768px]:text-[16px] font-[600] text-[18px] leading-[195%] text-[#f8f8f8]">Записаться на пробную тренировку</span>
|
<span class="max-[768px]:text-[16px] font-[600] text-[18px] leading-[195%] text-[#f8f8f8]">Записаться на тренировку</span>
|
||||||
<svg class="max-[768px]:hidden" width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg class="max-[768px]:hidden" width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M0 17.5C0 7.83502 7.83502 0 17.5 0C27.165 0 35 7.83502 35 17.5C35 27.165 27.165 35 17.5 35C7.83502 35 0 27.165 0 17.5Z"
|
<path d="M0 17.5C0 7.83502 7.83502 0 17.5 0C27.165 0 35 7.83502 35 17.5C35 27.165 27.165 35 17.5 35C7.83502 35 0 27.165 0 17.5Z"
|
||||||
fill="url(#paint0_linear_4064_4274)"></path>
|
fill="url(#paint0_linear_4064_4274)"></path>
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ if ($room === 'fitness') {
|
|||||||
<?php foreach ($slides as $index => $slide): ?>
|
<?php foreach ($slides as $index => $slide): ?>
|
||||||
<div class="swiper-slide [&>_img]:max-w-none">
|
<div class="swiper-slide [&>_img]:max-w-none">
|
||||||
<?php if (!empty($slide['img'])): ?>
|
<?php if (!empty($slide['img'])): ?>
|
||||||
<img class="max-[768px]:w-full max-[768px]:h-full" loading="lazy"
|
<img class="max-[768px]:w-full max-[768px]:h-full object-cover" loading="lazy"
|
||||||
src="<?php echo esc_url($slide['img']); ?>"
|
src="<?php echo esc_url($slide['img']); ?>"
|
||||||
alt="<?php echo esc_attr($slide['title']); ?>">
|
alt="<?php echo esc_attr($slide['title']); ?>">
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user