svn: /web/doc/trunk/ templates/all/www/shared/nav_languages.tpl.php www/style/site.css

[email protected] (anatoly techtonik)
Newsgroups php.doc.web
Message-ID <[email protected]>
techtonik                                Thu, 10 Sep 2009 09:59:43 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=288227

Log:
+ white background for active subsite flag

Changed paths:
    U   web/doc/trunk/templates/all/www/shared/nav_languages.tpl.php
    U   web/doc/trunk/www/style/site.css

Modified: web/doc/trunk/templates/all/www/shared/nav_languages.tpl.php
===================================================================
--- web/doc/trunk/templates/all/www/shared/nav_languages.tpl.php	2009-09-10 08:06:24 UTC (rev 288226)
+++ web/doc/trunk/templates/all/www/shared/nav_languages.tpl.php	2009-09-10 09:59:43 UTC (rev 288227)
@@ -1,7 +1,15 @@
 <?php
+echo "&nbsp;"; // required for proper positioning of the active background
 foreach ($languages as $code => $name) {
+
+    if (LANGC == $code) {
+        echo '<span class="active"></span><a class="active" ';
+    } else {
+        echo '<a ';
+    }
+
     if ($code == 'all') {
-        echo '<a href="' . get_insite_address(NULL, 'all') . '">&docweb.common.all;</a> '."\n";
+        echo 'href="' . get_insite_address(NULL, 'all') . '">&docweb.common.all;</a> '."\n";
     }
     else {

@@ -12,7 +20,8 @@
         $flag_code = isset($alt_flags[$code]) ? $alt_flags[$code] : $code;

         // @@@ TODO: translate/entity names
-        echo '<a href="' . get_insite_address(NULL, $code) . '" title="' . $name . '" ><img src="/images/flags/' . $flag_code . '.png" alt="' . $name . '" /></a>'."\n";
+
+        echo 'href="' . get_insite_address(NULL, $code) . '" title="' . $name . '" ><img src="/images/flags/' . $flag_code . '.png" alt="' . $name . '" /></a>'."\n";
     }
 }
 ?>
\ No newline at end of file

Modified: web/doc/trunk/www/style/site.css
===================================================================
--- web/doc/trunk/www/style/site.css	2009-09-10 08:06:24 UTC (rev 288226)
+++ web/doc/trunk/www/style/site.css	2009-09-10 09:59:43 UTC (rev 288227)
@@ -17,6 +17,32 @@
 	padding: 0px;
 	font-size: 1.5em;
 }
+#langs {
+	background-color: #ffff99;
+	border-bottom: 1px solid #cdcdcd;
+	text-align: right;
+	padding: 2px 18px 0px;
+        height:18px;
+}
+#langs img {
+	vertical-align: middle;
+}
+#langs a.active {
+        position:relative;
+        z-index:2;
+}
+#langs span.active {
+	position:absolute;
+        z-index:0;
+        width:17px;
+        height:19px;
+        margin-left:-2px;
+        margin-top:-1px;
+	background-color: #fff;
+	border:1px solid #000;
+        border-bottom:0px;
+}
+
 h2 {
 	font-size: 1.3em;
 }
@@ -111,16 +137,6 @@
 	margin: 2px;
 }

-#langs {
-	background-color: #ffff99;
-	border-bottom: 1px solid #cdcdcd;
-	text-align: right;
-	padding: 0.2em 1.5em;
-}
-#langs img {
-	vertical-align: middle;
-}
-
 th.headrow {
     text-align: left;
     border-bottom: 1px solid #000;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.