/** * Generate URL tag for graphic in current theme; if graphic is not available the graphic in the default theme will be returned. * * @param RequestHTTP $po_request * @param string $ps_file_path * @param array $pa_options * @return string */ function caGetThemeGraphicURL($po_request, $ps_file_path, $pa_options = null) { $vs_base_path = $po_request->getThemeUrlPath(); $vs_file_path = '/assets/pawtucket/graphics/' . $ps_file_path; if (!file_exists($po_request->getThemeDirectoryPath() . $vs_file_path)) { $vs_base_path = $po_request->getDefaultThemeUrlPath(); } return $vs_base_path . $vs_file_path; }