Function __global->render_news_box

Definitions

sources/news.php

  • Show a news entry box.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$row array No No required parameter N/A N/A The news row
$zone ID_TEXT No No _SEARCH N/A N/A The zone our news module is in
$give_context boolean No No True N/A N/A Whether to include context (i.e. say WHAT this is, not just show the actual content)
$brief boolean No No False N/A N/A Whether to use the brief styling
$guid ID_TEXT No No Blank (empty string) N/A N/A Overridden GUID to send to templates (blank: none)

Returns

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

Preview

Code (PHP)

/**
 * Show a news entry box.
 *
 * @param  array $row The news row
 * @param  ID_TEXT $zone The zone our news module is in
 * @param  boolean $give_context Whether to include context (i.e. say WHAT this is, not just show the actual content)
 * @param  boolean $brief Whether to use the brief styling
 * @param  ID_TEXT $guid Overridden GUID to send to templates (blank: none)
 * @return Tempcode The box
 */

function render_news_box(array $row, string $zone = '_SEARCH', bool $give_context = true, bool $brief = false, string $guid = '') : object