From: Jan Schneider Date: Sat, 26 Jun 2010 00:00:44 +0000 (+0200) Subject: Remove frameset. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=45d58456f24b121efb9d4082306dbe93076b7172;p=horde.git Remove frameset. This is still a bit hackish, and it probably has a few rough edges and missing bits, but I want to get the CSS right first. --- diff --git a/ansel/templates/menu.inc b/ansel/templates/menu.inc index 5e211513d..900134078 100644 --- a/ansel/templates/menu.inc +++ b/ansel/templates/menu.inc @@ -1,6 +1,7 @@ + notify(array('listeners' => 'status')); diff --git a/beatnik/templates/menu.inc b/beatnik/templates/menu.inc index e5fa42162..56455b439 100644 --- a/beatnik/templates/menu.inc +++ b/beatnik/templates/menu.inc @@ -37,4 +37,5 @@ $menu_view = $prefs->getValue('menu_view'); + notify(array('listeners' => 'status')) ?> diff --git a/chora/templates/menu.inc b/chora/templates/menu.inc index 4b6e3a3d0..4224b9f67 100644 --- a/chora/templates/menu.inc +++ b/chora/templates/menu.inc @@ -4,4 +4,5 @@ render() ?> + notify(array('listeners' => 'status')) ?> diff --git a/crumb/templates/menu.inc b/crumb/templates/menu.inc index 583eeba4d..a77bfd53f 100644 --- a/crumb/templates/menu.inc +++ b/crumb/templates/menu.inc @@ -1,4 +1,5 @@ + notify(array('listeners' => 'status')) ?> diff --git a/fima/templates/menu.inc b/fima/templates/menu.inc index 0eb6b2e40..b6395f4cd 100644 --- a/fima/templates/menu.inc +++ b/fima/templates/menu.inc @@ -37,4 +37,5 @@ function ledgerSubmit(clear) } } + notify(array('listeners' => 'status')) ?> diff --git a/folks/templates/menu.inc b/folks/templates/menu.inc index ab8185ff3..ddb1d82da 100644 --- a/folks/templates/menu.inc +++ b/folks/templates/menu.inc @@ -1,4 +1,5 @@ + notify(array('listeners' => 'status')) ?> diff --git a/gollem/lib/Gollem.php b/gollem/lib/Gollem.php index 325207b9d..ce7d1f4a7 100644 --- a/gollem/lib/Gollem.php +++ b/gollem/lib/Gollem.php @@ -714,6 +714,7 @@ class Gollem $t->set('menu_string', Gollem::getMenu()->render()); echo $t->fetch(GOLLEM_TEMPLATES . '/menu.html'); + require HORDE_BASE . '/services/portal/sidebar.php'; } /** diff --git a/hermes/templates/menu.inc b/hermes/templates/menu.inc index 1864954df..64e011b05 100644 --- a/hermes/templates/menu.inc +++ b/hermes/templates/menu.inc @@ -1,4 +1,5 @@ + notify(array('listeners' => 'status')) ?> diff --git a/horde/index.php b/horde/index.php index a274468a8..fb17aefa3 100644 --- a/horde/index.php +++ b/horde/index.php @@ -76,20 +76,5 @@ if (!$main_page) { } } -/* Sidebar display: only load sidebar if we are coming from login page and - * 'horde_login_nosidebar' is set and not true; if this page is loaded, - * there is no authenticated user, and conf->menu->always is true; or if - * 'force_sidebar' GET parameter is set. */ -if ((Horde_Util::getFormData('force_sidebar') || - !Horde_Util::nonInputVar('horde_login_nosidebar', $registry->getAuth())) && - ($conf['menu']['always'] || - ($registry->getAuth() && $prefs->getValue('show_sidebar')))) { - $scrollbar = $browser->hasQuirk('scrollbar_in_way') ? 'yes' : 'auto'; - require HORDE_TEMPLATES . '/index/frames_index.inc'; -} else { - /* We always need to do a URL redirect here rather than directly - * including the file. This is to ensure that the next page has a chance - * to init a full Horde environment before anything else is done in the - * session (needed for things like Horde LoginTasks to be run). */ - header('Location: ' . $main_page); -} +header('Location: ' . $main_page); +exit; diff --git a/horde/services/portal/index.php b/horde/services/portal/index.php index 2bfe4415b..035873701 100644 --- a/horde/services/portal/index.php +++ b/horde/services/portal/index.php @@ -11,13 +11,6 @@ require_once dirname(__FILE__) . '/../../lib/Application.php'; Horde_Registry::appInit('horde'); -// Get full name. -$identity = $injector->getInstance('Horde_Prefs_Identity')->getIdentity(); -$fullname = $identity->getValue('fullname'); -if (empty($fullname)) { - $fullname = $registry->convertUsername($registry->getAuth(), false); -} - // Get refresh interval. if (($r_time = $prefs->getValue('summary_refresh_time')) && !$browser->hasFeature('xmlhttpreq')) { @@ -71,7 +64,7 @@ $title = _("My Portal"); require HORDE_TEMPLATES . '/common-header.inc'; require HORDE_TEMPLATES . '/menu/menu.inc'; echo ' + notify(array('listeners' => 'status')); diff --git a/horde/templates/common-footer.inc b/horde/templates/common-footer.inc index 79d887033..406f64378 100644 --- a/horde/templates/common-footer.inc +++ b/horde/templates/common-footer.inc @@ -1,3 +1,6 @@ + + + isMobile()): ?> -notify(array('listeners' => array('javascript'))) ?> - - - + diff --git a/horde/themes/hordeweb/screen.css b/horde/themes/hordeweb/screen.css index 3cdd6eb36..a528329a3 100644 --- a/horde/themes/hordeweb/screen.css +++ b/horde/themes/hordeweb/screen.css @@ -59,7 +59,6 @@ a:hover { text-decoration: underline; } #pageControls { - top: 53px !important; right: 8px !important; background: #063 !important; border: none !important; diff --git a/horde/themes/rtl.css b/horde/themes/rtl.css index 3c81591b4..923c58fb9 100644 --- a/horde/themes/rtl.css +++ b/horde/themes/rtl.css @@ -78,6 +78,9 @@ option { } /* Sidebar styles. */ +.sidebar { + float: right; +} #sidebarPanel { -moz-border-radius-bottomright: 0; -moz-border-radius-bottomleft: 15px; diff --git a/horde/themes/screen.css b/horde/themes/screen.css index 8cde15bab..82523f489 100644 --- a/horde/themes/screen.css +++ b/horde/themes/screen.css @@ -393,7 +393,6 @@ div.nicetitle { #menu { overflow: hidden; min-height: 50px; - margin-bottom: 8px; padding-right: 8px; } #menu ul { @@ -439,8 +438,8 @@ div.nicetitle { } /* Sidebar styles. */ -.sidebar #menu { - margin: 0; +.sidebar { + float: left; } #sidebarPanel { -moz-border-radius-bottomright: 15px; @@ -469,6 +468,14 @@ div.nicetitle { color: #000; } +/* Main body. */ +.body { + position: absolute; + left: 0; + right: 0; + margin-top: 8px; +} + /* Pager. */ .pager { text-align: center; diff --git a/imp/lib/IMP.php b/imp/lib/IMP.php index bc9439e39..fd23469b8 100644 --- a/imp/lib/IMP.php +++ b/imp/lib/IMP.php @@ -600,6 +600,7 @@ class IMP { self::prepareMenu(); echo self::$_menuTemplate->fetch(IMP_TEMPLATES . '/imp/menu/menu.html'); + require HORDE_BASE . '/services/portal/sidebar.php'; } /** diff --git a/ingo/lib/Ingo.php b/ingo/lib/Ingo.php index 543a60999..6fbab1679 100644 --- a/ingo/lib/Ingo.php +++ b/ingo/lib/Ingo.php @@ -489,6 +489,7 @@ class Ingo { self::prepareMenu(); echo self::$_menuTemplate->fetch(INGO_TEMPLATES . '/menu/menu.html'); + require HORDE_BASE . '/services/portal/sidebar.php'; } /** diff --git a/kastalia/templates/menu.inc b/kastalia/templates/menu.inc index 8ae1df709..1b4437e14 100755 --- a/kastalia/templates/menu.inc +++ b/kastalia/templates/menu.inc @@ -1,4 +1,5 @@ + notify(array('listeners' => 'status')) ?> diff --git a/kronolith/templates/menu.inc b/kronolith/templates/menu.inc index 8124cb93b..1483c9e53 100644 --- a/kronolith/templates/menu.inc +++ b/kronolith/templates/menu.inc @@ -1,4 +1,5 @@ + notify(array('listeners' => 'status')) ?> diff --git a/kronolith/themes/screen.css b/kronolith/themes/screen.css index abffd337b..b5f44e377 100644 --- a/kronolith/themes/screen.css +++ b/kronolith/themes/screen.css @@ -266,7 +266,7 @@ body.rightPanel ul { #pageControls { position: absolute; - top: 52px; + top: -8px; right: 0; background: #eee; border: 1px solid #ccc; diff --git a/kronolith/themes/silver/screen.css b/kronolith/themes/silver/screen.css index 0af13be4b..a2892803c 100644 --- a/kronolith/themes/silver/screen.css +++ b/kronolith/themes/silver/screen.css @@ -5,7 +5,7 @@ body #sbarHide { background-image: url("graphics/minus.png"); } #pageControls { - top: 49px; + top: -9px; background: #d7d7d7; border-color: #999; border-width: 0 0 1px 1px; diff --git a/luxor/templates/menu.inc b/luxor/templates/menu.inc index 7cad233b0..c9df7890c 100644 --- a/luxor/templates/menu.inc +++ b/luxor/templates/menu.inc @@ -17,4 +17,5 @@ function jump() + notify(array('listeners' => 'status')) ?> diff --git a/mnemo/templates/menu.inc b/mnemo/templates/menu.inc index 8d462fd75..49654b75b 100644 --- a/mnemo/templates/menu.inc +++ b/mnemo/templates/menu.inc @@ -1,3 +1,4 @@ + diff --git a/mnemo/themes/screen.css b/mnemo/themes/screen.css index 1d71bb9c5..bdab76d41 100644 --- a/mnemo/themes/screen.css +++ b/mnemo/themes/screen.css @@ -108,7 +108,7 @@ body.rightPanel ul { #pageControls { position: absolute; - top: 52px; + top: -8px; right: 0; background: #eee; border: 1px solid #ccc; diff --git a/mnemo/themes/silver/screen.css b/mnemo/themes/silver/screen.css index c212168e1..3f6fb3293 100644 --- a/mnemo/themes/silver/screen.css +++ b/mnemo/themes/silver/screen.css @@ -15,7 +15,7 @@ body #sbarHide { background-image: url("graphics/minus.png"); } #pageControls { - top: 49px; + top: -9px; background: #d7d7d7; border-color: #999; border-width: 0 0 1px 1px; diff --git a/nag/templates/menu.inc b/nag/templates/menu.inc index 344791a21..0c6a24b3a 100644 --- a/nag/templates/menu.inc +++ b/nag/templates/menu.inc @@ -1,4 +1,5 @@ + render() ?> + notify(array('listeners' => 'status')) ?> diff --git a/operator/templates/menu.inc b/operator/templates/menu.inc index c7b0898bc..d3c19df67 100644 --- a/operator/templates/menu.inc +++ b/operator/templates/menu.inc @@ -1,4 +1,5 @@ + notify(array('listeners' => 'status')) ?> diff --git a/pastie/templates/menu.inc b/pastie/templates/menu.inc index e1c0d660f..a3881937f 100644 --- a/pastie/templates/menu.inc +++ b/pastie/templates/menu.inc @@ -1,4 +1,5 @@ + notify(array('listeners' => 'status')) ?> diff --git a/shout/templates/menu.inc b/shout/templates/menu.inc index 5564d095c..e5d54a9cc 100644 --- a/shout/templates/menu.inc +++ b/shout/templates/menu.inc @@ -55,3 +55,4 @@ function accountSubmit(clear) + diff --git a/skeleton/templates/menu.inc b/skeleton/templates/menu.inc index 31a5993ab..c3ce3dfd5 100644 --- a/skeleton/templates/menu.inc +++ b/skeleton/templates/menu.inc @@ -1,4 +1,5 @@ + notify(array('listeners' => 'status')) ?> diff --git a/skoli/templates/menu.inc b/skoli/templates/menu.inc index 2996974ad..c1174406e 100644 --- a/skoli/templates/menu.inc +++ b/skoli/templates/menu.inc @@ -1,4 +1,5 @@ + notify(array('listeners' => 'status')) ?> diff --git a/skoli/themes/screen.css b/skoli/themes/screen.css index 995cf683a..283e36367 100644 --- a/skoli/themes/screen.css +++ b/skoli/themes/screen.css @@ -96,7 +96,7 @@ body.rightPanel ul { #pageControls { position: absolute; - top: 52px; + top: -8px; right: 0; background: #eee; border: 1px solid #ccc; diff --git a/trean/templates/menu.inc b/trean/templates/menu.inc index 5bf1ba821..e21f50a58 100644 --- a/trean/templates/menu.inc +++ b/trean/templates/menu.inc @@ -1,4 +1,5 @@ + notify(array('listeners' => 'status')) ?> diff --git a/turba/templates/menu.inc b/turba/templates/menu.inc index afc2cad17..a9a510a5d 100644 --- a/turba/templates/menu.inc +++ b/turba/templates/menu.inc @@ -13,4 +13,5 @@ + notify(array('listeners' => 'status')) ?> diff --git a/whups/templates/menu.inc b/whups/templates/menu.inc index 52e3a444f..8bcef74aa 100644 --- a/whups/templates/menu.inc +++ b/whups/templates/menu.inc @@ -8,4 +8,6 @@
-notify(array('listeners' => 'status')) ?> + + +notify(array('listeners' => 'status')) ?> diff --git a/wicked/templates/menu.inc b/wicked/templates/menu.inc index 263b8362e..bf5ca94cd 100644 --- a/wicked/templates/menu.inc +++ b/wicked/templates/menu.inc @@ -20,4 +20,5 @@ function jump()
+ notify(array('listeners' => 'status'));