source: trunk/smf/ia_comments.php @ 1184

Revision 1032, 555 bytes checked in by diana.kelerman@…, 3 years ago (diff)

Paginator at the end of wiki page comments + remotebox refactoring:
moved the comments stuff from RemoteBox_Load to RemoteBox_Comments.

  • Property svn:eol-style set to native
Line 
1<?php
2
3// Display an entire SMF topic as a comment thread.
4
5require("./SSI.php");
6
7$topic_id = getattr($_GET, 'topic_id');
8$display = getattr($_GET, 'display', 'hide');
9$begin_comm = (int)getattr($_GET, 'begin_comm', '1');
10$max_comm = getattr($_GET, 'max_comm');
11
12if (!$topic_id) {
13    echo 'Expecting topic_id';
14    return;
15}
16
17echo '<div class="smf comment-thread">';
18if (is_null($max_comm)) {
19    ssi_commentThread($topic_id, $display, $begin_comm);
20} else {
21    ssi_commentThread($topic_id, $display, $begin_comm, (int)$max_comm);
22}
23echo '</div>';
24
25?>
Note: See TracBrowser for help on using the repository browser.