Changeset 154 for trunk/Packages


Ignore:
Timestamp:
Mar 3, 2024, 12:18:21 PM (10 months ago)
Author:
chronos
Message:
  • Added: Favicon.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CoolWeb/Common/HtmlClasses.pas

    r151 r154  
    168168    Styles: TStringList;
    169169    Scripts: TStringList;
     170    FavIcon: string;
    170171    property AsXmlDocument: TXmlDocument read GetAsXmlDocument;
    171172    constructor Create;
     
    566567          Attributes.Add('media', 'all');
    567568        end;
     569        if FavIcon <> '' then
     570        with SubElements.AddTag('link') do begin
     571          Attributes.Add('rel', 'icon');
     572          Attributes.Add('href', FavIcon);
     573          Attributes.Add('type', 'image/x-icon');
     574        end;
    568575        for I := 0 to Scripts.Count - 1 do
    569576        with SubElements.AddTag('script') do begin
Note: See TracChangeset for help on using the changeset viewer.