<div class="bottom__box">
<div class="bottom__box_info">
<div class="bottom__box_price">
<!-- <span id="cross_p" style="display:none" class="bottom__box_price_cross">--><?php //the_field( 'down_price_top' ); ?><!--</span>-->
<span id="show_p" style="display:none" class="bottom__box_price-down"><?php the_field( 'down_price_bottom' ); ?></span> <!-- style="display:none" -->
<span id="hide_p" class="bottom__box_price-top"><?php the_field( 'down_price_top' ); ?></span>
</div>
<div class="switch-style-icon"><img src="wtf.svg" alt=""></div>
<span class="bottom__box_show_price_text">
<?php
if(pll_current_language() == 'en') { ?>
Add
<?php } else if(pll_current_language() == 'ru') { ?>
Добавить
<?php }
?>
</span>
<!-- <span class="bottom__box_show_price_text">-->
<!-- Добавить </span>-->
<div class="bottom__box_switch">
<label class="el-switch">
<script>
function showPrice() {
var checkBox = document.getElementById("myCheck");
var salePrice = document.getElementById("show_p");
var standartPrice = document.getElementById("hide_p");
var crossPrice = document.getElementById("cross_p");
if (checkBox.checked == true){
salePrice.style.display = "block";
standartPrice.style.display = "none";
crossPrice.style.display = "block";
} else {
standartPrice.style.display = "block";
salePrice.style.display = "none";
crossPrice.style.display = "none";
}
}
</script>
<input type="checkbox" id="myCheck" onclick="showPrice()">
<span class="el-switch-style"></span>
</label>
</div>
</div>
<div class="bottom__box_btn btn-modal"><?php the_field( 'down_btn' ); ?>
<br><br>
<?php the_field( 'in_stock_title' ); ?>
<?php the_field( 'in_stock' ); ?>
</div>
</div>
<?php
if( !is_page( 100 ) ) {
// Выведет на всех страницах, кроме страницы с ID 100
}
?>