[office/tellico/4.2] xslt/entry-templates: Use gradient data url in Album and Video template

Robby Stephenson <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 41e3003b47551fa86dcec44e71a985e208bb9985 by Robby Stephenson.
Committed on 17/08/2026 at 02:01.
Pushed by rstephenson into branch '4.2'.

Use gradient data url in Album and Video template

M  +2    -1    xslt/entry-templates/Album.xsl
M  +1    -1    xslt/entry-templates/Fancy.xsl
M  +2    -1    xslt/entry-templates/Video.xsl

https://invent.kde.org/office/tellico/-/commit/41e3003b47551fa86dcec44e71a985e208bb9985

diff --git a/xslt/entry-templates/Album.xsl b/xslt/entry-templates/Album.xsl
index 704ba0551..2192034e8 100644
--- a/xslt/entry-templates/Album.xsl
+++ b/xslt/entry-templates/Album.xsl
@@ -38,6 +38,7 @@
 <xsl:param name="color1"/> <!-- highlighted text color -->
 <xsl:param name="color2"/> <!-- highlighted background color -->
 <xsl:param name="linkcolor"/> <!-- link color -->
+<xsl:param name="gradient_header"/> <!-- gradient header data url -->
 
 <xsl:param name="collection-file"/> <!-- might have a link to parent collection -->
 
@@ -92,7 +93,7 @@
    h1 {
         color: <xsl:value-of select="$color1"/>;
         background-color: <xsl:value-of select="$color2"/>;
-        background-image: url(<xsl:value-of select="concat($imgdir, 'gradient_header.png')"/>);
+        background-image: url(<xsl:value-of select="$gradient_header"/>);
         background-repeat: repeat-x;
         font-size: 1.8em;
         text-align: left;
diff --git a/xslt/entry-templates/Fancy.xsl b/xslt/entry-templates/Fancy.xsl
index 784d1b36c..4eecbe8ea 100644
--- a/xslt/entry-templates/Fancy.xsl
+++ b/xslt/entry-templates/Fancy.xsl
@@ -145,7 +145,7 @@
   h2 {
     color: <xsl:value-of select="$color1"/>;
     background-color: <xsl:value-of select="$color2"/>;
-    background-image: url(<xsl:value-of select="concat($imgdir, 'gradient_header.png')"/>);
+    background-image: url(<xsl:value-of select="$gradient_header"/>);
     background-repeat: repeat-x;
     border-bottom: 1px outset;
     border-color: <xsl:value-of select="$fgcolor"/>;
diff --git a/xslt/entry-templates/Video.xsl b/xslt/entry-templates/Video.xsl
index 19e857f11..95672ef89 100644
--- a/xslt/entry-templates/Video.xsl
+++ b/xslt/entry-templates/Video.xsl
@@ -37,6 +37,7 @@
 <xsl:param name="color1"/> <!-- highlighted text color -->
 <xsl:param name="color2"/> <!-- highlighted background color -->
 <xsl:param name="linkcolor"/> <!-- link color -->
+<xsl:param name="gradient_header"/> <!-- gradient header data url -->
 
 <xsl:param name="collection-file"/> <!-- might have a link to parent collection -->
 
@@ -131,7 +132,7 @@
   /* there seems to be a khtml bug, in 3.4.x at least, repeat-x doesn't
      work on the tr element, so have to put it on the th element */
    tr.category th {
-        background-image: url(<xsl:value-of select="concat($imgdir, 'gradient_header.png')"/>);
+        background-image: url(<xsl:value-of select="$gradient_header"/>);
         background-repeat: repeat-x;
    }
    th {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.