Browse Source

Merge PR #931

pull/957/head
Max Mehl 1 month ago
parent
commit
c921e8169b
Signed by: max.mehl <max.mehl@fsfe.org> GPG Key ID: 2704E4AB371E2E92

+ 36
- 36
index.xsl View File

@@ -1,30 +1,30 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 
3 3
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4
-  
4
+
5 5
   <xsl:import href="tools/xsltsl/static-elements.xsl" />
6
-  
6
+
7 7
   <xsl:import href="fsfe.xsl" />
8 8
   <xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
9
-  
9
+
10 10
   <xsl:template match="body">
11 11
       <div id="frontpage">
12 12
         <xsl:apply-templates />
13 13
       </div>
14 14
   </xsl:template>
15
-  
15
+
16 16
   <!--xsl:template match="quote-box">
17 17
     <xsl:call-template name="quote-box">
18 18
       <xsl:with-param name="tag" select="@tag" />
19 19
     </xsl:call-template>
20 20
   </xsl:template-->
21
-  
21
+
22 22
   <xsl:template match="label-ourwork2011">
23 23
     <xsl:call-template name="gettext">
24 24
       <xsl:with-param name="id" select="'support'" />
25 25
     </xsl:call-template>
26 26
   </xsl:template>
27
-  
27
+
28 28
   <!--display dynamic list of news items-->
29 29
   <xsl:template match="all-news">
30 30
     <xsl:call-template name="fetch-news">
@@ -33,9 +33,9 @@
33 33
       <xsl:with-param name="show-date" select="'yes'" />
34 34
       <!--TODO enable a "Read More" link with class "learn-more" at the end of newsteaser-->
35 35
     </xsl:call-template>
36
-    
36
+
37 37
   </xsl:template>
38
-  
38
+
39 39
   <!--display dynamic list of event items-->
40 40
   <xsl:template match="all-events">
41 41
     <!-- Current events -->
@@ -44,7 +44,7 @@
44 44
       <xsl:with-param name="tag">front-page</xsl:with-param>
45 45
       <xsl:with-param name="display-details" select="'yes'" />
46 46
     </xsl:call-template>
47
-    
47
+
48 48
     <!-- Future events -->
49 49
     <xsl:call-template name="fetch-events">
50 50
       <xsl:with-param name="wanted-time" select="'future'" />
@@ -53,7 +53,7 @@
53 53
       <xsl:with-param name="nb-items" select="3" />
54 54
       <!--FIXME ↑ why is it showing one more?-->
55 55
     </xsl:call-template>
56
-    
56
+
57 57
     <xsl:element name="p">
58 58
       <xsl:element name="a">
59 59
         <xsl:attribute name="href">/events/events.html</xsl:attribute>
@@ -62,18 +62,18 @@
62 62
       </xsl:element>
63 63
     </xsl:element>
64 64
   </xsl:template>
65
-  
65
+
66 66
   <!-- display campaign box 3 -->
67
-  
67
+
68 68
   <xsl:template match="campaign-box-3">
69 69
     <xsl:element name="a">
70 70
      <xsl:attribute name="href">/campaigns/ilovefs/ilovefs<xsl:value-of select="/buildinfo/@language" />.html</xsl:attribute>
71
-      
71
+
72 72
       <xsl:variable name="lang" select="/buildinfo/@language" />
73
-      
73
+
74 74
       <xsl:variable name="img-path"
75 75
                     select="concat( '/campaigns/valentine/valentine-358x60-', substring($lang, 2, 2) , '.png' )" />
76
-      
76
+
77 77
       <xsl:element name="img">
78 78
         <xsl:attribute name="src">
79 79
           <xsl:value-of select="$img-path" />
@@ -95,19 +95,19 @@
95 95
             data-cycle-log="false"
96 96
             data-cycle-pause-on-hover="true"
97 97
             data-cycle-speed="500"
98
-            data-cycle-timeout="9000"
98
+            data-cycle-timeout="6000"
99 99
             data-cycle-slides="a"
100 100
             data-cycle-fx="scrollHorz"
101 101
             data-cycle-swipe="true">
102 102
       <div class="cycle-pager"/>
103
-      
103
+
104 104
       <xsl:for-each select="/buildinfo/document/set/campaign[@running = 'yes']">
105 105
         <xsl:apply-templates select="." mode="slideshow" />
106 106
       </xsl:for-each>
107
-      
107
+
108 108
     </div>
109 109
   </xsl:template>
110
-  
110
+
111 111
   <xsl:template match="campaign" mode="slideshow">
112 112
     <a href="{link}" class="campaign-box">
113 113
       <xsl:attribute name="id"><xsl:value-of select="@id" /></xsl:attribute>
@@ -127,39 +127,39 @@
127 127
       <xsl:if test=" text2 != '' ">
128 128
         <p class="text2"><xsl:value-of select="text2" /></p>
129 129
       </xsl:if>
130
-      
130
+
131 131
       <!-- Author (if existing) -->
132 132
       <xsl:if test="author != ''">
133 133
         <span class="author"><xsl:value-of select="author" /></span>
134 134
       </xsl:if>
135
-          
135
+
136 136
       <!-- Copyright notice (if existing) -->
137 137
       <xsl:if test="copyright != ''">
138 138
         <span class="copyright"><xsl:value-of select="copyright" /></span>
139 139
       </xsl:if>
140 140
     </a>
141 141
   </xsl:template>
142
-  
142
+
143 143
   <!-- display campaign box 4 -->
144 144
   <xsl:template match="campaign-box4">
145 145
   </xsl:template>
146
-  
146
+
147 147
   <!--display labels-->
148
-  
148
+
149 149
   <!--translated word "newsletter"-->
150 150
   <xsl:template match="newsletter-label">
151 151
     <xsl:call-template name="gettext">
152 152
       <xsl:with-param name="id" select="'newsletter'" />
153 153
     </xsl:call-template>
154 154
   </xsl:template>
155
-  
155
+
156 156
   <!--translated sentence "receive-newsletter"-->
157 157
   <xsl:template match="receive-newsletter">
158 158
     <xsl:call-template name="gettext">
159 159
       <xsl:with-param name="id" select="'receive-newsletter'" />
160 160
     </xsl:call-template>
161 161
   </xsl:template>
162
-  
162
+
163 163
   <!--translated word "news"-->
164 164
   <xsl:template match="news-label">
165 165
     <xsl:call-template name="gettext">
@@ -173,41 +173,41 @@
173 173
       <xsl:with-param name="id" select="'events'" />
174 174
     </xsl:call-template>
175 175
   </xsl:template>
176
-  
176
+
177 177
   <!--translated word "more"-->
178 178
   <xsl:template match="more-label">
179 179
     <xsl:call-template name="more-label" /><xsl:text></xsl:text>
180 180
   </xsl:template>
181
-  
181
+
182 182
   <xsl:template name="more-label">
183 183
     <xsl:call-template name="gettext">
184 184
       <xsl:with-param name="id" select="'more'" />
185 185
     </xsl:call-template>
186 186
   </xsl:template>
187
-  
187
+
188 188
   <!--translated word "more news"-->
189 189
   <xsl:template match="more-news">
190 190
     <xsl:call-template name="more-news" /><xsl:text></xsl:text>
191 191
   </xsl:template>
192
-  
192
+
193 193
   <xsl:template name="more-news">
194 194
     <xsl:call-template name="gettext">
195 195
       <xsl:with-param name="id" select="'morenews'" />
196 196
     </xsl:call-template>
197 197
   </xsl:template>
198
-  
198
+
199 199
   <!--translated word "more events"-->
200 200
   <xsl:template match="more-events">
201 201
     <xsl:call-template name="more-events" /><xsl:text></xsl:text>
202 202
   </xsl:template>
203
-  
203
+
204 204
   <xsl:template name="more-events">
205 205
     <xsl:call-template name="gettext">
206 206
       <xsl:with-param name="id" select="'moreevents'" />
207 207
     </xsl:call-template>
208 208
   </xsl:template>
209
-  
210
-  
209
+
210
+
211 211
   <!--translated word "donate"-->
212 212
   <xsl:template match="donate-label">
213 213
     <xsl:call-template name="gettext">
@@ -228,7 +228,7 @@
228 228
       <xsl:with-param name="id" select="'support'" />
229 229
     </xsl:call-template>
230 230
   </xsl:template>
231
-  
231
+
232 232
   <xsl:template match="about-work-label">
233 233
     <xsl:call-template name="gettext">
234 234
       <xsl:with-param name="id" select="'about-work'" />
@@ -239,5 +239,5 @@
239 239
   <xsl:template match="subscribe-nl">
240 240
     <xsl:call-template name="subscribe-nl" />
241 241
   </xsl:template>
242
-  
242
+
243 243
 </xsl:stylesheet>

+ 0
- 118
look/fsfe.less View File

@@ -246,52 +246,6 @@ img.signatory-logo {
246 246
 
247 247
         }
248 248
 
249
-        #appelbaum {
250
-            background: url('/graphics/appelbaum.jpg') top right no-repeat #070400;
251
-            background-size: cover;
252
-
253
-            @media (min-width: @screen-sm-min) {
254
-                background-size: contain;
255
-            }
256
-
257
-            img {
258
-                display: none;
259
-            }
260
-
261
-            .author:before {
262
-                content: "– ";
263
-            }
264
-
265
-            .text {
266
-                .quote;
267
-            }
268
-
269
-            .author, .text {
270
-                display: block;
271
-                background-color: rgba(0, 0, 0, 0.5);
272
-                padding: 0.5em;
273
-            }
274
-
275
-            @media (min-width: @screen-sm-min) {
276
-                .author, .text {
277
-                    margin-right: 45%;
278
-                }
279
-            }
280
-
281
-            @media (min-width: @screen-md-min) {
282
-                .author, .text {
283
-                    margin-right: 35%;
284
-                }
285
-            }
286
-
287
-            .copyright {
288
-                font-size: 0.6em;
289
-                position: absolute;
290
-                bottom: 0;
291
-                right: 0;
292
-            }
293
-        }
294
-
295 249
         #zacchiroli {
296 250
             background: url('/graphics/group-blur-800.jpg') center 33% no-repeat #666;
297 251
             text-shadow: 0px 1px 2px rgb(0, 0, 0);
@@ -324,37 +278,6 @@ img.signatory-logo {
324 278
                     display: block;
325 279
                 }
326 280
             }
327
-
328
-        }
329
-
330
-        #summit16 {
331
-            .campaign-box-center;
332
-            background: url('/graphics/fsfe-summit-header-background.jpg') center no-repeat #666;
333
-            background-size: cover;
334
-        }
335
-
336
-        #summit16 img {
337
-            position: absolute;
338
-        }
339
-
340
-        #summit16 img:first-of-type {
341
-            top: 10%;
342
-            left: 5%;
343
-            width: 40%;
344
-            max-width: 250px;
345
-        }
346
-
347
-        #summit16 img:last-of-type {
348
-            bottom: 10%;
349
-            right: 5%;
350
-            width: 50%;
351
-            max-width: 400px;
352
-        }
353
-
354
-        @media (min-width: 800px) {
355
-            #summit16 img:first-of-type {
356
-                top: 20%;
357
-            }
358 281
         }
359 282
 
360 283
         #boxpmpc {
@@ -391,53 +314,13 @@ img.signatory-logo {
391 314
 
392 315
         }
393 316
 
394
-        #dfd {
395
-            .campaign-box-center;
396
-            background: url('/graphics/fellowship/plussy_tile_01-33alpha.png') rgba(118, 181, 32, 1);
397
-
398
-            img {
399
-                height: 200px;
400
-                margin-bottom: 10px;
401
-                margin-top: -70px;
402
-                max-width: none;
403
-            }
404
-        }
405
-
406 317
         #ilovefs {
407 318
             .campaign-box-center;
408 319
             background: url('/graphics/ilovefs-hashtag-campaignbox.png') center 33% no-repeat transparent;
409 320
         }
410
-
411
-        #racketware {
412
-            .campaign-box-center;
413
-            background: center 33% no-repeat #FFF;
414
-
415
-            .text {
416
-                display: none;
417
-            }
418
-        }
419
-
420
-        #becomefellow {
421
-            .campaign-box-center;
422
-            background: url('/graphics/group-blur-800.jpg') center 33% no-repeat #666;
423
-        }
424
-
425
-        #fightback {
426
-            .campaign-box-center;
427
-            background: url('/graphics/thedaywefightback.png') center 33% no-repeat transparent;
428
-        }
429
-
430
-    }
431
-}
432
-
433
-.svg #campaigns-boxes #dfd {
434
-    img {
435
-        /*TODO: can we maybe change it to svg here?*/
436 321
     }
437 322
 }
438 323
 
439
-
440
-
441 324
 #news {
442 325
     padding-bottom: 1.5em;
443 326
 
@@ -484,7 +367,6 @@ img.signatory-logo {
484 367
 
485 368
 }
486 369
 
487
-
488 370
 #latest-news-list, #more-news-list {
489 371
     list-style-type: none;
490 372
     font-size: 1.2em;

+ 15419
- 2
look/fsfe.min.css
File diff suppressed because it is too large
View File


+ 0
- 10
tools/frontpage/20_summit2016.en.xml View File

@@ -1,10 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-  <campaign running="no" id="summit16">
4
-    <link>/community/events/2016/summit/frontpage.en.html</link>
5
-    <content>
6
-      <img src="/graphics/fsfe-summit-header-logo.png" align="left" />
7
-      <img src="/graphics/fsfe-summit-header-date.png" align="right" />
8
-    </content>
9
-  </campaign>
10
-</campaigns>

+ 0
- 10
tools/frontpage/40_dfd.de.xml View File

@@ -1,10 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-    <campaign running="no" id="dfd">
4
-        <photo>/graphics/robot-protest-light.png</photo>
5
-      <text>
6
-          Guter Zugang zu Informationen und mehr Aufklärung für Offene Standards.
7
-      </text>
8
-        <link>//documentfreedom.org</link>
9
-    </campaign>
10
-</campaigns>

+ 0
- 11
tools/frontpage/40_dfd.el.xml View File

@@ -1,11 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-    <campaign running="no" id="dfd">
4
-        <photo>/graphics/robot-protest-light.png</photo>
5
-      <text>
6
-          Γιορτή για την προσβασιμότητα στην πληροφορία και την απόκτηση
7
-          συνειδητοποίησης για τα Ανοιχτά Πρότυπα.
8
-          </text>
9
-        <link>//documentfreedom.org</link>
10
-    </campaign>
11
-</campaigns>

+ 0
- 10
tools/frontpage/40_dfd.en.xml View File

@@ -1,10 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-    <campaign running="no" id="dfd">
4
-        <photo>/graphics/robot-protest-light.png</photo>
5
-        <text>
6
-        Celebrating information accessibility and raising awareness of Open Standards.
7
-        </text>
8
-        <link>//documentfreedom.org</link>
9
-    </campaign>
10
-</campaigns>

+ 0
- 10
tools/frontpage/40_dfd.es.xml View File

@@ -1,10 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-    <campaign running="no" id="dfd">
4
-        <photo>/graphics/robot-protest-light.png</photo>
5
-          <text>
6
-          Celebrando la accesibilidad a la información y creando conciencia sobre los Estándares Abiertos.
7
-          </text>
8
-        <link>//documentfreedom.org</link>
9
-    </campaign>
10
-</campaigns>

+ 0
- 10
tools/frontpage/40_dfd.fr.xml View File

@@ -1,10 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-    <campaign running="no" id="dfd">
4
-        <photo>/graphics/robot-protest-light.png</photo>
5
-      <text>
6
-          Célèbre l'accès à l'information et sensibilise aux Standards Ouverts.
7
-          </text>
8
-        <link>//documentfreedom.org</link>
9
-    </campaign>
10
-</campaigns>

+ 0
- 10
tools/frontpage/40_dfd.it.xml View File

@@ -1,10 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-    <campaign running="no" id="dfd">
4
-        <photo>/graphics/robot-protest-light.png</photo>
5
-        <text>
6
-        Celebrare l'accessibilità dell'informazione e sensibilizzare sugli Standard Aperti.
7
-        </text>
8
-        <link>//documentfreedom.org</link>
9
-    </campaign>
10
-</campaigns>

+ 0
- 10
tools/frontpage/40_dfd.nl.xml View File

@@ -1,10 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-    <campaign running="no" id="dfd">
4
-        <photo>/graphics/robot-protest-light.png</photo>
5
-          <text>
6
-          Vier de toegang tot informatie en verhoog het bewustzijn over Open Standaarden.
7
-          </text>
8
-        <link>//documentfreedom.org</link>
9
-    </campaign>
10
-</campaigns>

+ 0
- 10
tools/frontpage/40_dfd.pt.xml View File

@@ -1,10 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-    <campaign running="no" id="dfd">
4
-        <photo>/graphics/robot-protest-light.png</photo>
5
-      <text>
6
-          Celebrando a acessibilidade à informação e alertando para as Normas Abertas.
7
-          </text>
8
-        <link>//documentfreedom.org</link>
9
-    </campaign>
10
-</campaigns>

+ 0
- 10
tools/frontpage/40_dfd.ru.xml View File

@@ -1,10 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-    <campaign running="no" id="dfd">
4
-        <photo>/graphics/robot-protest-light.png</photo>
5
-      <text>
6
-          Празднуем доступность информации и популяризуем открытые стандарты.
7
-          </text>
8
-        <link>//documentfreedom.org</link>
9
-    </campaign>
10
-</campaigns>

+ 0
- 15
tools/frontpage/50_appelbaum.en.xml View File

@@ -1,15 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-    <campaign running="no" id="appelbaum">
4
-      <text>
5
-        I believe that actions of support for the FSFE are important for
6
-        encouraging Free Software development and adoption in Europe as well
7
-        as the rest of the world. I&#39;m an FSFE Fellow because financially
8
-        supporting the cause of Free Software brings positive improvements to
9
-        all societies throughout the world.
10
-      </text>
11
-      <author>Jacob Appelbaum - Spokesperson for The TOR Project</author>
12
-      <link>/join</link>
13
-      <copyright>Jacob Appelbaum's photo by Stephan Röhl (Heinrich-Böll-Stiftung) used with CC BY SA 2.0 license</copyright>
14
-    </campaign>
15
-</campaigns>

+ 0
- 14
tools/frontpage/50_appelbaum.es.xml View File

@@ -1,14 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-    <campaign running="no" id="appelbaum">
4
-        <text>
5
-  	Creo que las acciones de apoyo a la FSFE son importantes para fortalecer
6
-  	el desarrollo y adopción del Software Libre en Europa y en el resto del mundo.
7
-  	Soy un «Fellow» de la FSFE porque apoyar económicamente la causa del Software 
8
-  	Libre trae mejoras positivas a todas las sociedades del mundo.
9
-        </text>
10
-        <author>Jacob Appelbaum - Portavoz del proyecto TOR</author>
11
-      <link>/fellowship/index.html</link>
12
-      <copyright>Jacob Appelbaum's photo by Stephan Röhl (Heinrich-Böll-Stiftung) used with CC BY SA 2.0 license</copyright>
13
-    </campaign>
14
-</campaigns>

+ 0
- 15
tools/frontpage/50_appelbaum.it.xml View File

@@ -1,15 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-  <campaign running="no" id="appelbaum">
4
-    <text>
5
-     Credo che le azioni che sostengono la FSFE siano importanti per
6
-     incoraggiare lo sviluppo e l'adozione del Software Libero in Europa
7
-     e nel resto del mondo. Sono un Fellow della FSFE perché sostenere
8
-     economicamente la causa del Software Libero implica risvolti positivi
9
-     a tutte le società del mondo.
10
-    </text>
11
-    <author>Jacob Appelbaum - Portavoce del progetto TOR</author>
12
-    <link>/fellowship/index.html</link>
13
-    <copyright>Jacob Appelbaum's photo by Stephan Röhl (Heinrich-Böll-Stiftung) used with CC BY SA 2.0 license</copyright>
14
-  </campaign>
15
-</campaigns>

+ 0
- 12
tools/frontpage/50_appelbaum.nl.xml View File

@@ -1,12 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-    <campaign running="no" id="appelbaum">
4
-        <text>
5
-          Ik geloof dat het steunen van de FSFE belangrijk is voor de ontwikkeling van en het overgaan op 
6
-  Vrije Software in Europa en de rest van de wereld. Ik ben een FSFE Fellow omdat het financieel steunen van Vrije Software positieve verbeteringen veroorzaakt in alle samenlevingen over de wereld.
7
-        </text>
8
-        <author>Jacob Appelbaum - Woordvoerder van het TOR Project</author>
9
-      <link>/fellowship/index.html</link>
10
-      <copyright>Jacob Appelbaum's photo by Stephan Röhl (Heinrich-Böll-Stiftung) used with CC BY SA 2.0 license</copyright>
11
-    </campaign>
12
-</campaigns>

+ 0
- 15
tools/frontpage/50_appelbaum.sq.xml View File

@@ -1,15 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-    <campaign running="no" id="appelbaum">
4
-        <text>
5
-          Besoj se aktet në përkrahje të FSFE-së janë të rëndësishme për
6
-          nxitjen e zhvillimit dhe përhapjes së Software-it të Lirë në 
7
-          Europë, si dhe në gjithë botën. Jam anëtar shok i FSFE-së, ngaqë
8
-          përkrahja financiare e kauzës së Software-it të Lirë sjell 
9
-          përmirësime pozitive në krejt shoqëritë, anembanë botës.
10
-        </text>
11
-        <author>Jacob Appelbaum - Zëdhënës për Projektin TOR</author>
12
-      <link>/fellowship/index.html</link>
13
-      <copyright>Jacob Appelbaum's photo by Stephan Röhl (Heinrich-Böll-Stiftung) used with CC BY SA 2.0 license</copyright>
14
-    </campaign>
15
-</campaigns>

+ 0
- 7
tools/frontpage/90_15years.en.xml View File

@@ -1,7 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<campaigns>
3
-    <campaign running="no" id="box15years">
4
-        <text></text>
5
-        <link>/campaigns/15years</link>
6
-    </campaign>
7
-</campaigns>

Loading…
Cancel
Save