This commit is contained in:
Krivchikov Dmitry 2015-10-17 23:23:31 +03:00
parent 356a458bd1
commit dc7a77f039
1 changed files with 8 additions and 8 deletions

View File

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