Remove completely outdated documentation
continuous-integration/drone/push Build is passing Details

pull/1358/head
Reinhard Müller 3 years ago
parent 6b89427bbe
commit eb7811876c

@ -1,92 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<html>
<version>1</version>
<head>
<title>Documentation - Campaign banners on the frontpage</title>
</head>
<body class="article" microformats="h-entry">
<p id="category"><a href="/contribute/web/">Webmastering</a></p>
<h1 class="p-name">Add and select campaign banners for the frontpage</h1>
<div class="e-content">
<p id="introduction">
We display campaign banners on the frontpage, to promote current
campaigns or a donation campaign for FSFE. However, these banners are
supposed to be changed depending on the timely context. For instance,
its usual to add the banner for Document Freedom Day in January.
</p>
<h2>Add the campaign information for translators</h2>
<p>
It should be easy for translators to update the campaign information. All this information can be found in <code>tools/texts-**.xml</code> where “**” is the language code used by FSFE. Please make sure that an English version is always provided. Then find the information between <code>&#60;campaigns&#62;&#60;/campaigns&#62;</code>. If you want to add a new campaign, add this:
</p>
<pre><code>
&#60;campaign id="new-campaign-id"&#62;
&#60;comment&#62;You can add a comment in here like: please enable between January and April&#60;/comment&#62;
&#60;photo&#62;This will be a picture, like the campaigns logo, or a persons portrait if the picture goes with a quote for instance. Be careful, this is not the background image used for the box, this is done with CSS&#60;/photo&#62;
&#60;text&#62;This text will be displayed! Make it not too long!&#60;/text&#62;
&#60;link&#62;when-the-user-clicks-go-to-this-page&#60;/link&#62;
&#60;/campaign&#62;
</code></pre>
<p>
Probably none of these fields are mandatory (should be checked) but at least <code>text</code> (or <code>photo</code>) and <code>link</code> should be provided.
</p>
<h2>Select which banner to display</h2>
<p>
For banners showing up on the <a href="/">frontpage of fsfe.org</a>, you should set <code>running="yes"</code> in the campaign file. The <code>index.xsl</code> loops around and includes all campaigns set as running.
</p>
<h2>Style the campaign banner</h2>
<p>
Dont forget to style the campaign banner any way you like. You can take inspiration from other banners styles. Find it in <code>look/fsfe.less</code>. For a basic style, add:
</p>
<pre><code>
#new-campaign-id {
.campaign-box-center;
background: url('/graphics/choose-a-picture.jpg') center 33% no-repeat #666;
}
</code></pre>
<p>
If you need help to edit the style of fsfe.org, see <a href="css.html">How to edit the CSS with LESS</a>.
</p>
</div>
<!--/e-content-->
</body>
<sidebar promo="about-fsfe">
<div id="related-content">
<h3>Other howtos:</h3>
<ul>
<li>
<a href="/contribute/web/tagging.html">Use tags and article metadata, implement a country page</a>
</li>
<li>
<a href="/contribute/template.html">A template article, to use the new webdesign</a>
</li>
</ul>
</div>
</sidebar>
<date>
<original content="2014-01-24"/>
</date>
<author id="roy" />
<timestamp>$Date: 2013-09-26 15:32:30 +0200 (Thu 26 Sep 2013) $ $Author: paul $</timestamp>
</html>
<!--
Local Variables: ***
mode: xml ***
End: ***
-->

@ -97,9 +97,6 @@
<a href="/contribute/web/tagging.html">Use tags and article metadata, implement a country page</a>
</li>
<li>
<a href="/contribute/web/campaigns-frontpage.html">Add and select campaign banners for the frontpage</a>
</li>
<li>
<a href="/contribute/template.html">A template article, to use the new webdesign</a>
</li>
</ul>

@ -127,9 +127,6 @@
<li>
<a href="/contribute/template.html">A template article, to use the new webdesign</a>
</li>
<li>
<a href="/contribute/campaigns-frontpage.html">Add and select campaign banners for the frontpage</a>
</li>
</ul>
</div>
</sidebar>

@ -137,9 +137,6 @@
<a href="/contribute/web/css.html">Edit the CSS with LESS</a>
</li>
<li>
<a href="/contribute/web/campaigns-frontpage.html">Add and select campaign banners for the frontpage</a>
</li>
<li>
<a href="/contribute/template.html">A template article, to use the new webdesign</a>
</li>
</ul>

@ -142,9 +142,6 @@
<a href="/contribute/web/css.html">Éditer le CSS avec LESS</a>
</li>
<li>
<a href="/contribute/web/campaigns-frontpage.html">Ajouter et sélectionner des bannières de campagne pour la page d'accueil</a>
</li>
<li>
<a href="/contribute/template.html">Un exemple d'article, pour utilise de nouveaux designs web</a>
</li>
</ul>

@ -130,9 +130,6 @@ zulke pagina's zijn de <a href="/">startpagina</a>, de
<a href="/contribute/web/css.html">Bewerk de CSS met LESS</a>
</li>
<li>
<a href="/contribute/web/campaigns-frontpage.html">Voeg campagnebanners toe en selecteer ze voor de voorpagina</a>
</li>
<li>
<a href="/contribute/template.html">Een sjabloonartikel om te gebruiken met het nieuwe webdesign</a>
</li>
</ul>

@ -126,9 +126,6 @@
<a href="/contribute/web/css.html">Përpunoni CSS me LESS</a>
</li>
<li>
<a href="/contribute/web/campaigns-frontpage.html">Shtoni dhe përzgjidhni banderola fushatash për ballinën</a>
</li>
<li>
<a href="/contribute/template.html">Një gjedhe artikulli, për përdorimin e dizajnit të ri</a>
</li>
</ul>

Loading…
Cancel
Save