wikipoints/ground/views/user/index.php

73 lines
2.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div id="pageSmoothBackground" style="background-image: url(<?= $randomPoint->getImg('middle') ?>);"></div>
<div class="container darkHeader">
<div class="topDiv">
Персональный блог пользователя
</div>
<div class="userPic">
<img src="/img/avatars/<?= $user->id ?>.jpg"> <?= $user->nick ?>
</div>
<div class="socialNetworks">
В социальных сетях: <a href="<?= $user->profile ?>" target="_blank"><img src="/img/social/<?= $user->network ?>.png" /></a>
<br/><br/>
Создано точек: <b><a href="/page/points/user/<?= $user->id ?>" class="toPoints"><?= $user->getPointsCount() ?></a></b>
</div>
</div>
<div class="container lightBody">
<div class="row">
<div class="col-md-12 articlesList">
<h2>Записи: </h2>
<?php if ($articles): foreach ($articles as $article): ?>
<div class="article">
<a href="/article/<?= $article->id ?>" target="_blank" class="h">
<?php if ($article->photoId): ?>
<img src="<?= $article->getImg() ?>" />
<?php else: ?>
<img src="/img/noPhoto200150.png" />
<?php endif; ?>
</a>
<a href="/article/<?= $article->id ?>" target="_blank" class="h"><?= $article->title ?></a>
<?= mb_substr(Markdown::getClear(str_replace('"', 'ʺ', $article->text)), 0, 250, 'UTF-8') ?>…
<div class="clear"></div>
</div>
<?php endforeach; ?>
<?php else: ?>
В блоге пока пусто.
<?php endif; ?>
</div>
</div>
<?php if ($photos): ?>
<div class="row">
<div class="col-md-12 photoList">
<h2>Фотолента:</h2>
<div style="text-align: center;">
<?php foreach ($photos as $photo): ?>
<div class="photo">
<img src="/photos/articles/small/<?= $photo->name ?>" />
</div>
<?php endforeach; ?>
</div>
</div>
</div>
<?php endif; ?>
<hr style="margin-bottom: 50px;"/>
<!--googleoff: all-->
<!--noindex-->
<div class="row">
<div class="col-md-12">
<a href="/point/<?= $randomPoint->id ?>" style="float: left; margin: 0 20px 0 0;"><img src="<?= $randomPoint->getImg() ?>" style="width: 200px;"/></a>
<h3 style="margin-top: 0;">Это интересно: <?= $randomPoint->name ?></h3>
<p>
<?= mb_substr($randomPoint->description, 0, 400, 'UTF-8') ?>…
<a class="" href="/point/<?= $randomPoint->id ?>" role="button"><nobr> читать далее »</nobr></a>
</p>
</div>
</div>
<!--/noindex-->
<!--googleon: all-->
</div>