substitute_table_image — (obsolete) substitute background image paths in HTML table elements
This pragma rewrites image background paths in <table>, <th>, <tr> and <td> HTML elements.
Example: Enabling table image paths rewriting
In the catalog.cfg file, add:
Pragma substitute_table_image
The substitute_table_image pragma which was added in
Interchange 4.6.2 was removed in 4.7, in favor of a general image
rewriting system.
Interchange 4.6.0 (1/1 contexts shown):
Source: lib/Vend/Interpolate.pm (rev. 1.47 from Fri Apr 13 21:08:50 2001)
Line 406 (context shows lines 396-410 in substitute_image():392)
($Vend::Cfg->{ImageDirSecure} || $Vend::Cfg->{ImageDir}) :
$Vend::Cfg->{ImageDir};
if ($dir) {
$$text =~ s#(<i\w+\s+[^>]*?src=")(?!https?:)([^/][^"]+)#
$1 . $dir . $2#ige;
$$text =~ s#(<body\s+[^>]*?background=")(?!https?:)([^/][^"]+)#
$1 . $dir . $2#ige;
$$text =~ s#(<t[dhr]\s+[^>]*?background=")(?!https?:)([^/][^"]+)#
$1 . $dir . $2#ige
if $Vend::Cfg->{Pragma}{substitute_table_image};
}
if($Vend::Cfg->{ImageAlias}) {
for (keys %{$Vend::Cfg->{ImageAlias}} ) {
$$text =~ s#(<i\w+\s+[^>]*?src=")($_)#