Function __global->get_image_paths

Definitions

sources/themes2.php

  • Search under a base path for image FILE URLs.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$base_url URLPATH No No required parameter N/A N/A The base URL to where we are searching for images
$base_path PATH No No required parameter N/A N/A The base-path to where we are searching for images
$include_lang_dir_structure boolean No No False N/A N/A Whether to also include stuff under language-specific directories

Returns

  • path->url map of found images
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Search under a base path for image FILE URLs.
 *
 * @param  URLPATH $base_url The base URL to where we are searching for images
 * @param  PATH $base_path The base-path to where we are searching for images
 * @param  boolean $include_lang_dir_structure Whether to also include stuff under language-specific directories
 * @return array path->url map of found images
 */

function get_image_paths(string $base_url, string $base_path, bool $include_lang_dir_structure = false) : array