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
41 lines
2.1 KiB
PHP
41 lines
2.1 KiB
PHP
<?php
|
|
$info_title = get_field('info_title', 'option');
|
|
$info_repeats = get_field('info_repeat', 'option');
|
|
if($info_repeats) {
|
|
?>
|
|
<section class="info">
|
|
<div class="info-container container">
|
|
<?php
|
|
if($info_title) {
|
|
echo '<h2>' . $info_title . '</h2>';
|
|
}
|
|
if($info_title) {
|
|
echo '<div class="info-main">';
|
|
foreach ($info_repeats as $info_repeat) {
|
|
$info_repeat_icon = $info_repeat['info_repeat_icon'];
|
|
$info_repeat_title = $info_repeat['info_repeat_title'];
|
|
$info_repeat_description = $info_repeat['info_repeat_description'];
|
|
$info_repeat_link = $info_repeat['info_repeat_link'];
|
|
echo '<div class="info-item">';
|
|
if($info_repeat_icon) {
|
|
echo '<img src="' . esc_url($info_repeat_icon['url']) . '" alt="' . esc_attr($info_repeat_icon['alt']) . '">';
|
|
}
|
|
if($info_repeat_title) {
|
|
echo '<h3>' . $info_repeat_title . '</h3>';
|
|
}
|
|
if($info_repeat_description) {
|
|
echo '<p>' . $info_repeat_description . '</p>';
|
|
}
|
|
if($info_repeat_link) {
|
|
echo '<a href="' . $info_repeat_link . '" class="link-more">Узнать подробнее<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.9997 10C14.9956 9.56159 14.819 9.14243 14.508 8.83335L10.933 5.25002C10.7769 5.09481 10.5657 5.00769 10.3455 5.00769C10.1254 5.00769 9.91414 5.09481 9.75801 5.25002C9.6799 5.32749 9.61791 5.41965 9.5756 5.5212C9.53329 5.62275 9.51151 5.73167 9.51151 5.84168C9.51151 5.95169 9.53329 6.06061 9.5756 6.16216C9.61791 6.26371 9.6799 6.35588 9.75801 6.43335L12.4997 9.16668H4.16634C3.94533 9.16668 3.73337 9.25448 3.57709 9.41076C3.42081 9.56704 3.33301 9.779 3.33301 10C3.33301 10.221 3.42081 10.433 3.57709 10.5893C3.73337 10.7455 3.94533 10.8333 4.16634 10.8333H12.4997L9.75801 13.575C9.60109 13.7308 9.51249 13.9426 9.51171 14.1637C9.51093 14.3849 9.59803 14.5973 9.75384 14.7542C9.90966 14.9111 10.1214 14.9997 10.3426 15.0005C10.5637 15.0013 10.7761 14.9142 10.933 14.7583L14.508 11.175C14.821 10.8639 14.9978 10.4413 14.9997 10Z" fill="#02ADEF"/></svg></a>';
|
|
}
|
|
echo '</div>';
|
|
}
|
|
echo '</div>';
|
|
}
|
|
?>
|
|
</div>
|
|
</section>
|
|
<?php
|
|
}
|
|
?>
|