[project-babel commit] r302 - in trunk/htdocs: core css/themes/Uranium

0 views
Skip to first unread message

codesite...@google.com

unread,
Nov 25, 2007, 4:07:51 AM11/25/07
to v2ex-...@googlegroups.com
Author: v2ex.livid
Date: Sun Nov 25 01:06:49 2007
New Revision: 302

Modified:
trunk/htdocs/core/V2EXCore.php
trunk/htdocs/core/ValidatorCore.php
trunk/htdocs/css/themes/Uranium/css_babel.css

Log:
[UI] Tweaks for Firefox 3 Beta

Modified: trunk/htdocs/core/V2EXCore.php
==============================================================================
--- trunk/htdocs/core/V2EXCore.php (original)
+++ trunk/htdocs/core/V2EXCore.php Sun Nov 25 01:06:49 2007
@@ -469,6 +469,10 @@
public function vxLink($feedURL = BABEL_FEED_URL) {
echo('<link href="/favicon.ico" rel="shortcut icon" />');
echo('<link rel="stylesheet" type="text/css" href="/css/themes/' .
BABEL_THEME . '/css_babel.css?' . date('YnjG', time()) . '" />');
+ $_SESSION['babel_ua'] = $this->Validator->vxGetUserAgent();
+ if ($_SESSION['babel_ua']['FF3_DETECTED']) {
+ echo('<style type="text/css">body, html { background: #000
url("/img/bg_city.jpg") no-repeat 50% 0; }</style>');
+ }
echo('<link rel="stylesheet" type="text/css" href="/css/themes/' .
BABEL_THEME . '/css_extra.css?' . date('YnjG', time()) . '" />');
echo('<link rel="stylesheet" type="text/css" href="/css/themes/' .
BABEL_THEME . '/css_zen.css" />');
//echo('<link rel="stylesheet" type="text/css"
href="/css/lightbox.css" media="screen" />');

Modified: trunk/htdocs/core/ValidatorCore.php
==============================================================================
--- trunk/htdocs/core/ValidatorCore.php (original)
+++ trunk/htdocs/core/ValidatorCore.php Sun Nov 25 01:06:49 2007
@@ -569,6 +569,7 @@
$o['PSP_DETECTED'] = 0;
$o['MSIE_DETECTED'] = 0;
$o['GECKO_DETECTED'] = 0;
+ $o['FF3_DETECTED'] = 0;
$o['KHTML_DETECTED'] = 0;
$o['OPERA_DETECTED'] = 0;
$o['IPHONE_DETECTED'] = 0;
@@ -818,6 +819,11 @@
$o['version'] = $z[6];
$o['DEVICE_LEVEL'] = 3;
$o['GECKO_DETECTED'] = 1;
+ if ($o['name'] == 'Firefox') {
+ if (preg_match('/^3\.0/', $o['version'])) {
+ $o['FF3_DETECTED'] = 1;
+ }
+ }
return $o;
}


Modified: trunk/htdocs/css/themes/Uranium/css_babel.css
==============================================================================
--- trunk/htdocs/css/themes/Uranium/css_babel.css (original)
+++ trunk/htdocs/css/themes/Uranium/css_babel.css Sun Nov 25 01:06:49 2007
@@ -16,7 +16,7 @@
margin: 0px;
padding: 0px;
font-family: "Lucida Grande", Tahoma, Verdana, arial, sans-serif, hei;
-background: #000 url("/img/bg_city.jpg") 50% 0 fixed no-repeat;
+background: #000 url("/img/bg_city.jpg") no-repeat fixed 50% 0;
}

div#v2ex {
@@ -230,6 +230,7 @@
div#menu {
float: right;
width: 200px;
+
}

div#main {

Reply all
Reply to author
Forward
0 new messages