aboutsummaryrefslogtreecommitdiffstats
path: root/en/downloads/dl_twitter.php
diff options
context:
space:
mode:
Diffstat (limited to 'en/downloads/dl_twitter.php')
-rw-r--r--en/downloads/dl_twitter.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/en/downloads/dl_twitter.php b/en/downloads/dl_twitter.php
new file mode 100644
index 000000000..7061c3e08
--- /dev/null
+++ b/en/downloads/dl_twitter.php
@@ -0,0 +1,23 @@
+<?php
+
+/**
+*/
+function dl_twitter($locale)
+{
+ $langs = array(
+ 'en' => 'I just downloaded Mageia 1, a new Linux distribution! Try it out!',
+ 'fr' => 'Je viens de télécharger Mageia 1, nouvelle distribution Linux. À vous d\'essayer !'
+ );
+ $s = <<<S
+<a
+ href="http://twitter.com/share"
+ class="twitter-share-button"
+ data-url="http://mageia.org/downloads/"
+ data-text="{$langs[$locale]}"
+ data-count="horizontal"
+ data-via="mageia_org"
+ data-lang="{$locale}">Tweet</a>
+<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
+S;
+ return $s;
+} \ No newline at end of file