cdn_filter (line 259)
Filter a path so it runs through a CDN.
URLPATH
cdn_filter
(URLPATH $path)
find_theme_image (line 45)
Find the URL to the theme image of the specified ID. It searches various priorities, including language and theme overrides.
URLPATH
find_theme_image
(ID_TEXT $id, [boolean $silent_fail = false], [boolean $leave_local = false], [?ID_TEXT $theme = NULL], [?LANGUAGE_NAME $lang = NULL], [?object $db = NULL], [boolean $pure_only = false])
-
ID_TEXT
$id: The theme image ID
-
boolean
$silent_fail: Whether to silently fail (i.e. not give out an error message when a theme image cannot be found)
-
boolean
$leave_local: Whether to leave URLs as relative local URLs
-
?ID_TEXT
$theme: The theme to search in (NULL: users current theme)
-
?LANGUAGE_NAME
$lang: The language to search for (NULL: users current language)
-
?object
$db: The database to use (NULL: site database)
-
boolean
$pure_only: Whether to only search the default 'images' filesystem
init__themes (line 24)
Standard code module initialisation function.
void
init__themes
()
_search_img_file (line 292)
Search for a specified image file within a theme for a specified language.
?string
_search_img_file
(ID_TEXT $theme, ?LANGUAGE_NAME $lang, ID_TEXT $id, [ID_TEXT $dir = 'images'])
-
ID_TEXT
$theme: The theme
-
?LANGUAGE_NAME
$lang: The language (NULL: try generally, under no specific language)
-
ID_TEXT
$id: The theme image ID
-
ID_TEXT
$dir: Directory to search