diff options
-rw-r--r-- | mod/acl.php | 6 | ||||
-rw-r--r-- | mod/directory.php | 6 | ||||
-rw-r--r-- | view/theme/redbasic/css/style.css | 32 |
3 files changed, 39 insertions, 5 deletions
diff --git a/mod/acl.php b/mod/acl.php index b886b7e58..bd19c4bb7 100644 --- a/mod/acl.php +++ b/mod/acl.php @@ -228,6 +228,10 @@ function navbar_complete(&$a) { // logger('navbar_complete'); + if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { + return; + } + $dirmode = intval(get_config('system','directory_mode')); $search = ((x($_REQUEST,'query')) ? htmlentities($_REQUEST['query'],ENT_COMPAT,'UTF-8',false) : ''); if(! $search || mb_strlen($search) < 2) @@ -278,4 +282,4 @@ function navbar_complete(&$a) { } } return array(); -}
\ No newline at end of file +} diff --git a/mod/directory.php b/mod/directory.php index 657ecd8f9..1f22e9bf8 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -14,7 +14,13 @@ function directory_aside(&$a) { require_once('include/contact_widgets.php'); $a->set_widget('find_people',findpeople_widget()); } + + if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { + return; + } + $a->set_widget('safe_search',dir_safe_mode()); + $a->set_widget('dir_sort_order',dir_sort_links()); } diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index a7e8f0717..c75672202 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -2854,10 +2854,34 @@ div.jGrowl div.info { #recip { } -.autocomplete-w1 { background: #ffffff; no-repeat bottom right; position:absolute; top:0px; left:0px; margin:6px 0 0 6px; /* IE6 fix: */ _background:none; _margin:1px 0 0 0; } -.autocomplete { color:#000; border:1px solid #999; background:#FFF; cursor:default; text-align:left; max-height:350px; overflow:auto; margin:-6px 6px 6px -6px; /* IE6 specific: */ _height:350px; _margin:0; _overflow-x:hidden; } -.autocomplete .selected { background:#F0F0F0; } -.autocomplete div { padding:2px 5px; white-space:nowrap; overflow:hidden; } + +.autocomplete-w1 { + position:fixed; + top:24px; +} + +.autocomplete { + color: $font_colour; + border: 1px solid $nav_bg_1; + border-top: none; + background: #FFF; + cursor: pointer; + text-align: left; + max-height: 350px; + overflow: auto; + border-bottom-left-radius:$radiuspx; + border-bottom-right-radius:$radiuspx; +} + +.autocomplete .selected { + background:$bgcolour; +} + +.autocomplete div { + padding:2px 5px; + white-space:nowrap; + overflow:hidden; +} #datebrowse-sidebar select { margin-left: 25px; |