Changeset 27 for branches/lazarus/UCore.pas
- Timestamp:
- Sep 10, 2010, 8:09:21 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/lazarus/UCore.pas
r25 r27 11 11 TArrayOfString = array of string; 12 12 13 function NavigationLink(URL: string): string; 13 14 function MakeLink(Text, URL: string): string; 14 function NavigationMakeLink(Module, Page: string): string;15 15 function InsertIcon(FileName: string): string; 16 16 function IconedLink(Link, Text: string): string; … … 84 84 function InsertIcon(FileName: string): string; 85 85 begin 86 Result := '<img alt="" src=" images/favicons/' + FileName+ '" width="16" height="16" />';86 Result := '<img alt="" src="' + NavigationLink('/images/favicons/' + FileName) + '" width="16" height="16" />'; 87 87 end; 88 88 … … 100 100 Icon: string; 101 101 begin 102 Extension := Copy(Link, LastPos( Link, '.') + 1, Length(Link));103 Icon := '<img src=" images/icons/' + Extension + '.gif" alt="' + Extension + '"> ';102 Extension := Copy(Link, LastPos('.', Link) + 1, Length(Link)); 103 Icon := '<img src="' + NavigationLink('/images/icons/' + Extension + '.gif') + '" alt="' + Extension + '"> '; 104 104 Result := Icon + '<a href="' + Link + '">' + Text + '</a>'; 105 105 end; … … 110 110 end; 111 111 112 function Navigation MakeLink(Module, Page: string): string;112 function NavigationLink(URL: string): string; 113 113 begin 114 Result := '?m=' + Module + '&p=' + Page; 114 if (Length(URL) > 0) and (URL[1] = '/') then 115 Result := ConfigBaseURL + URL 116 else Result := URL; 115 117 end; 116 118
Note:
See TracChangeset
for help on using the changeset viewer.