Files
anpdf/app/views/antext.phtml
Zhuk Viatcheslav a7cc149c4b s
2020-11-20 13:17:21 +03:00

46 lines
1.5 KiB
PHTML

<script>
var newcurr = '<?=$newcurr?>',
baseurl ='<?=$baseurl?>',
nexturl = '<?=$nexturl?>',
newcurr ='<?=$newcurr?>',
prevurl = '<?=$prevurl?>';
</script>
<p id="downloadtitle">
<a href="<?=$full_ver_url?>">режим PDF</a>
<span id="downarrow">/ Режим для чтения</span>
</p>
<?include ('blocks/pgtextnav.phtml')?>
<div id="an_text_block">
<?if (count($content) > 0):?>
<?foreach($content['stuff'] as $news):?>
<h2 class="antitle"><?=$news['title']?></h2>
<!--<p><?=$content['authorname']?></p>, <p><?=$content['authordescript']?></p>-->
<?if ($news['img'] !== ''):?>
<figure class="anphoto">
<?if (in_array($news['img'], ['jpg', 'png', 'gif', 'jpeg', 'JPG'])):?>
<img src="https://imgurl.argumenti.ru/news/news_id/<?=$news['news_id']?>.<?=$news['img']?>" />
<?else:?>
<img src="https://imgurl.argumenti.ru/news/news_id/<?=$news['img']?>" />
<?endif?>
</figure>
<?endif?>
<div class="antext"><?=$news['text']?></div>
<?endforeach?>
<?else:?>
<p>Данная страница недоступна в мобильной версии</p>
<p>Перейдите на <a href="<?=$nexturl?>">следующую страницу</a></p>
<p>Или <a href="<?=$full_ver_url?>">откройте pdf-версию</a></p>
<?endif?>
</div>
<?include ('blocks/pgtextnav.phtml')?>