add a searchbox to "find friends" for global search
This commit is contained in:
parent
1a9bbac0be
commit
aa26517cdc
|
@ -30,13 +30,14 @@
|
|||
{{ endif }}
|
||||
</div>
|
||||
|
||||
<div id="close_friends">
|
||||
<div id="close_friends" style="margin-bottom:53px;">
|
||||
{{ if $nv }}
|
||||
<h3>Find Friends<a id="close_friends_icon" onClick="close_friends()" class="icon close_box" title="close"></a></h3>
|
||||
<a class="$nv.directory.2" href="$nv.directory.0" style="margin-left: 10px; " title="$nv.directory.3" >$nv.directory.1</a><br>
|
||||
<a class="$nv.match.2" href="$nv.match.0" style="margin-left: 10px; " title="$nv.match.3" >$nv.match.1</a><br>
|
||||
<a class="$nv.suggest.2" href="$nv.suggest.0" style="margin-left: 10px; " title="$nv.suggest.3" >$nv.suggest.1</a>
|
||||
<a class="$nv.invite.2" href="$nv.invite.0" style="margin-left: 10px; " title="$nav.invite.3" >$nv.invite.1</a>
|
||||
<a class="$nv.suggest.2" href="$nv.suggest.0" style="margin-left: 10px; " title="$nv.suggest.3" >$nv.suggest.1</a><br>
|
||||
<a class="$nv.invite.2" href="$nv.invite.0" style="margin-left: 10px; " title="$nav.invite.3" >$nv.invite.1</a>
|
||||
$nv.search
|
||||
{{ endif }}
|
||||
</div>
|
||||
|
||||
|
|
BIN
view/theme/diabook/icons/srch_bg.gif
Normal file
BIN
view/theme/diabook/icons/srch_bg.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 65 B |
BIN
view/theme/diabook/icons/srch_l.gif
Normal file
BIN
view/theme/diabook/icons/srch_l.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 303 B |
BIN
view/theme/diabook/icons/srch_r.gif
Normal file
BIN
view/theme/diabook/icons/srch_r.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 227 B |
BIN
view/theme/diabook/icons/srch_r_f2.gif
Normal file
BIN
view/theme/diabook/icons/srch_r_f2.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 278 B |
|
@ -1095,6 +1095,32 @@ aside #side-peoplefind-url {
|
|||
background: url("../../../view/theme/diabook/icons/selected.png") no-repeat left center;
|
||||
}
|
||||
/* widget: search */
|
||||
span.sbox_l {
|
||||
background: white url('../../../view/theme/diabook/icons/srch_l.gif') no-repeat top left;
|
||||
float: left;
|
||||
width: 19px; height: 19px;
|
||||
margin-left: 10px;
|
||||
margin-top: 5px;
|
||||
|
||||
}
|
||||
|
||||
span.sbox_r {
|
||||
background: white url('../../../view/theme/diabook/icons/srch_r.gif') no-repeat top left;
|
||||
float: left;
|
||||
width: 19px; height: 19px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
span.sbox input {
|
||||
background: white url('../../../view/theme/diabook/icons/srch_bg.gif') repeat-x top left;
|
||||
float: left;
|
||||
margin-top: 5px;
|
||||
border: 0;
|
||||
height: 13px; width: 100px;
|
||||
padding: 3px;
|
||||
font: 11px/13px arial;
|
||||
color: #000;
|
||||
}
|
||||
#add-search-popup {
|
||||
width: 200px;
|
||||
top: 18px;
|
||||
|
@ -1725,12 +1751,13 @@ transition: all 0.2s ease-in-out;
|
|||
margin-left: 5px;
|
||||
}
|
||||
/*input[type="submit"] {
|
||||
border: 0px;
|
||||
background-color: @ButtonBackgroundColor;
|
||||
color: @ButtonColor;
|
||||
padding: 0px 10px;
|
||||
.rounded(5px);
|
||||
height: 18px;
|
||||
background-color: #33ACFF;
|
||||
background-image: -moz-linear-gradient(center top , #66C1FF 0%, #0097FF 100%);
|
||||
border: 1px solid #777777;
|
||||
color: white;
|
||||
border-radius: 3px 3px 3px 3px;
|
||||
box-shadow: 0 1px 1px #CFCFCF;
|
||||
margin-left: 5px;
|
||||
}*/
|
||||
/** acl **/
|
||||
#photo-edit-perms-select, #photos-upload-permissions-wrapper, #profile-jot-acl-wrapper {
|
||||
|
|
|
@ -1090,6 +1090,32 @@ aside #side-peoplefind-url {
|
|||
background: url("../../../view/theme/diabook/icons/selected.png") no-repeat left center;
|
||||
}
|
||||
/* widget: search */
|
||||
span.sbox_l {
|
||||
background: white url('../../../view/theme/diabook/icons/srch_l.gif') no-repeat top left;
|
||||
float: left;
|
||||
width: 19px; height: 19px;
|
||||
margin-left: 10px;
|
||||
margin-top: 5px;
|
||||
|
||||
}
|
||||
|
||||
span.sbox_r {
|
||||
background: white url('../../../view/theme/diabook/icons/srch_r.gif') no-repeat top left;
|
||||
float: left;
|
||||
width: 19px; height: 19px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
span.sbox input {
|
||||
background: white url('../../../view/theme/diabook/icons/srch_bg.gif') repeat-x top left;
|
||||
float: left;
|
||||
margin-top: 5px;
|
||||
border: 0;
|
||||
height: 13px; width: 100px;
|
||||
padding: 3px;
|
||||
font: 11px/13px arial;
|
||||
color: #000;
|
||||
}
|
||||
#add-search-popup {
|
||||
width: 200px;
|
||||
top: 18px;
|
||||
|
|
|
@ -147,6 +147,13 @@ function diabook_community_info(){
|
|||
$nv['suggest'] = Array('suggest', t('Friend Suggestions'), "", "");
|
||||
$nv['invite'] = Array('invite', t('Invite Friends'), "", "");
|
||||
|
||||
$nv['search'] = '<form name="simple_bar" method="get" action="http://dir.friendika.com/directory">
|
||||
<span class="sbox_l"></span>
|
||||
<span class="sbox">
|
||||
<input type="text" name="search" size="13" maxlength="50">
|
||||
</span>
|
||||
<span class="sbox_r" id="srch_clear"></span>';
|
||||
|
||||
$aside['$nv'] = $nv;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue