This commit is contained in:
1 parent
ae74e3a4e2
commit
637e8fa169
6 files changed
+18
-35
No files matched your search
+1
-1
@@ -23,4 +23,4 @@ cgi-bin/thirdparty
|
||||
scripts/thirdparty/jquery*
|
||||
scripts/thirdparty/lunr.min.js
|
||||
scripts/thirdparty/bootstrap.min.js
|
||||
look/thirdparty/bootstrap
|
||||
look/thirdparty/bootstrap
|
||||
@@ -30,6 +30,7 @@ rev = "v6.10.0"
|
||||
file_sets = [{ source = "/src", target = "cgi-bin/thirdparty/PHPMailer" }]
|
||||
|
||||
# share-buttons
|
||||
# TODO: Copy the images directly from the repo into graphics/services
|
||||
[[dependencies]]
|
||||
repo = "https://git.fsfe.org/FSFE/share-buttons"
|
||||
rev = "8cac2cd410bcc19f8ce20f2e08c23bed65cbac1c"
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 475 B |
@@ -25,6 +25,11 @@
|
||||
background-image: url("/graphics/services/mastodon_white.png");
|
||||
}
|
||||
|
||||
.share-buttons .share-bluesky {
|
||||
background-color: #2b90d9;
|
||||
background-image: url("/graphics/services/bluesky_white.png");
|
||||
}
|
||||
|
||||
.share-buttons .share-reddit {
|
||||
background-color: #ff5700;
|
||||
background-image: url("/graphics/services/reddit_white.png");
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
<xsl:include href="tags.xsl"/>
|
||||
<xsl:include href="sharebuttons.xsl"/>
|
||||
<xsl:include href="fsfe_sidebar.xsl"/>
|
||||
<xsl:template name="fsfe_mainsection">
|
||||
<xsl:element name="main">
|
||||
@@ -52,6 +53,10 @@
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<!-- /tags -->
|
||||
<!-- Share buttons for social network -->
|
||||
<xsl:if test="not(/buildinfo/document/body/@class = 'frontpage') and not(/buildinfo/document/body/@class = 'errorpage') and not(/buildinfo/document/@external)">
|
||||
<xsl:call-template name="sharebuttons"/>
|
||||
</xsl:if>
|
||||
</xsl:element>
|
||||
<!--/article#content-->
|
||||
<xsl:if test="/buildinfo/document/sidebar or /buildinfo/document/@newsdate">
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<!-- article URL -->
|
||||
<xsl:variable name="share-url">
|
||||
<xsl:text>https://fsfe.org</xsl:text>
|
||||
<xsl:value-of select="/buildinfo/@url"/>
|
||||
<xsl:value-of select="/buildinfo/@fileurl"/>
|
||||
<xsl:text>.html</xsl:text>
|
||||
</xsl:variable>
|
||||
<xsl:element name="form">
|
||||
@@ -87,19 +87,19 @@
|
||||
<xsl:text>OK</xsl:text>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
<!-- Reddit -->
|
||||
<!-- Bluesky -->
|
||||
<xsl:element name="button">
|
||||
<xsl:attribute name="type">submit</xsl:attribute>
|
||||
<xsl:attribute name="name">service</xsl:attribute>
|
||||
<xsl:attribute name="value">reddit</xsl:attribute>
|
||||
<xsl:attribute name="class">button share-reddit</xsl:attribute>
|
||||
<xsl:attribute name="value">bluesky</xsl:attribute>
|
||||
<xsl:attribute name="class">button share-bluesky</xsl:attribute>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:call-template name="fsfe-gettext">
|
||||
<xsl:with-param name="id" select="'share-page'"/>
|
||||
</xsl:call-template>
|
||||
<xsl:text> Reddit</xsl:text>
|
||||
<xsl:text> Bluesky</xsl:text>
|
||||
</xsl:attribute>
|
||||
<xsl:text>Reddit</xsl:text>
|
||||
<xsl:text>Bluesky</xsl:text>
|
||||
</xsl:element>
|
||||
<!-- Hacker News -->
|
||||
<xsl:element name="button">
|
||||
@@ -123,34 +123,6 @@
|
||||
<xsl:attribute name="class">button share-mail</xsl:attribute>
|
||||
<xsl:text>E-Mail</xsl:text>
|
||||
</xsl:element>
|
||||
<!-- Twitter -->
|
||||
<xsl:element name="button">
|
||||
<xsl:attribute name="type">submit</xsl:attribute>
|
||||
<xsl:attribute name="name">service</xsl:attribute>
|
||||
<xsl:attribute name="value">twitter</xsl:attribute>
|
||||
<xsl:attribute name="class">button share-twitter</xsl:attribute>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:call-template name="fsfe-gettext">
|
||||
<xsl:with-param name="id" select="'share-page'"/>
|
||||
</xsl:call-template>
|
||||
<xsl:text> Twitter</xsl:text>
|
||||
</xsl:attribute>
|
||||
<xsl:text>Twitter</xsl:text>
|
||||
</xsl:element>
|
||||
<!-- Facebook -->
|
||||
<xsl:element name="button">
|
||||
<xsl:attribute name="type">submit</xsl:attribute>
|
||||
<xsl:attribute name="name">service</xsl:attribute>
|
||||
<xsl:attribute name="value">facebook</xsl:attribute>
|
||||
<xsl:attribute name="class">button share-facebook</xsl:attribute>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:call-template name="fsfe-gettext">
|
||||
<xsl:with-param name="id" select="'share-page'"/>
|
||||
</xsl:call-template>
|
||||
<xsl:text> Facebook</xsl:text>
|
||||
</xsl:attribute>
|
||||
<xsl:text>Facebook</xsl:text>
|
||||
</xsl:element>
|
||||
<!-- Support -->
|
||||
<xsl:element name="button">
|
||||
<xsl:attribute name="type">submit</xsl:attribute>
|
||||
|
||||
Reference in new issue
Block a user