44 lines
1.3 KiB
PHP
44 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* Template Name: Праздник/Holiday
|
|
*/
|
|
?>
|
|
|
|
<?php
|
|
get_header();
|
|
get_template_part('parts/page-header');
|
|
get_template_part('parts/home/entertainment');
|
|
?>
|
|
<div class="full-page__border"></div>
|
|
<?php
|
|
get_template_part('parts/places');
|
|
get_template_part('parts/holiday/adding-service');
|
|
get_template_part('parts/order');
|
|
get_template_part('parts/holiday/photos');
|
|
get_template_part('parts/holiday/packages');
|
|
get_template_part('parts/holiday/var');
|
|
?>
|
|
</div>
|
|
|
|
<div class="" style="background: #f2f2f2">
|
|
<?php get_template_part('parts/compound'); ?>
|
|
</div>
|
|
|
|
<?php
|
|
if(is_page('24')){?>
|
|
<script>
|
|
|
|
document.querySelector('.ent-container h2').textContent = '<?php the_field('step-head-1', 24)?>';
|
|
let descr = document.createElement('p');
|
|
descr.textContent = `<?php the_field('step-descr-1', 24)?>`;
|
|
// document.querySelector('.ent-container h2').insertAdjacentElement('afterend', descr);
|
|
|
|
// document.querySelector('.places h2').textContent = `<?php the_field('step-head-2', 24)?>`;
|
|
// let placesDescr = document.createElement('p');
|
|
// placesDescr.textContent = `<?php the_field('step-descr-2', 24)?>`;
|
|
// document.querySelector('.places h2').insertAdjacentElement('afterend', placesDescr);
|
|
</script>
|
|
<?php
|
|
}
|
|
get_footer();
|
|
?>
|