Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=homepage-ng.git;a=commitdiff;h=9664dffc0d1460050114d5fae73739f467211f3f
commit 9664dffc0d1460050114d5fae73739f467211f3f Author: Devil505 <devil505li...@gmail.com> Date: Sat Jun 4 09:00:31 2011 +0200 * added a new box on sidebar for social networks stuff diff --git a/frugalware/header.inc.php b/frugalware/header.inc.php index a08cea3..59a6b75 100644 --- a/frugalware/header.inc.php +++ b/frugalware/header.inc.php @@ -144,6 +144,14 @@ function genHeader($usegettext = true) { $data["paypal"] = $paypal; } else $data["paypal"] = ""; + + // Social Networks + if (file_exists('socialnetworks.inc.html')) { + $socialnetworks = "<p>" . gettext("Support us on social networks.") . "</p>"; + $socialnetworks .= file_get_contents('socialnetworks.inc.html'); + $data["socialnetworks"] = $socialnetworks; + } else + $data["socialnetworks"] = ""; // Give the array back. return $data; diff --git a/frugalware/header.php b/frugalware/header.php index dd0457f..5d58f10 100644 --- a/frugalware/header.php +++ b/frugalware/header.php @@ -84,6 +84,7 @@ else if($_SERVER['PHP_SELF']=="/packages.php") if ($data['paypal'] != '') fwsidebox(gettext("Donations"), $data['paypal']); fwsidebox(gettext("Languages"), $langcontent); +fwsidebox(gettext("Social Networks"), $data['socialnetworks']); fwsidebox(gettext("Recent updates"), $data['packages']); fwsidebox(gettext("Releases"), $data['releases']); fwsidebox(gettext("Information"), $validcontent); diff --git a/frugalware/socialnetworks.inc.html b/frugalware/socialnetworks.inc.html new file mode 100644 index 0000000..8000ffe --- /dev/null +++ b/frugalware/socialnetworks.inc.html @@ -0,0 +1 @@ +<g:plusone size="tall"></g:plusone> _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git