Changeset 154 for trunk


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

Legend:

Unmodified
Added
Removed
  • trunk/Modules/ZdechovNET/ModuleZdechovNET.pas

    r151 r154  
    340340      HtmlDocument.Scripts.Add(NavigationLink('/Style/' + TCore(MainModule).Style + '/Global.js'));
    341341      HtmlDocument.Scripts.Add(NavigationLink('/Style/' + TCore(MainModule).Style + '/jquery.js'));
     342      HtmlDocument.FavIcon := NavigationLink('/images/favicon.ico');
    342343
    343344      TitleTag := THtmlString.Create;
  • 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.