<?php // kontrola jadra if (!defined('_core')) { exit; } // titulek $title = $query['title']; if (_template_autoheadings && $query['autotitle']) { $content .= "<h1>" . $query['title'] . _linkRSS($id, 3) . "</h1>\n"; } _extend('call', 'page.book.aftertitle', $extend_args); // obsah _extend('call', 'page.book.content.before', $extend_args); if ($query['content'] != "") { $content .= _parseHCM($query['content']); } _extend('call', 'page.book.content.after', $extend_args); // prispevky require_once _indexroot . 'require/functions-posts.php'; $content .= _postsOutput(3, $id, array($query['var2'], _publicAccess($query['var1']), $query['var3']));
$avatar = ''; } else { $author_name = _userDataCache($query['author']); if ('' !== $author_name['publicname']) { $author_name = $author_name['publicname']; } else { $author_name = $author_name['username']; } $avatar = "<img src='" . $avatar . "' alt='" . $author_name . "' class='topic-avatar' />"; } } } else { $author = "<span class='post-author-guest' title='" . _showIP($query['ip']) . "'>" . $query['guest'] . "</span>"; } // vystup $module .= "\n<h2>" . $_lang['posts.topic'] . ": " . $query['subject'] . _linkRSS($id, 6) . "</h2>\n<p><small>" . $_lang['global.postauthor'] . " " . $author . " " . _formatTime($query['time']) . "</small>" . $editlink . "</p>\n<p>" . $avatar . _parsePost($query['text']) . "</p>\n<div class='cleaner'></div>\n"; // odpovedi require_once _indexroot . 'require/functions-posts.php'; $module .= _postsOutput(6, $homedata['id'], array(_commentsperpage, _publicAccess($homedata['var3']), $homedata['var2'], $id), $query['locked'] == 1); } else { $form = _uniForm("notpublic"); $module .= $form[0]; } } else { define('_indexOutput_url', "index.php?m=topic"); if (_template_autoheadings) { $module .= "<h1>" . $_lang['global.error404.title'] . "</h1>\n"; } $module .= _formMessage(2, $_lang['posts.topic.notfound']); $found = false; }