Browse files

Experimental: add social networks

  • Loading branch information...
1 parent b34e05e commit 7537d69b473b3864defc96d95f493ee6b867cde3 @szabgab szabgab committed Aug 27, 2012
View
8 bin/xml
@@ -129,6 +129,10 @@ foreach my $g ( $doc->findnodes('//group') ) {
my $longitude = $g->findvalue('location/longitude/text()');
my $latitude = $g->findvalue('location/latitude/text()');
my $web = $g->findvalue('web/text()');
+ my $linkedin = $g->findvalue('linkedin/text()');
+ my $googleplus = $g->findvalue('googleplus/text()');
+ my $facebook = $g->findvalue('facebook/text()');
+ my $twitter = $g->findvalue('twitter/text()');
my @tsar;
foreach my $t ( $g->findnodes('tsar') ) {
@@ -195,6 +199,10 @@ foreach my $g ( $doc->findnodes('//group') ) {
status => $status,
web => $web,
mailing_list => { name => $mailing_lists_name, },
+ linkedin => $linkedin,
+ googleplus => $googleplus,
+ facebook => $facebook,
+ twitter => $twitter,
};
$allgroups{$name} = $group;
View
3 perl_mongers.xml
@@ -4480,6 +4480,9 @@ perl_mongers PUBLIC "-//Perl Mongers//DTD for Perl user groups//EN"
</email>
</tsar>
<web>http://perl.org.il/</web>
+ <linkedin>http://www.linkedin.com/groups?gid=684</linkedin>
+ <facebook>http://www.facebook.com/Israeli.Perl.Mongers</facebook>
+ <googleplus>https://plus.google.com/105209189901369984525</googleplus>
<date type="inception">19990119</date>
</group>
<group id="198" status="active">
View
17 src/groups/group.html
@@ -55,6 +55,23 @@
[% END %]
-->
+[% IF linkedin %]
+ <a href="[% linkedin %]"><img src="/images/linkedin_32.png" alt="LinkedIN of [% name %]" /></a>
+[% END %]
+
+[% IF googleplus %]
+ <a href="[% googleplus %]"><img src="/images/gplus-32.png" alt="Google Plus page of [% name %]"/></a>
+[% END %]
+
+[% IF facebook %]
+ <a href="[% facebook %]"><img src="/images/facebook32.png" alt="Facebook page of [% name %]"/></a>
+[% END %]
+
+[% IF twitter %]
+ <a href="[% twitter %]"><img src="/images/twitter32.png" alt="Twitter of [% name %]"/></a>
+[% END %]
+
+
<p>Is this group's latitude/longitude data wrong or missing? Please contact the
group leader (above), and they can submit new coordinates to us.</p>
View
BIN src/images/facebook32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN src/images/gplus-32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN src/images/linkedin_32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN src/images/twitter32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7537d69

Please sign in to comment.