more work on doco search
This commit is contained in:
parent
7ba1217a13
commit
e23f86faa9
@ -104,6 +104,9 @@ Some/many of these widgets have restrictions which may restrict the type of page
|
||||
* all - display completed tasks if all is non-zero.
|
||||
<br /> <br />
|
||||
|
||||
* forums - provide a list of connected public forums with unseen counts for the current logged-in channel.
|
||||
<br /> <br />
|
||||
|
||||
|
||||
Creating New Widgets
|
||||
====================
|
||||
|
@ -1063,3 +1063,15 @@ function widget_tasklist($arr) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
function widget_helpindex($arr) {
|
||||
$o .= '<div class="widget">' . '<h3>' . t('Documentation') . '</h3>';
|
||||
$o .= '<ul class="nav nav-pills nav-stacked">';
|
||||
$o .= '<li><a href="help/general">' . t('Project/Site Information') . '</li>';
|
||||
$o .= '<li><a href="help/members">' . t('For Members') . '</li>';
|
||||
$o .= '<li><a href="help/admins">' . t('For Administrators') . '</li>';
|
||||
$o .= '<li><a href="help/develop">' . t('For Developers') . '</li>';
|
||||
$o .= '</ul></div>';
|
||||
return $o;
|
||||
|
||||
}
|
@ -143,9 +143,12 @@ function help_content(&$a) {
|
||||
nav_set_selected('help');
|
||||
|
||||
if($_REQUEST['search']) {
|
||||
|
||||
$o .= '<h2>' . t('Documentation Search') . ' - ' . htmlspecialchars($_REQUEST['search']) . '</h2>';
|
||||
|
||||
$r = search_doc_files($_REQUEST['search']);
|
||||
if($r) {
|
||||
$o .= '<ul>';
|
||||
$o .= '<ul class="help-searchlist">';
|
||||
foreach($r as $rr) {
|
||||
$dirname = dirname($rr['sid']);
|
||||
$fname = basename($rr['sid']);
|
||||
|
3
view/pdl/mod_help.pdl
Normal file
3
view/pdl/mod_help.pdl
Normal file
@ -0,0 +1,3 @@
|
||||
[region=aside]
|
||||
[widget=helpindex][/widget]
|
||||
[/region]
|
@ -2296,3 +2296,11 @@ nav .badge.mail-update:hover {
|
||||
/*.channels_ckbx, .pending_ckbx, .users_ckbx {
|
||||
margin-top: -5px !important;
|
||||
}*/
|
||||
|
||||
.help-searchlist {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.help-searchlist a {
|
||||
font-size: 130%;
|
||||
}
|
Reference in New Issue
Block a user