function template_main_nolayer() { global $context; tp_renderarticle($context['TPortal']['article']); }
function render_frontp($single = false) { global $context, $scripturl, $txt; echo ' <p class="', isset($context['TPortal']['article']['boardnews']) || $single ? 'catbg' : 'titlebg', '">'; if (in_array('title', $context['TPortal']['article']['visual_options'])) { if (isset($context['TPortal']['article']['boardnews'])) { echo $context['TPortal']['article']['subject']; } else { echo $context['TPortal']['article']['subject']; } } echo ' </p>'; echo ' <p class="windowbg"> ', tp_renderarticle(), ' </p>'; echo ' <p>'; if (!$single) { if (isset($context['TPortal']['article']['boardnews'])) { echo ' <a href="' . $scripturl . '?topic=' . $context['TPortal']['article']['id'] . ';wap2">' . $txt['tp-readmore'] . '</a>'; } else { echo ' <a href="' . $scripturl . '?page=' . (!empty($context['TPortal']['article']['shortname']) ? $context['TPortal']['article']['shortname'] : $context['TPortal']['article']['id']) . ';wap2">' . $txt['tp-readmore'] . '</a>'; } echo ' </p>'; } if ($single && !empty($context['TPortal']['article']['comment_posts']) && sizeof($context['TPortal']['article']['comment_posts']) > 0) { $counter = 1; echo ' <p class="titlebg">' . $txt['tp-comments'] . '</p>'; foreach ($context['TPortal']['article']['comment_posts'] as $post) { echo ' <p class="windowbg"> [' . $counter . '] <b>' . $post['subject'] . ' ' . $txt['by'] . ' ' . $post['poster'] . '</b> <br> ' . $post['text'] . ' </p> '; $counter++; } } }
function article_text($render = true) { echo ' <div class="article_bodytext">' . tp_renderarticle() . '</div>'; }
function article_text($render = true) { $code = ' <div class="article_bodytext">' . tp_renderarticle() . '</div>'; if ($render) { echo $code; } else { return $code; } }