new archive

This commit is contained in:
arlemp@selectel.ru
2021-11-21 22:00:02 +03:00
parent 65816f81e7
commit 0d9ff217ad
5 changed files with 82 additions and 17 deletions

View File

@@ -24,7 +24,7 @@ get_header();?>
<li><?=mb_substr(get_the_title(), 0, 50);?>...</li>
</ul>
<?$current_pdf = number_pdf(get_the_title())?>
<?$curr_number = number_info(get_the_title())?>
<h1 class="post-h1">Федеральное отраслевое издание «Ветеринария и жизнь»</h1>
@@ -36,11 +36,10 @@ get_header();?>
</div>
<div class="number_title">
<div class="number_number"><?the_title()?></div>
<?if ($current_pdf !== ''):?>
<?if (isset($curr_number['guid'])):?>
<div>
<a href="<?=$current_pdf?>" class="orange_button" target="_blank">Читать PDF версию</a>
<a href="<?=$curr_number['guid']?>" class="orange_button" target="_blank">Читать PDF версию</a>
</div>
<!-- <button class="sub_button" onclick="location.href='<?=$current_pdf?>'" type="button">Читать PDF версию</button> -->
<?endif?>
</div>
<?endif?>