Function Hook_addon_registry_cns_forum->_tpl_preview__cns_topic_screen

Definitions

sources/hooks/systems/addon_registry/cns_forum.php

  • Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declarative.Assumptions: You can assume all Lang/CSS/JavaScript files in this addon have been pre-required.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$voted boolean No No required parameter N/A N/A Whether to show for a has-voted-poll or not
$checkboxes boolean No No required parameter N/A N/A Whether to show checkboxes (as oppose to radio buttons). Irrelevant if !$voted.

Returns

  • Preview
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declarative.Assumptions: You can assume all Lang/CSS/JavaScript files in this addon have been pre-required.
 *
 * @param  boolean $voted Whether to show for a has-voted-poll or not
 * @param  boolean $checkboxes Whether to show checkboxes (as oppose to radio buttons). Irrelevant if !$voted.
 * @return Tempcode Preview
 */

public function _tpl_preview__cns_topic_screen(bool $voted, bool $checkboxes) : object