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.
| Function | Line | Params | Returns | Summary |
|---|---|---|---|---|
render_comments_section | 10 | 2 | string | Render the HTML for the comments section with Bootstrap 4.6 styling. |
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'.