From ad745e050da855d326d1b6bc3df8032c05574392 Mon Sep 17 00:00:00 2001 From: brettp Date: Sat, 20 Mar 2010 20:21:44 +0000 Subject: Moved toolbar dropdown menu to main nav. Added CSS for main nav dropdown. Emptied navigation/topbar_tools view. git-svn-id: http://code.elgg.org/elgg/trunk@5455 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/admin/menu_items.php | 13 +-- views/default/css.php | 136 ++++++++++++++++------------ views/default/navigation/site_nav.php | 71 +++++++++++++-- views/default/navigation/topbar_tools.php | 34 +------ views/default/page_elements/elgg_topbar.php | 15 +-- 5 files changed, 152 insertions(+), 117 deletions(-) (limited to 'views') diff --git a/views/default/admin/menu_items.php b/views/default/admin/menu_items.php index 68f3688d8..c9bdc5bca 100644 --- a/views/default/admin/menu_items.php +++ b/views/default/admin/menu_items.php @@ -27,7 +27,7 @@ echo elgg_view('output/longtext', array('value' => elgg_echo("admin:menu_items:d $form_body = ''; // @todo Could probably make this number configurable -for ($i=0; $i<7; $i++) { +for ($i=0; $i<6; $i++) { if (array_key_exists($i, $featured_urls)) { $current_value = $featured_urls[$i]->value->url; } else { @@ -40,17 +40,6 @@ for ($i=0; $i<7; $i++) { 'value' => $current_value )); } -$form_body .= '

'; -$form_body .= ''; -$form_body .= elgg_view('input/pulldown', array( - 'internalname' => 'menu_items_hide_toolbar_entries', - 'internalid' => 'menu_items_hide_toolbar_entries', - 'value' => get_config('menu_items_hide_toolbar_entries'), - 'options_values' => array( - 'yes' => elgg_echo('option:yes'), - 'no' => elgg_echo('option:no') -))); $form_body .= '

'; $form_body .= elgg_view('input/submit', array('value' => elgg_echo('save'))); diff --git a/views/default/css.php b/views/default/css.php index 4aca7d865..2e000d08a 100644 --- a/views/default/css.php +++ b/views/default/css.php @@ -27,10 +27,10 @@ GENERAL FORM ELEMENTS default styles for all elgg input/form elements FRIENDS PICKER ADMIN AREA - + */ -/* Colors: +/* Colors: #4690D6 - elgg light blue #0054A7 - elgg dark blue @@ -153,7 +153,7 @@ pre, code { font-size:12px; background:#EBF5FF; overflow:auto; - + overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */ white-space: pre-wrap; /* css-3 */ white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ @@ -175,24 +175,24 @@ blockquote { line-height:1.3em; background:#EBF5FF; border:none; - -webkit-border-radius: 4px; + -webkit-border-radius: 4px; -moz-border-radius: 4px; } /* *************************************** - GENERIC SELECTORS +GENERIC SELECTORS *************************************** */ h2 { border-bottom:1px solid #CCCCCC; padding-bottom:5px; } .clearfloat:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; } .link { cursor:pointer; @@ -207,7 +207,7 @@ h2 { display:none; } .radius8 { - -webkit-border-radius: 8px; + -webkit-border-radius: 8px; -moz-border-radius: 8px; } .margin_none { @@ -256,7 +256,7 @@ h2 { } /* *************************************** - PAGE LAYOUT - MAIN BLOCKS POSITIONING +PAGE LAYOUT - MAIN BLOCKS POSITIONING *************************************** */ #elgg_topbar { background:#333333 url(_graphics/toptoolbar_background.gif) repeat-x top left; @@ -269,7 +269,7 @@ h2 { z-index: 9000; } #elgg_header { - overflow: hidden; + x-overflow: hidden; position: relative; width: 100%; height:90px; @@ -293,10 +293,10 @@ h2 { #elgg_main_nav { z-index: 7000; position: absolute; - height:23px; - bottom:0; - left:0; - width:auto; + height:23px; + bottom:0; + left:0; + width:auto; } #elgg_content { /* wraps sidebar and page contents */ width:990px; @@ -341,7 +341,7 @@ h2 { /* *************************************** - ELGG TOPBAR +ELGG TOPBAR *************************************** */ #elgg_topbar_contents { float:left; @@ -362,7 +362,7 @@ h2 { } #elgg_topbar_contents a:hover { color:#71cbff; - text-decoration: none; + text-decoration: none; } #elgg_topbar_contents a img.user_mini_avatar { border:1px solid #eeeeee; @@ -375,16 +375,16 @@ h2 { margin-top: -1px; } #elgg_topbar_contents .log_out { - float:right; + float:right; } #elgg_topbar_contents .log_out a { display: inline; text-align: right; margin-right:10px; - color:#999999; + color:#999999; } #elgg_topbar_contents .log_out a:hover { - color:#71cbff; + color:#71cbff; } #elgg_topbar_contents a.settings { background:transparent url(_graphics/topbar_icons.png) no-repeat left -41px; @@ -438,7 +438,7 @@ h2 { background:transparent url(_graphics/topbar_icons.png) no-repeat 3px 1px; padding-left:24px !important; } -#elgg_topbar_contents ul.tools_menu li { +#elgg_topbar_contents ul.tools_menu li { display: block; list-style: none; margin: 0; @@ -458,7 +458,7 @@ h2 { } #elgg_topbar_contents ul.tools_menu ul li { float: none; -} +} /* elgg toolbar drop-down menu style */ #elgg_topbar_contents ul.tools_menu ul { width: 150px; @@ -500,7 +500,7 @@ h2 { /* *************************************** - HEADER CONTENTS +HEADER CONTENTS *************************************** */ #elgg_header_contents h1 a { font-size: 2em; @@ -513,7 +513,7 @@ h2 { text-shadow:1px 2px 4px #333333; } #elgg_header_contents #elgg_search input.search_input { - -webkit-border-radius: 10px; + -webkit-border-radius: 10px; -moz-border-radius: 10px; background-color:transparent; border:1px solid #71b9f7; @@ -540,7 +540,7 @@ h2 { background-position: 3px -37px; } #elgg_header_contents #elgg_search input.search_submit_button { - display:none; + display:none; } @@ -597,7 +597,31 @@ h2 { -webkit-border-top-right-radius:4px; margin-top:2px; } +.navigation_more { + overflow:hidden; +} + +.navigation_more:hover{ + overflow:visible; +} +li.navigation_more ul { + z-index: 1; + border: 1px solid #999; + border-top: 0; + -moz-border-radius-bottomleft:4px; + -moz-border-radius-bottomright:4px; + -webkit-border-bottom-left-radius:4px; + -webkit-border-bottom-right-radius:4px; +} +li.navigation_more ul li { + float:none; + background-color:#4690D6; +} +li.navigation_more ul li:hover { + background:white; + color:#43575e; +} /* *************************************** FOOTER CONTENTS @@ -605,7 +629,7 @@ h2 { #elgg_footer_contents, #elgg_footer_contents a, #elgg_footer_contents p { - color:#999999; + color:#999999; } #elgg_footer_contents a:hover { color:#666666; @@ -619,15 +643,15 @@ h2 { /* *************************************** - SYSTEM MESSAGES +SYSTEM MESSAGES *************************************** */ #elgg_system_message { - background-color:black; - color:white; - font-weight: bold; + background-color:black; + color:white; + font-weight: bold; display:block; padding:3px 10px; - z-index: 9600; + z-index: 9600; position:fixed; right:20px; margin-top:10px; @@ -638,7 +662,7 @@ h2 { -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45); /* FF v3.5+ */ } #elgg_system_message.error { - background-color:red; + background-color:red; } #elgg_system_message p { margin:0; @@ -681,7 +705,7 @@ h2 { } .submenu li a { display:block; - -webkit-border-radius: 8px; + -webkit-border-radius: 8px; -moz-border-radius: 8px; background-color:white; margin:0 0 3px 0; @@ -714,7 +738,7 @@ h2 { margin:0 6px 0 0; padding:0px 4px; cursor: pointer; - -webkit-border-radius: 4px; + -webkit-border-radius: 4px; -moz-border-radius: 4px; } .pagination .pagination_number:hover { @@ -733,7 +757,7 @@ h2 { font-weight: normal; margin:0 6px 0 0; padding:0px 4px; - -webkit-border-radius: 4px; + -webkit-border-radius: 4px; -moz-border-radius: 4px; } .pagination .pagination_previous, @@ -748,7 +772,7 @@ h2 { margin:0 6px 0 0; padding:0px 4px; cursor: pointer; - -webkit-border-radius: 4px; + -webkit-border-radius: 4px; -moz-border-radius: 4px; } .pagination .pagination_previous:hover, @@ -770,7 +794,7 @@ h2 { margin:0 6px 0 0; padding:0px 4px; cursor: pointer; - -webkit-border-radius: 4px; + -webkit-border-radius: 4px; -moz-border-radius: 4px; } @@ -873,11 +897,11 @@ h2 { border-bottom:1px solid #CCCCCC; } #content_header:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; } .content_header_title { float:left; @@ -1032,7 +1056,7 @@ h2 { } /* *************************************** - USER SETTINGS & ADMIN AREA + USER SETTINGS & ADMIN AREA @todo - pull admin css into stand-alone css *************************************** */ /* GENERAL STYLES */ @@ -1117,7 +1141,7 @@ input { padding: 5px; border: 1px solid #cccccc; color:#666666; - -webkit-border-radius: 5px; + -webkit-border-radius: 5px; -moz-border-radius: 5px; } textarea { @@ -1125,7 +1149,7 @@ textarea { border: solid 1px #cccccc; padding: 5px; color:#666666; - -webkit-border-radius: 5px; + -webkit-border-radius: 5px; -moz-border-radius: 5px; } textarea:focus, @@ -1145,7 +1169,7 @@ input[type="text"]:focus { background-image: url(_graphics/button_graduation.png); background-repeat: repeat-x; background-position: left 10px; - -webkit-border-radius: 5px; + -webkit-border-radius: 5px; -moz-border-radius: 5px; width: auto; padding: 2px 4px; @@ -1179,16 +1203,16 @@ input[type="submit"] { background-image: url(_graphics/button_graduation.png); background-repeat: repeat-x; background-position: left 10px; - -webkit-border-radius: 5px; + -webkit-border-radius: 5px; -moz-border-radius: 5px; width: auto; padding: 2px 4px; margin:10px 0 10px 0; cursor: pointer; -moz-outline-style: none; - outline: none; + outline: none; -webkit-box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.40); /* safari v3+ */ - -moz-box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.40); /* FF v3.5+ */ + -moz-box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.40); /* FF v3.5+ */ } input[type="submit"]:hover { border-color: #0054a7; @@ -1208,7 +1232,7 @@ input[type="submit"]:hover { background-repeat: repeat-x; background-position: left 10px; border: 1px solid #999999; - -webkit-border-radius: 5px; + -webkit-border-radius: 5px; -moz-border-radius: 5px; width: auto; padding: 2px 4px; @@ -1223,7 +1247,7 @@ input[type="submit"]:hover { } input.action_button, a.action_button { - -webkit-border-radius: 5px; + -webkit-border-radius: 5px; -moz-border-radius: 5px; background-color:#cccccc; background-image: url(_graphics/button_background.gif); @@ -1242,7 +1266,7 @@ a.action_button { -moz-box-shadow: none; } input.action_button:hover, -a.action_button:hover, +a.action_button:hover, input.action_button:focus, a.action_button:focus { background-position:0 -15px; @@ -1285,7 +1309,7 @@ a.action_button:focus { color:white; } .action_button.small { - -webkit-border-radius: 3px; + -webkit-border-radius: 3px; -moz-border-radius: 3px; width: auto; height:8px; @@ -1404,7 +1428,7 @@ a.action_button:focus { -moz-border-radius: 4px; } .tabHasContent { - background: white; + background: white; color:#333333 !important; } .friends_picker_navigation li a:hover { diff --git a/views/default/navigation/site_nav.php b/views/default/navigation/site_nav.php index 965eb7e63..15b35a118 100644 --- a/views/default/navigation/site_nav.php +++ b/views/default/navigation/site_nav.php @@ -1,22 +1,75 @@ menu_items['featured_urls']; -$current_context = get_context(); +$nav_items = elgg_get_nav_items(); +$featured = $nav_items['featured']; +$more = $nav_items['more']; -echo '
-
+___END; +?> diff --git a/views/default/navigation/topbar_tools.php b/views/default/navigation/topbar_tools.php index 2e48a4a85..044dc6608 100644 --- a/views/default/navigation/topbar_tools.php +++ b/views/default/navigation/topbar_tools.php @@ -1,7 +1,6 @@ menu_items['toolbar']; - -if (is_array($menu) && sizeof($menu) > 0) { - $alphamenu = array(); - foreach($menu as $item) { - $alphamenu[$item->name] = $item; - } - ksort($alphamenu); - -?> - - - - - - User avatar - - +
"{$vars['url']}action/logout", 'text' => elgg_echo('logout'), 'is_action' => TRUE)); ?>
@@ -43,10 +44,10 @@ ?> admin || $vars['user']->siteadmin) { + if ($vars['user']->admin || $vars['user']->siteadmin) { ?> - + @@ -55,5 +56,5 @@ \ No newline at end of file -- cgit v1.2.3