wikipoints/ground/views/user/index.php

57 lines
2.0 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->nick ?>" target="_blank"><img src="/img/social/<?= $user->network ?>.png" /></a>
<br/><br/>
Создано точек: <b><?= $user->getPointsCount() ?></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;
else: ?>
Пока нет статей.
<?php endif;?>
</div>
</div>
<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>