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
33 lines
792 B
PHP
33 lines
792 B
PHP
<?php
|
|
$why_title = get_field('why_title', 'option');
|
|
$why_repeats = get_field('why_repeat', 'option');
|
|
if($why_repeats) {
|
|
?>
|
|
<section class="why">
|
|
<div class="why-container container">
|
|
<?php
|
|
if($why_title) {
|
|
echo '<h2>' . $why_title . '</h2>';
|
|
}
|
|
if($why_repeats) {
|
|
echo '<div class="why-main">';
|
|
foreach ($why_repeats as $why_repeat) {
|
|
$why_repeat_title = $why_repeat['why_repeat_title'];
|
|
$why_repeat_description = $why_repeat['why_repeat_description'];
|
|
echo '<div class="why-item">';
|
|
if($why_repeat_title) {
|
|
echo '<h3>' . $why_repeat_title . '</h3>';
|
|
}
|
|
if($why_repeat_description) {
|
|
echo '<p>' . $why_repeat_description . '</p>';
|
|
}
|
|
echo '</div>';
|
|
}
|
|
echo '</div>';
|
|
}
|
|
?>
|
|
</div>
|
|
</section>
|
|
<?php
|
|
}
|
|
?>
|