Function __global->placeholder_comments_form
Definitions
sources/lorem.php
- Get a placeholder comments posting form.Be sure to require_javascript editing or posting where necessary.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $reviews | boolean | No | No | True | N/A | N/A | Whether to show reviews |
| $first_post | boolean | No | No | False | N/A | N/A | Include placeholder first post info |
| $display | SHORT_TEXT | No | No | block | N/A | N/A | The CSS display mode |
| $expand_type | ID_TEXT | No | No | expand | expand | N/A | The expansion type |
| $has_comment_url | boolean | No | No | True | N/A | N/A | Whether a comment URL will be there |
Returns
- The placeholder comment form
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a placeholder comments posting form.Be sure to require_javascript editing or posting where necessary.
*
* @param boolean $reviews Whether to show reviews
* @param boolean $first_post Include placeholder first post info
* @param SHORT_TEXT $display The CSS display mode
* @param ID_TEXT $expand_type The expansion type
* @set expand
* @param boolean $has_comment_url Whether a comment URL will be there
* @return Tempcode The placeholder comment form
*/
function placeholder_comments_form(bool $reviews = true, bool $first_post = false, string $display = 'block', string $expand_type = 'expand', bool $has_comment_url = true) : object
* Get a placeholder comments posting form.Be sure to require_javascript editing or posting where necessary.
*
* @param boolean $reviews Whether to show reviews
* @param boolean $first_post Include placeholder first post info
* @param SHORT_TEXT $display The CSS display mode
* @param ID_TEXT $expand_type The expansion type
* @set expand
* @param boolean $has_comment_url Whether a comment URL will be there
* @return Tempcode The placeholder comment form
*/
function placeholder_comments_form(bool $reviews = true, bool $first_post = false, string $display = 'block', string $expand_type = 'expand', bool $has_comment_url = true) : object

