| 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 | |
|---|
| 5 | require("./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 | |
|---|
| 12 | if (!$topic_id) { |
|---|
| 13 | echo 'Expecting topic_id'; |
|---|
| 14 | return; |
|---|
| 15 | } |
|---|
| 16 | |
|---|
| 17 | echo '<div class="smf comment-thread">'; |
|---|
| 18 | if (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 | } |
|---|
| 23 | echo '</div>'; |
|---|
| 24 | |
|---|
| 25 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.