validator/httpd/cgi-bin check,1.647,1.648

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv13144/httpd/cgi-bin

Modified Files:
	check 
Log Message:
Patch to output badge/icon sample with RDFa when appropriate. 
Courtesy of Toby A Inkster.



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.647
retrieving revision 1.648
diff -u -d -r1.647 -r1.648
--- check	13 Feb 2009 21:04:15 -0000	1.647
+++ check	16 Feb 2009 14:11:42 -0000	1.648
@@ -1424,6 +1424,13 @@
       $T->param(have_alt_badge => TRUE);
       }
 
+      if (exists $CFG->{Types}->{$File->{DOCTYPE}}->{Badge}->{'RDFa'}) {
+        $T->param(have_badge_rdfa => TRUE);
+        $T->param(badge_rdfa => $CFG->{Types}->{$File->{DOCTYPE}}->{Badge}->{'RDFa'});
+      } else {
+        $T->param(have_badge_rdfa => FALSE);
+      }
+      
       $T->param(badge_alt  => $cfg->{Badge}->{Alt});
       $T->param(badge_h    => $cfg->{Badge}->{Height});
       $T->param(badge_w    => $cfg->{Badge}->{Width});

Received on Monday, 16 February 2009 14:11:54 UTC