diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2022-05-11 14:07:02 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2022-05-13 18:46:34 +0200 |
commit | d9880014fd80f412d10b2f7536c45941552c4760 (patch) | |
tree | 250aca756210bbf8a43dd2ba3ac4b27880f46fe0 /help3xsl/online_transform.xsl | |
parent | 11bafb045eecef25e05dca0dbc1f693410812056 (diff) |
Fix YouTube display for Help online/offline
+ Enhance button CSS display
+ Refactor XSLT
+ Refactor XHP
Change-Id: I58e46c31a97ad49eb25a4489994aae5dac62dbc3
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/134207
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r-- | help3xsl/online_transform.xsl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index a9c47ae1e5..a9de0d4f5a 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -109,6 +109,9 @@ <xsl:variable name ="ui_search"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='searchhelpcontents']"/></xsl:variable> <xsl:variable name ="ui_copyclip"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='copyclip']"/></xsl:variable> <xsl:variable name ="ytvideobutton"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='ytbutton']"/></xsl:variable> +<xsl:variable name ="ytaccept"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='ytaccept']"/></xsl:variable> +<xsl:variable name ="ytpromovideoH2"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='externalvideo']"/></xsl:variable> +<xsl:variable name ="ytprivacy"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='ytprivacy']"/></xsl:variable> <!-- ############# # Templates # @@ -1281,8 +1284,11 @@ <xsl:variable name="auxID" select="concat('obj',generate-id())"/> <xsl:choose> <xsl:when test="starts-with(@type,'video/youtube')"> - <div id="{@id}" class="youtube_placeholder" style="border: 1px solid #eee; max-width:500px; padding: 10px;"> - <button style="background-color: red;" onClick="youtubeLoader('{@id}', 700, 394)" > + <div id="{@id}" class="youtube_placeholder"> + <h2 id="promovideoH2"><xsl:value-of select="$ytpromovideoH2"/></h2> + <p><xsl:value-of select="$ytaccept"/></p> + <p><a href="https://policies.google.com/privacy" target="_blank"><xsl:value-of select="$ytprivacy"/></a></p> + <button class="youtube_button" onClick="youtubeLoader('{@id}', 700, 394)" > <xsl:value-of select="$ytvideobutton"/> </button> </div> |