[[pdoResources?
&tpl=`wave_tpl`
&limit=`0`
&parents=`[[#[[*id]].parent]]`
&resources=`-[[*id]]`
&depth=`0`
&includeTVs=`date`
&sortby=`{"date":"DESC"}`
&toPlaceholder=`myPlaceholder`
&totalVar=`total`
]]
[[+total:gt=`0`:then=`
<div class="waves_block">
<div class="block_heading"><p>Другие волны проекта «[[#[[*parent]].pagetitle]]»:</p><span></span></div>
<div class="project_waves grid_cols2">
[[+myPlaceholder]]
</div>
</div>
`]]
[[+myPlaceholder:notempty=`<p>[[+myPlaceholder]]</p>`]]
[[+test:notempty=`<div class="test_block">[[+test]]<div>`]]
<a href="projects/wave-9-10-22" class="item">
<p class="name">Волна 9</p>
<p class="date">Октябрь 2022</p>
</a>
<a href="projects/wave-9-11-22" class="item">
<p class="name">Волна 10</p>
<p class="date">Ноябрь 2022</p>
</a>
[[!pdoResources?
&tpl=`wave_tpl`
&limit=`0`
&parents=`[[#[[*id]].parent]]`
&resources=`-[[*id]]`
&depth=`0`
&includeTVs=`date`
&sortby=`{"date":"DESC"}`
&toPlaceholder=`myPlaceholder`
]]
[[!+myPlaceholder:notempty=`
<div class="waves_block">
<div class="block_heading"><p>Другие волны проекта «[[#[[*parent]].pagetitle]]»:</p><span></span></div>
<div class="project_waves grid_cols2">[[!+myPlaceholder]]</div>
</div>`]]
[[+myPlaceholder:notempty=` <div class="some_block"> <p class="block_heading">Какой-то заголовок</p> <div class="block_items">[[+myPlaceholder]]</div> </div> `]]
[[+myPlaceholder:notempty=`
<div class="some_block">
<p class="block_heading">Какой-то заголовок</p>
<div class="block_items"> . . . </div>
</div>`]]
[[+myPlaceholder:notempty=`
<div class="some_block">
<p class="block_heading">Какой-то заголовок</p>
<div class="block_items">`]]
[[+myPlaceholder:notempty=`[[+myPlaceholder]]`]]
[[+myPlaceholder:notempty=`</div></div>`]]
deferred.done(function(text) {
fetch('/orders/'+filename+'.txt').then(response => response.text()).then((data) => {
$('#send_page').one('submit', function() {
$(function(){
$('.menu__btn').on('click',function(){
if(!$('.menu__list').hasClass('menu__list--active')) {$('.menu__list').addClass('.menu__list--active');}
else {$('.menu__list').removeClass('.menu__list--active');}
});
});