52 lines
1.9 KiB
PHP
52 lines
1.9 KiB
PHP
<div id="pageSmoothBackground" style="background-image: url(<?= current($points)->getImg('middle') ?>);"></div>
|
||
<div class="container" style="background-color: rgba(255,255,255, 0.8);margin-top: -10px;padding-bottom: 30px;">
|
||
<div class="row">
|
||
<div class="" style="text-align: center; padding-top: 10px;">
|
||
<a href="/"><img src="/img/logo.png" title="Карта wikipoints" style="height: 100px;" /></a>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-2">
|
||
<?php foreach ($news as $item) : ?>
|
||
<div style="margin: 3px; padding: 3px">
|
||
<h4><?= $item->title ?></h4>
|
||
<?= $item->text ?>
|
||
</div>
|
||
<?php endforeach;?>
|
||
</div>
|
||
<div class="col-md-5">
|
||
<?php foreach ($points as $item) : ?>
|
||
<div style="margin: 3px; padding: 3px">
|
||
<a href="/point/<?= $item->id ?>">
|
||
<h4><?= $item->name ?></h4>
|
||
</a>
|
||
<img src="<?= $item->getImg() ?>" style="width: 200px; float: left; margin: 0 10px 5px 0;"/>
|
||
<?= mb_substr($item->description, 0, 400, 'UTF-8') ?>…
|
||
<a href="/point/<?= $item->id ?>">>>></a>
|
||
</div>
|
||
<?php endforeach;?>
|
||
<br/>
|
||
<a href="/page/points/"><h4 style="text-align: center;">У нас есть больше новых точек!</h4></a>
|
||
</div>
|
||
<div class="col-md-5">
|
||
<?php foreach ($articles as $item) : ?>
|
||
<div style="margin: 3px; padding: 3px">
|
||
<a href="/article/<?= $item->id ?>">
|
||
<h4><?= $item->title ?></h4>
|
||
</a>
|
||
<?php if($item->hasImg()): ?>
|
||
<img src="<?= $item->getImg() ?>" style="width: 200px; float: left; margin: 0 10px 5px 0;"/>
|
||
<?php endif; ?>
|
||
<?= mb_substr(Markdown::getClear($item->text), 0, 400, 'UTF-8') ?>…
|
||
<a href="/article/<?= $item->id ?>">>>></a>
|
||
<a href="/user/<?= $item->author ?>" style="float: right;"><?= $item->authorUser->nick ?></a>
|
||
<div style="clear: both;"></div>
|
||
</div>
|
||
<?php endforeach;?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<style>
|
||
body div.header {display: none;}
|
||
</style>
|