Function __global->find_template_path

Definitions

sources/themes2.php

  • Find where a template is.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$file ID_TEXT No No required parameter N/A N/A The file
$subdir ID_TEXT No No required parameter N/A N/A The theme subdirectory we're working against
$theme ID_TEXT No No required parameter N/A N/A The theme

Returns

  • The path (null: not found)
  • Type: ?PATH
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find where a template is.
 *
 * @param  ID_TEXT $file The file
 * @param  ID_TEXT $subdir The theme subdirectory we're working against
 * @param  ID_TEXT $theme The theme
 * @return ?PATH The path (null: not found)
 */

function find_template_path(string $file, string $subdir, string $theme) : ?string