From d0776ad61b6e5d15a0c57d20609abcd150998cef Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sun, 19 Jan 2014 16:50:52 +0100 Subject: [PATCH] refactored vertical menu --- web/index.php | 74 ++++++++++++++++++++++++++++++++++++--------------- web/room.css | 17 +++++++++--- 2 files changed, 67 insertions(+), 24 deletions(-) diff --git a/web/index.php b/web/index.php index ac6ab9d..09ee387 100644 --- a/web/index.php +++ b/web/index.php @@ -478,9 +478,12 @@ function index_main(&$room, $transp_type, &$header_out, $addr, $get, $post, $coo - - - $brisk_donate = file_get_contents(FTOK_PATH."/brisk_donate.txt"); + /* NOTE: Brisk donate or donate fake if local */ + if (!$G_is_local) + $brisk_donate = file_get_contents(FTOK_PATH."/brisk_donate.txt"); + else + $brisk_donate = '
BRISK_DONATE
'; + if ($brisk_donate == FALSE) $brisk_donate = ""; @@ -855,13 +858,15 @@ supported by:
'.$altout_support_big.' -
-
-


+' . ( /* NOTE: here facebook or fake facebook */ +! $G_is_local ? +'
+' : '
FACEBOOK HERE
+' ) . '
+ %s %s -
-'; +'; /* Templates. */ if ($ACTION == 'login') { @@ -938,8 +943,27 @@ supported by:
//--> + + +
+ + + \n"); @@ -951,9 +975,6 @@ supported by:
if ($G_with_sidebanner) { printf("%s", $G_sidebanner); - if ($G_with_sidebanner2) { - printf("
"); - } } @@ -964,7 +985,7 @@ supported by:
?> - @@ -1113,17 +1134,31 @@ if ($is_login) { //--> + + +
+ + + \n"); - /* printf($brisk_vertical_menu, '



', - $brisk_donate); - printf($brisk_vertical_menu, '

', - $brisk_donate);*/ - printf($brisk_vertical_menu, '
', - $brisk_donate); + printf($brisk_vertical_menu, '', $brisk_donate); if ($G_with_sidebanner xor $G_with_sidebanner2) { @@ -1132,9 +1167,6 @@ if ($is_login) { if ($G_with_sidebanner) { printf("%s", $G_sidebanner); - if ($G_with_sidebanner2) { - printf("
"); - } } diff --git a/web/room.css b/web/room.css index 249a601..31998ce 100644 --- a/web/room.css +++ b/web/room.css @@ -67,7 +67,7 @@ div.topmenu { text-align: center; align: center; font-size: 85%; - padding:2px; + padding: 2px 2px 0 2px; } div.proflash { @@ -86,7 +86,7 @@ div.tables { div.bottom { position: relative; - top: -13px; + top: -20px; align: center: text-align: center; padding:2px; @@ -344,7 +344,18 @@ div.esco { text-decoration: none; } -.topbanner { +.sidebanner { + /* Top Right Bottom Left */ + margin: 4px auto 0px auto; + position: relative; + align: center; + text-align:center; + background-color: #f8f8f8; + padding: 4px; + border: 1px solid #000000; +} + +.topbanner { position: relative; align: center; text-align:center; -- 2.17.1