This commit is contained in:
Zhuk Viatcheslav
2020-11-20 13:16:01 +03:00
parent 1a3f089b2d
commit 1f60b08bf5
2 changed files with 4 additions and 2 deletions

View File

@@ -329,9 +329,10 @@ function readtext_kuri($hash, $page = 1, $promo = 'full'){
$author_id = $news['author_id']; $author_id = $news['author_id'];
} }
$authorname = db_get("SELECT `authorname` FROM `authors` WHERE `author_id` = $author_id LIMIT 1"); $authorname = db_get("SELECT `authorname, descript` FROM `authors` WHERE `author_id` = $author_id LIMIT 1");
$content['authorname'] = $authorname['authorname']; $content['authorname'] = $authorname['authorname'];
$content['authordescript'] = $authorname['descript'];
if ($page > 1) { if ($page > 1) {
$prevpage = $page - 1; $prevpage = $page - 1;

View File

@@ -19,8 +19,9 @@
<?if (count($content) > 0):?> <?if (count($content) > 0):?>
<?foreach($content['stuff'] as $news):?> <?foreach($content['stuff'] as $news):?>
<?=$content['authorname']?>
<h2 class="antitle"><?=$news['title']?></h2> <h2 class="antitle"><?=$news['title']?></h2>
<p><?=$content['authorname']?></p>, <p><?=$content['authordescript']?></p>
<?if ($news['img'] !== ''):?> <?if ($news['img'] !== ''):?>
<figure class="anphoto"> <figure class="anphoto">
<?if (in_array($news['img'], ['jpg', 'png', 'gif', 'jpeg', 'JPG'])):?> <?if (in_array($news['img'], ['jpg', 'png', 'gif', 'jpeg', 'JPG'])):?>