Function Forum_driver_phpbb3->_get_theme

Definitions

sources/forum/phpbb3.php

  • Try to find the theme that the logged-in/guest member is using, and map it to a site theme.The themes/map.ini file functions to provide this mapping between forum themes, and site themes, and has a slightly different meaning for different forum drivers. For example, some drivers map the forum themes theme directory to the site theme name, while others made the humanly readable name.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$skip_member_specific boolean No No False N/A N/A Whether to avoid member-specific lookup (i.e. find via what forum theme is currently configured as the default)
$member_id ?MEMBER No No Null N/A N/A The member to find for (null: current member)

Returns

  • The theme
  • Type: ID_TEXT
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Try to find the theme that the logged-in/guest member is using, and map it to a site theme.The themes/map.ini file functions to provide this mapping between forum themes, and site themes, and has a slightly different meaning for different forum drivers. For example, some drivers map the forum themes theme directory to the site theme name, while others made the humanly readable name.
 *
 * @param  boolean $skip_member_specific Whether to avoid member-specific lookup (i.e. find via what forum theme is currently configured as the default)
 * @param  ?MEMBER $member_id The member to find for (null: current member)
 * @return ID_TEXT The theme
 */

public function _get_theme(bool $skip_member_specific = false, ?int $member_id = null) : string