add popander

This commit is contained in:
2022-12-29 07:23:18 +03:00
parent c022dc341d
commit f44ba2d6c7
6 changed files with 177 additions and 17 deletions

12
blocks/top.php Normal file
View File

@@ -0,0 +1,12 @@
<?if(isset($items)):?>
<div class="mosts<?if ($subclass !== '') echo ' '.$subclass;?>">
<h3 class="most_title">Самое читаемое</h3>
<?php foreach($items as $item):?>
<div class="most"><a href="<?=$item['link']; ?>"><?=$item['title']?></a></div>
<?php endforeach;?>
</div>
<?endif?>