Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:public:render-comments

public/themes/blog/render-comments.php

Source: public/themes/blog/render-comments.php · 43 lines, ~88 statements · namespace: (global) · `declare(strict_types=1)`: no


Render the HTML for the comments section with Bootstrap 4.6 styling.

Functions (1)

Function Line Params Returns Summary
render_comments_section 10 2 string Render the HTML for the comments section with Bootstrap 4.6 styling.

render_comments_section()

public function render_comments_section(int $postId, int $offset = 0): string

Render the HTML for the comments section with Bootstrap 4.6 styling.

Parameter Type Default Description
$postId int required The ID of the post to load comments for.
$offset int 0 Optional offset for paginated comment loading.

Generated by 'tools/gendoc'.

scriptlog/public/render-comments.txt · Last modified: by admin