Improved handling for favicons in Foundry
git-svn-id: https://svn.libreccm.org/ccm/trunk@4160 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
30fe57f032
commit
8ff655f792
|
|
@ -1176,16 +1176,8 @@
|
|||
href="{foundry:gen-path('styles/debug-mode.css', 'internal')}"/>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Not implemented yet <xsl:call-template name="bebop:double-click-protection"/> -->
|
||||
|
||||
<!--
|
||||
Set favicon if exists. This three different variants for including the favicon
|
||||
are necessary to satisfy all browsers.
|
||||
-->
|
||||
<link href="{$theme-prefix}/images/favicon.ico"
|
||||
type="image/x-icon"
|
||||
rel="shortcut icon"/>
|
||||
|
||||
<!-- Not implemented yet <xsl:call-template name="bebop:double-click-protection"/> -->
|
||||
|
||||
<xsl:apply-templates select="$data-tree//script"/>
|
||||
</head>
|
||||
</xsl:template>
|
||||
|
|
@ -2958,4 +2950,4 @@
|
|||
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
</xsl:stylesheet>
|
||||
|
|
|
|||
|
|
@ -456,9 +456,32 @@
|
|||
</foundry:doc-attributes>
|
||||
</foundry:doc>
|
||||
<xsl:template match="load-favicon">
|
||||
<link rel="shortcut icon"
|
||||
type="image/x-icon"
|
||||
href="{foundry:gen-path(./@file)}" />
|
||||
<xsl:if test="./@file">
|
||||
<link rel="shortcut icon"
|
||||
type="image/x-icon"
|
||||
href="{foundry:gen-path(./@file)}" />
|
||||
</xsl:if>
|
||||
<xsl:if test="./icon">
|
||||
<link rel="shortcut icon"
|
||||
type="image/x-icon"
|
||||
href="{foundry:gen-path(./icon)}" />
|
||||
</xsl:if>
|
||||
<xsl:if test="./png">
|
||||
<link rel="icon"
|
||||
type="image/png"
|
||||
href="{foundry:gen-path(./png)}" />
|
||||
</xsl:if>
|
||||
<xsl:if test="./apple-touch-icon">
|
||||
<link rel="apple-touch-icon"
|
||||
sizes="180x180"
|
||||
href="{foundry:gen-path(./apple-touch-icon)}" />
|
||||
</xsl:if>
|
||||
<xsl:if test="./mstile/@color">
|
||||
<meta name="msapplication-TileColor" content="#ffffff" />
|
||||
</xsl:if>
|
||||
<xsl:if test="./mstile">
|
||||
<meta name="msapplication-TileImage" content="{foundry:gen-path(./mstile)}" />
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<foundry:doc section="user" type="template-tag">
|
||||
|
|
|
|||
Loading…
Reference in New Issue