Ссылка на блог автора под статьей
This commit is contained in:
parent
0c96d6da2e
commit
b686b7b4ec
|
|
@ -10,7 +10,9 @@
|
||||||
<div style="text-align: justify;">
|
<div style="text-align: justify;">
|
||||||
<?= $article->html; ?>
|
<?= $article->html; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<p style="margin-top: 25px; text-align: right;">
|
||||||
|
[ <span class="glyphicon glyphicon-user"></span> <a href="/user/<?= $article->author ?>">блог автора <?= $article->authorUser->nick ?></a> - <span class="glyphicon glyphicon-pencil" title="<?= date('d-m-Y H:i', $article->pubDate) ?>"></span> ]
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,11 @@
|
||||||
|
<?php
|
||||||
|
if (App::getParam('user')) {
|
||||||
|
$user = User::model()->getByPK((int) App::getParam('user'));
|
||||||
|
if ($user->id == 0) {
|
||||||
|
App::redirect('/page/points/');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
<div id="pageSmoothBackground" style="background-image: url(<?= $randomPoint->getImg('middle') ?>);"></div>
|
<div id="pageSmoothBackground" style="background-image: url(<?= $randomPoint->getImg('middle') ?>);"></div>
|
||||||
|
|
||||||
<div class="container" style="background-color: rgba(255,255,255, 0.8);margin-top: -10px;padding-bottom: 30px;">
|
<div class="container" style="background-color: rgba(255,255,255, 0.8);margin-top: -10px;padding-bottom: 30px;">
|
||||||
|
|
@ -5,7 +13,7 @@
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<h1 style="text-align: right;">Списки точек по категориям</h1>
|
<h1 style="text-align: right;">Списки точек по категориям</h1>
|
||||||
<div class="coords-container">
|
<div class="coords-container">
|
||||||
Вернуться <a href="/">на карту</a>.
|
Перейти: <a href="/">на карту</a> / <a href="/user/<?=$user->id?>">страница <?=$user->nick?></a>.
|
||||||
</div>
|
</div>
|
||||||
<div style="text-align: justify;">
|
<div style="text-align: justify;">
|
||||||
<?php if ($notModeratedPoints): ?>
|
<?php if ($notModeratedPoints): ?>
|
||||||
|
|
@ -33,13 +41,8 @@
|
||||||
if ((int) App::getParam('category')) {
|
if ((int) App::getParam('category')) {
|
||||||
$header = 'Список точек в категории "' . $categories[(int) App::getParam('category')]->name . '"';
|
$header = 'Список точек в категории "' . $categories[(int) App::getParam('category')]->name . '"';
|
||||||
}
|
}
|
||||||
if (App::getParam('user')) {
|
if ($user->id) {
|
||||||
$user = User::model()->getByPK((int) App::getParam('user'));
|
$header = 'Список точек пользователя <a href="/user/'.$user->id.'">"' . $user->nick . '"</a>';
|
||||||
if ($user->id) {
|
|
||||||
$header = 'Список точек пользователя <a href="/user/'.$user->id.'">"' . $user->nick . '"</a>';
|
|
||||||
} else {
|
|
||||||
App::redirect('/page/points/');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<h3><?= $header ?></h3>
|
<h3><?= $header ?></h3>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue