Jamil-Abdullayev b8246597d4 Initial commit: orgsteklo WordPress theme
Custom WooCommerce theme for orgsteklo.ru including:
- Product catalog with category/subcategory hierarchy
- Custom checkout with delivery calculation
- Price calculator
- Admin settings panel
- Search functionality
- User account pages
2026-03-05 00:48:06 +04:00

232 lines
13 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--
Template Name: Шаблон О компании
-->
<?php get_header(); ?>
<main>
<nav class="breadcumbs container">
<ul>
<li><a href="/">Главная</a></li>
<li><p class="breadcumbs-separator">/</p></li>
<li><p><?php echo the_title(); ?></p></li>
</ul>
</nav>
<?php
$aboutus_title = get_field('aboutus_title');
$aboutus_subtitle = get_field('aboutus_subtitle');
$aboutus_description = get_field('aboutus_description');
$aboutus_button = get_field('aboutus_button');
$aboutus_link = get_field('aboutus_link');
$aboutus_img = get_field('aboutus_img');
if($aboutus_title) {
?>
<section class="aboutus">
<div class="aboutus-container container">
<?php
if($aboutus_title) {
echo '<h1>' . $aboutus_title . '</h1>';
}
?>
<div class="aboutus-main">
<div class="aboutus-col">
<?php
if($aboutus_subtitle) {
echo '<h3>' . $aboutus_subtitle . '</h3>';
}
if($aboutus_description) {
echo '<p>' . $aboutus_description . '</p>';
}
if($aboutus_link) {
echo '<a href="' . $aboutus_link . '" class="aboutus-link" target="_blank"><p>' . $aboutus_button . '</p><svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.8242 4.44727L15.3767 8.99977L10.8242 13.5523" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="M2.625 9H15.2475" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/></svg></a>';
}
?>
</div>
<?php
if($aboutus_img) {
echo '<img src="' . esc_url($aboutus_img['url']) . '" alt="' . esc_attr($aboutus_img['alt']) . '">';
}
?>
</div>
</div>
</section>
<?php
}
?>
<?php get_template_part( 'blocks/block', 'why' ); ?>
<?php
$partners_title = get_field('partners_title');
$partners_repeats = get_field('partners_repeat');
if($partners_repeats) {
?>
<section class="partners">
<div class="partners-container">
<?php
if($partners_title) {
echo '<h2 class="container">' . $partners_title . '</h2>';
}
if($partners_repeats) {
echo '<div class="partners-slider"><div class="partners-swiper swiper"><div class="swiper-wrapper">';
foreach ($partners_repeats as $partners_repeat) {
$partners_repeat_title = $partners_repeat['partners_repeat_title'];
$partners_repeat_link = $partners_repeat['partners_repeat_link'];
$partners_repeat_img = $partners_repeat['partners_repeat_img'];
echo '<div class="swiper-slide">';
echo '<div class="partners-slide">';
if($partners_repeat_title) {
echo '<p class="partners-slide__title">' . $partners_repeat_title . '</p>';
}
if($partners_repeat_link) {
echo '<a href="' . $partners_repeat_link . '" class="partners-slide__img" target="_blank">';
if($partners_repeat_img) {
echo '<img src="' . esc_url($partners_repeat_img['url']) . '" alt="' . esc_attr($partners_repeat_img['alt']) . '">';
}
echo '</a>';
}
echo '</div>';
echo '</div>';
}
echo '</div></div><div class="partners-navigation"><button class="partners-prev"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.0605 13.28L5.71388 8.9333C5.20055 8.41997 5.20055 7.57997 5.71388 7.06664L10.0605 2.71997" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/></svg></button><button class="partners-next"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.93945 13.28L10.2861 8.9333C10.7995 8.41997 10.7995 7.57997 10.2861 7.06664L5.93945 2.71997" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/></svg></button></div></div>';
}
?>
</div>
</section>
<?php
}
?>
<?php
$history_title = get_field('history_title');
$history_repeats = get_field('history_repeat');
if($history_repeats) {
?>
<section class="history">
<div class="history-container container">
<?php
if($history_title) {
echo '<h2>' . $history_title . '</h2>';
}
if($history_repeats) {
echo '<div class="history-slider"><div class="history-swiper swiper"><div class="swiper-wrapper">';
foreach ($history_repeats as $history_repeat) {
$history_repeat_img = $history_repeat['history_repeat_img'];
$history_repeat_title = $history_repeat['history_repeat_title'];
$history_repeat_subtitle = $history_repeat['history_repeat_subtitle'];
$history_repeat_description = $history_repeat['history_repeat_description'];
echo '<div class="swiper-slide">';
echo '<div class="history-slide">';
if($history_repeat_img) {
echo '<img src="' . esc_url($history_repeat_img['url']) . '" alt="' . esc_attr($history_repeat_img['alt']) . '">';
}
echo '<div class="history-slide__col">';
if($history_repeat_title) {
echo '<h2>' . $history_repeat_title . '</h2>';
}
if($history_repeat_subtitle) {
echo '<h4>' . $history_repeat_subtitle . '</h4>';
}
if($history_repeat_description) {
echo '<p>' . $history_repeat_description . '</p>';
}
echo '</div>';
echo '</div>';
echo '</div>';
}
echo '</div></div><div class="history-navigation"><button class="history-prev"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.0605 13.28L5.71388 8.9333C5.20055 8.41997 5.20055 7.57997 5.71388 7.06664L10.0605 2.71997" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/></svg></button><button class="history-next"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.93945 13.28L10.2861 8.9333C10.7995 8.41997 10.7995 7.57997 10.2861 7.06664L5.93945 2.71997" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/></svg></button></div></div>';
}
?>
</div>
</section>
<?php
}
?>
<?php
$projects_title = get_field('projects_title');
$projects_repeats = get_field('projects_repeat');
if($projects_repeats) {
?>
<section class="projects">
<div class="projects-container container">
<?php
if($projects_title) {
echo '<h2>' . $projects_title . '</h2>';
}
if ($projects_repeats) {
$total_projects = count($projects_repeats);
echo '<div class="projects-main"><div class="projects-grid">';
$index = 0;
foreach ($projects_repeats as $projects_repeat) {
$projects_repeat_img = $projects_repeat['projects_repeat_img'];
$projects_repeat_tags = $projects_repeat['projects_repeat_tag'];
$projects_repeat_title = $projects_repeat['projects_repeat_title'];
$projects_repeat_description = $projects_repeat['projects_repeat_description'];
$extra_class = ($index >= 6) ? ' hidden' : '';
echo '<div class="projects-item' . $extra_class . '">';
if ($projects_repeat_img) {
echo '<img src="' . esc_url($projects_repeat_img['url']) . '" alt="' . esc_attr($projects_repeat_img['alt']) . '">';
}
echo '<div class="projects-item__main">';
if ($projects_repeat_tags) {
echo '<div class="projects-item__row">';
foreach ($projects_repeat_tags as $projects_repeat_tag) {
$projects_repeat_tag_p = $projects_repeat_tag['projects_repeat_tag_p'];
echo '<p>' . $projects_repeat_tag_p . '</p>';
}
echo '</div>';
}
if ($projects_repeat_title) {
echo '<h4>' . $projects_repeat_title . '</h4>';
}
if ($projects_repeat_description) {
echo '<p>' . $projects_repeat_description . '</p>';
}
echo '</div>';
echo '</div>';
$index++;
}
echo '</div>';
if ($total_projects >= 6) {
echo '<button class="projects-more projects-more_page"><p>Загрузить еще</p><svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_3011_12506)"><path d="M8.00079 1.83333C8.88512 1.83624 9.76011 2.01449 10.5751 2.35779C11.3901 2.70109 12.1289 3.20261 12.7488 3.83333H10.6675C10.4906 3.83333 10.3211 3.90357 10.196 4.0286C10.071 4.15362 10.0008 4.32319 10.0008 4.5C10.0008 4.67681 10.071 4.84638 10.196 4.97141C10.3211 5.09643 10.4906 5.16667 10.6675 5.16667H13.4295C13.7577 5.16649 14.0725 5.036 14.3047 4.80387C14.5368 4.57174 14.6673 4.25695 14.6675 3.92867V1.16667C14.6675 0.989857 14.5972 0.820287 14.4722 0.695263C14.3472 0.570239 14.1776 0.500001 14.0008 0.500001V0.500001C13.824 0.500001 13.6544 0.570239 13.5294 0.695263C13.4044 0.820287 13.3341 0.989857 13.3341 1.16667V2.552C12.2322 1.55964 10.8758 0.893607 9.41685 0.6285C7.95786 0.363393 6.45387 0.509676 5.07331 1.05097C3.69275 1.59226 2.49013 2.50718 1.60013 3.69328C0.710124 4.87939 0.167881 6.28983 0.0341194 7.76667C0.0255083 7.85951 0.0363299 7.95312 0.0658947 8.04155C0.0954594 8.12997 0.143119 8.21127 0.205837 8.28026C0.268555 8.34925 0.344956 8.40442 0.430171 8.44225C0.515387 8.48008 0.60755 8.49975 0.700786 8.5V8.5C0.863845 8.50208 1.02181 8.44323 1.14376 8.33497C1.26571 8.2267 1.34286 8.07682 1.36012 7.91467C1.50853 6.25517 2.2721 4.71114 3.50084 3.58589C4.72958 2.46065 6.33466 1.83553 8.00079 1.83333Z" fill="white"/><path d="M15.3013 8.50018C15.1383 8.4981 14.9803 8.55695 14.8583 8.66521C14.7364 8.77347 14.6592 8.92335 14.642 9.08551C14.5318 10.3543 14.0599 11.5649 13.2824 12.5737C12.5049 13.5824 11.4544 14.3469 10.2554 14.7766C9.05647 15.2062 7.75945 15.2829 6.51822 14.9976C5.27699 14.7123 4.14365 14.0769 3.25265 13.1669H5.33398C5.5108 13.1669 5.68036 13.0966 5.80539 12.9716C5.93041 12.8466 6.00065 12.677 6.00065 12.5002C6.00065 12.3234 5.93041 12.1538 5.80539 12.0288C5.68036 11.9038 5.5108 11.8335 5.33398 11.8335H2.57198C2.40938 11.8334 2.24836 11.8654 2.09812 11.9276C1.94788 11.9898 1.81137 12.0809 1.69639 12.1959C1.58141 12.3109 1.49023 12.4474 1.42804 12.5977C1.36586 12.7479 1.3339 12.9089 1.33398 13.0715V15.8335C1.33398 16.0103 1.40422 16.1799 1.52925 16.3049C1.65427 16.43 1.82384 16.5002 2.00065 16.5002C2.17746 16.5002 2.34703 16.43 2.47206 16.3049C2.59708 16.1799 2.66732 16.0103 2.66732 15.8335V14.4482C3.7692 15.4406 5.12559 16.1066 6.58459 16.3717C8.04358 16.6368 9.54757 16.4905 10.9281 15.9492C12.3087 15.4079 13.5113 14.493 14.4013 13.3069C15.2913 12.1208 15.8336 10.7104 15.9673 9.23351C15.9759 9.14067 15.9651 9.04706 15.9355 8.95863C15.906 8.87021 15.8583 8.78891 15.7956 8.71992C15.7329 8.65093 15.6565 8.59576 15.5713 8.55793C15.4861 8.52009 15.3939 8.50042 15.3007 8.50018H15.3013Z" fill="white"/></g><defs><clipPath id="clip0_3011_12506"><rect width="16" height="16" fill="white" transform="translate(0 0.5)"/></clipPath></defs></svg></button>';
}
echo '</div>';
}
if($projects_repeats) {
echo '<div class="projects-slider"><div class="projects-swiper swiper"><div class="swiper-wrapper">';
foreach ($projects_repeats as $projects_repeat) {
$projects_repeat_img = $projects_repeat['projects_repeat_img'];
$projects_repeat_tags = $projects_repeat['projects_repeat_tag'];
$projects_repeat_title = $projects_repeat['projects_repeat_title'];
$projects_repeat_description = $projects_repeat['projects_repeat_description'];
echo '<div class="swiper-slide">';
echo '<div class="projects-item">';
if($projects_repeat_img) {
echo '<img src="' . esc_url($projects_repeat_img['url']) . '" alt="' . esc_attr($projects_repeat_img['alt']) . '">';
}
echo '<div class="projects-item__main">';
if($projects_repeat_tags) {
echo '<div class="projects-item__row">';
foreach ($projects_repeat_tags as $projects_repeat_tag) {
$projects_repeat_tag_p = $projects_repeat_tag['projects_repeat_tag_p'];
echo '<p>' . $projects_repeat_tag_p . '</p>';
}
echo '</div>';
}
if($projects_repeat_title) {
echo '<h4>' . $projects_repeat_title . '</h4>';
}
if($projects_repeat_description) {
echo '<p>' . $projects_repeat_description . '</p>';
}
echo '</div>';
echo '</div>';
echo '</div>';
}
echo '</div></div><div class="projects-navigation"><button class="projects-prev"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.0605 13.28L5.71388 8.9333C5.20055 8.41997 5.20055 7.57997 5.71388 7.06664L10.0605 2.71997" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/></svg></button><button class="projects-next"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.93945 13.28L10.2861 8.9333C10.7995 8.41997 10.7995 7.57997 10.2861 7.06664L5.93945 2.71997" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/></svg></button></div></div>';
}
?>
</div>
</section>
<?php
}
?>
<?php get_template_part( 'blocks/block', 'info' ); ?>
<?php get_template_part( 'blocks/block', 'consult' ); ?>
</main>
<?php get_footer(); ?>