svn: /web/php/trunk/include/ layout.inc

From: Date: Sun, 15 Jan 2012 00:10:02 +0000
Subject: svn: /web/php/trunk/include/ layout.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-12813@lists.php.net to get a copy of this message
rasmus Sun, 15 Jan 2012 00:10:02 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=322308 Log: Add a black SOPA bar to the rest of the site to join the blacked out front page Changed paths: U web/php/trunk/include/layout.inc Modified: web/php/trunk/include/layout.inc =================================================================== --- web/php/trunk/include/layout.inc 2012-01-15 00:08:25 UTC (rev 322307) +++ web/php/trunk/include/layout.inc 2012-01-15 00:10:02 UTC (rev 322308) @@ -199,6 +199,14 @@ } + $ts = time(); + // Hardcode 1pm Jan.18 UTC to 1am Jan.19 UTC time window + if($ts>=1295355600 && $ts<1295398800) { + $sopa_bar = <<<EOBAR +<div style="width:100%;height:50px;vertical-align:middle;text-align:center;background-color:#000;color:#ffffff; position:absolute;z-index:5555;top:8px;left:0px;background:#000000;"><p style="margin-top:15px;">Stop SOPA/PIPA <a href="http://americancensorship.org">[americancensorship.org]</a></p></div> +EOBAR; + } else $sopa_bar = ''; + print <<<END_HEADER <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> @@ -223,6 +231,7 @@ <body{$onload}> <div id="headnav"> + $sopa_bar <a href="/" rel="home"><img src="{$_SERVER['STATIC_ROOT']}/images/php_snow_2008.gif" alt="PHP" width="120" height="67" id="phplogo" /></a> <div id="headmenu">

« previous php.webmaster (#12813) next »