FIX
This commit is contained in:
parent
356a458bd1
commit
dc7a77f039
|
|
@ -17,12 +17,12 @@
|
|||
<div class="col-md-5">
|
||||
<?php foreach ($points as $item) : ?>
|
||||
<div class="element points">
|
||||
<a href="/point/<?= $item->id ?>">
|
||||
<h4><?= $item->name ?></h4>
|
||||
</a>
|
||||
<a href="/point/<?= $item->id ?>">
|
||||
<img src="<?= $item->getImg() ?>"/>
|
||||
</a>
|
||||
<?= mb_substr($item->description, 0, 400, 'UTF-8') ?>…
|
||||
<a href="/point/<?= $item->id ?>">>>></a>
|
||||
<a href="/point/<?= $item->id ?>">читать далее »</a>
|
||||
</div>
|
||||
<?php endforeach;?>
|
||||
<br/>
|
||||
|
|
@ -31,14 +31,14 @@
|
|||
<div class="col-md-5">
|
||||
<?php foreach ($articles as $item) : ?>
|
||||
<div class="element articles">
|
||||
<a href="/article/<?= $item->id ?>">
|
||||
<h4><?= $item->title ?></h4>
|
||||
</a>
|
||||
<?php if($item->hasImg()): ?>
|
||||
<a href="/article/<?= $item->id ?>">
|
||||
<img src="<?= $item->getImg() ?>"/>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?= mb_substr(Markdown::getClear($item->text), 0, 400, 'UTF-8') ?>…
|
||||
<a href="/article/<?= $item->id ?>">>>></a>
|
||||
<a href="/article/<?= $item->id ?>">читать далее »</a>
|
||||
<a href="/user/<?= $item->author ?>" style="float: right;"><?= $item->authorUser->nick ?></a>
|
||||
</div>
|
||||
<?php endforeach;?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue