/** * @param array $pa_options Options are: * graphicsPath = */ function caNavIcon($po_request, $pn_type, $pa_attributes = null, $pa_options = null) { if (!is_array($pa_attributes)) { $pa_attributes = array(); } $vs_graphics_path = isset($pa_options['graphicsPath']) && $pa_options['graphicsPath'] ? $pa_options['graphicsPath'] : $po_request->getThemeUrlPath() . "/graphics"; $vs_button = ''; if (is_array($va_img = _caNavTypeToImgName($pn_type))) { if (!isset($pa_attributes['alt'])) { $pa_attributes['alt'] = $va_img['filename']; } if (!isset($pa_attributes['border'])) { $pa_attributes['border'] = '0'; } $vs_button = caHTMLImage("{$vs_graphics_path}/buttons/" . $va_img['filename'] . ".png", $pa_attributes); } return $vs_button; }
/** * @param array $pa_options Options are: * graphicsPath = */ function caNavIcon($po_request, $pn_type, $pn_size = null, $pa_attributes = null, $pa_options = null) { if (!is_array($pa_attributes)) { $pa_attributes = array(); } $vs_graphics_path = isset($pa_options['graphicsPath']) && $pa_options['graphicsPath'] ? $pa_options['graphicsPath'] : $po_request->getThemeUrlPath() . "/graphics"; $vs_button = ''; if ($vs_img_name = _caNavTypeToImgName($pn_type, $pn_size)) { if (!isset($pa_attributes['alt'])) { $pa_attributes['alt'] = $vs_img_name; } $vs_attr = _caHTMLMakeAttributeString($pa_attributes); $vs_button = "<img src='{$vs_graphics_path}/buttons/{$vs_img_name}.png' border='0' {$vs_attr}/>"; } return $vs_button; }