more work on doco search

This commit is contained in:
redmatrix 2015-08-30 22:39:33 -07:00
parent 7ba1217a13
commit e23f86faa9
5 changed files with 30 additions and 1 deletions

View File

@ -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 />&nbsp;<br />
* forums - provide a list of connected public forums with unseen counts for the current logged-in channel.
<br />&nbsp;<br />
Creating New Widgets
====================

View File

@ -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;
}

View File

@ -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
View File

@ -0,0 +1,3 @@
[region=aside]
[widget=helpindex][/widget]
[/region]

View File

@ -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%;
}