Function __global->cns_render_post_buttons

Definitions

sources/cns_topicview.php

  • Get buttons for showing under a post.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$topic_info array No No required parameter N/A N/A Map of topic info
$_postdetails array No No required parameter N/A N/A Map of post info
$may_reply boolean No No required parameter N/A N/A Whether the current member may reply to the topic
$rendering_context ID_TEXT No No cns N/A N/A Rendering context

Returns

  • The buttons
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get buttons for showing under a post.
 *
 * @param  array $topic_info Map of topic info
 * @param  array $_postdetails Map of post info
 * @param  boolean $may_reply Whether the current member may reply to the topic
 * @param  ID_TEXT $rendering_context Rendering context
 * @return Tempcode The buttons
 */

function cns_render_post_buttons(array $topic_info, array $_postdetails, bool $may_reply, string $rendering_context = 'cns') : object