diff options
Diffstat (limited to 'ur/downloads/dl_twitter.php')
-rw-r--r-- | ur/downloads/dl_twitter.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ur/downloads/dl_twitter.php b/ur/downloads/dl_twitter.php new file mode 100644 index 000000000..f590245e2 --- /dev/null +++ b/ur/downloads/dl_twitter.php @@ -0,0 +1,28 @@ +<?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 !', + 'de' => 'Habe gerade Mageia 1, eine neue Linuxdistribution heruntergeladen, Versuche es selbst!', + 'pt' => 'Acabei de transferir a Mageia 1, uma nova distribuição Linux! Experimente-a!' + ); + if (!array_key_exists($locale, $langs)) + $locale = 'en'; + + $s = <<<S +<a + href="http://twitter.com/share" + class="twitter-share-button" + data-url="http://mageia.org" + 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; +} |